public class PlayerRegisterTransaction extends Transaction
Modifier and Type | Field and Description |
---|---|
protected java.util.UUID |
playerUUID |
protected java.util.function.LongSupplier |
registered |
dbType, success
Constructor and Description |
---|
PlayerRegisterTransaction(java.util.UUID playerUUID,
java.util.function.LongSupplier registered,
java.lang.String playerName) |
Modifier and Type | Method and Description |
---|---|
protected void |
performOperations()
Implement this method for transaction execution.
|
protected boolean |
shouldBeExecuted()
Override this method for conditional execution.
|
execute, execute, executeOther, executeSwallowingExceptions, executeTransaction, getServerUUID, query, toString, wasSuccessful
protected final java.util.UUID playerUUID
protected final java.util.function.LongSupplier registered
public PlayerRegisterTransaction(java.util.UUID playerUUID, java.util.function.LongSupplier registered, java.lang.String playerName)
protected boolean shouldBeExecuted()
Transaction
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.
shouldBeExecuted
in class Transaction
protected void performOperations()
Transaction
performOperations
in class Transaction