Class ReasonProvider
java.lang.Object
de.murmelmeister.murmelapi.bansystem.reason.ReasonProvider
- All Implemented Interfaces:
Reason
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a reason.private voidcreateTable(String tableName) booleanexists(int id) Checks if a reason with the specified ID exists.get(int id) Retrieves a reason by its ID.voidremove(int id) Removes a reason.voidUpdates the reason with the specified ID.
-
Constructor Details
-
ReasonProvider
-
-
Method Details
-
createTable
-
exists
public boolean exists(int id) Description copied from interface:ReasonChecks if a reason with the specified ID exists. -
add
Description copied from interface:ReasonAdds a reason. -
remove
public void remove(int id) Description copied from interface:ReasonRemoves a reason. -
update
Description copied from interface:ReasonUpdates the reason with the specified ID. -
get
Description copied from interface:ReasonRetrieves a reason by its ID.
-