Class ConditionalUpdateAction
java.lang.Object
com.kingsrook.qqq.backend.core.actions.tables.ConditionalUpdateAction
Runs an atomic conditional (compare-and-set) update against a table's backend.
See ConditionalUpdateInterface. Throws if the backend lacks the capability.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondatabaseNow(String tableName) The backend clock for the backend that holds a table.intexecute(ConditionalUpdateInput input) Run the update; return the number of rows updated.static booleanisSupported(QBackendMetaData backend) Whether the backend that holds a table supports conditional updates.
-
Constructor Details
-
ConditionalUpdateAction
public ConditionalUpdateAction()
-
-
Method Details
-
execute
Run the update; return the number of rows updated.- Throws:
QException
-
databaseNow
The backend clock for the backend that holds a table.- Throws:
QException
-
isSupported
Whether the backend that holds a table supports conditional updates.
-