Class StoreNicknameTransaction
java.lang.Object
com.djrapitops.plan.storage.database.transactions.Transaction
com.djrapitops.plan.storage.database.transactions.ThrowawayTransaction
com.djrapitops.plan.storage.database.transactions.events.StoreNicknameTransaction
Transaction to store player's nickname information in the database.
-
Field Summary
Fields inherited from class com.djrapitops.plan.storage.database.transactions.Transaction
attempts, dbType, success
-
Constructor Summary
ConstructorDescriptionStoreNicknameTransaction
(UUID playerUUID, Nickname nickname, BiPredicate<UUID, String> isNicknameCachedCheck) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Implement this method for transaction execution.protected boolean
Override this method for conditional execution.Methods inherited from class com.djrapitops.plan.storage.database.transactions.Transaction
commitMidTransaction, dbIsNotUnderHeavyLoad, execute, execute, executeOther, executeReturningId, executeSwallowingExceptions, executeTransaction, getDBState, getName, getServerUUID, hasTable, query, toString, wasSuccessful
-
Constructor Details
-
StoreNicknameTransaction
public StoreNicknameTransaction(UUID playerUUID, Nickname nickname, BiPredicate<UUID, String> isNicknameCachedCheck)
-
-
Method Details
-
shouldBeExecuted
protected boolean shouldBeExecuted()Description copied from class:Transaction
Override this method for conditional execution.Please note that the transaction has not been initialized and class variables are not available for queries. The condition should depend on other variables (Like the data that is to be stored) given to the transaction.
- Overrides:
shouldBeExecuted
in classThrowawayTransaction
- Returns:
- false if the transaction should not execute.
-
performOperations
protected void performOperations()Description copied from class:Transaction
Implement this method for transaction execution.- Specified by:
performOperations
in classTransaction
-