Class ThrowawayTransaction
- java.lang.Object
-
- com.djrapitops.plan.storage.database.transactions.Transaction
-
- com.djrapitops.plan.storage.database.transactions.ThrowawayTransaction
-
- Direct Known Subclasses:
KickStoreTransaction
,NicknameStoreTransaction
,OperatorStatusTransaction
,RemoveDuplicateUserInfoTransaction
,RemoveEverythingTransaction
,RemoveInvalidResultsTransaction
,RemoveOldExtensionsTransaction
,RemoveOldSampledDataTransaction
,RemovePlayerTransaction
,RemoveUnsatisfiedConditionalPlayerResultsTransaction
,RemoveUnsatisfiedConditionalServerResultsTransaction
,ServerShutdownTransaction
,SetServerAsUninstalledTransaction
,StoreIconTransaction
,StorePlayerBooleanResultTransaction
,StorePlayerDoubleResultTransaction
,StorePlayerGroupsResultTransaction
,StorePlayerNumberResultTransaction
,StorePlayerStringResultTransaction
,StorePlayerTableResultTransaction
,StorePluginTransaction
,StoreProviderTransaction
,StoreServerBooleanResultTransaction
,StoreServerDoubleResultTransaction
,StoreServerNumberResultTransaction
,StoreServerStringResultTransaction
,StoreServerTableResultTransaction
,StoreTabInformationTransaction
,StoreTableProviderTransaction
public abstract class ThrowawayTransaction extends Transaction
Transaction
that can be thrown away if it is in execution when the database is closing.This transaction type is for storing data that is not critical to be saved on plugin shutdown.
-
-
Field Summary
-
Fields inherited from class com.djrapitops.plan.storage.database.transactions.Transaction
attempts, dbType, success
-
-
Constructor Summary
Constructors Constructor Description ThrowawayTransaction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
shouldBeExecuted()
Override this method for conditional execution.-
Methods inherited from class com.djrapitops.plan.storage.database.transactions.Transaction
dbIsNotUnderHeavyLoad, execute, execute, executeOther, executeSwallowingExceptions, executeTransaction, getDBState, getServerUUID, performOperations, query, toString, wasSuccessful
-
-
-
-
Method Detail
-
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 classTransaction
- Returns:
- false if the transaction should not execute.
-
-