Uses of Class
io.ebean.TxScope
Packages that use TxScope
-
Uses of TxScope in io.ebean
Modifier and TypeMethodDescriptionstatic TxScope
TxScope.mandatory()
Helper method to create a TxScope with MANDATORY.static TxScope
TxScope.never()
Helper method to create a TxScope with NEVER.static TxScope
TxScope.notSupported()
Helper method to create a TxScope with NOT_SUPPORTED.static TxScope
TxScope.required()
Helper method to create a TxScope with REQUIRES.static TxScope
TxScope.requiresNew()
Helper method to create a TxScope with REQUIRES_NEW.TxScope.setAutoPersistUpdates
(io.ebean.annotation.TxOption autoPersistUpdates) Set the autoPersistUpdates mode.TxScope.setBatch
(io.ebean.annotation.PersistBatch batch) Set the batch mode to use.TxScope.setBatchOnCascade
(io.ebean.annotation.PersistBatch batchOnCascade) Set the batch on cascade mode.TxScope.setBatchSize
(int batchSize) Set the batch size to use.TxScope.setFlushOnQuery
(boolean flushOnQuery) Set flushOnQuery to be false to stop automatically flushing the JDBC batch buffer when a query is executed.TxScope.setIsolation
(io.ebean.annotation.TxIsolation isolation) Set the transaction isolation level this transaction should run with.Set a label for the transaction.TxScope.setNoRollbackFor
(Class<?>[] noRollbacks) Set multiple throwable's that will NOT cause a rollback.TxScope.setNoRollbackFor
(Class<? extends Throwable> noRollback) Add a Throwable to a list that will NOT cause a rollback.TxScope.setProfileId
(int profileId) Set the transaction profile id.TxScope.setProfileLocation
(ProfileLocation profileLocation) Set the profile location.TxScope.setReadOnly
(boolean readOnly) Set if the transaction should be treated as read only.TxScope.setRollbackFor
(Class<?>[] rollbackThrowables) Set multiple throwable's that will cause a rollback.TxScope.setRollbackFor
(Class<? extends Throwable> rollbackThrowable) Set a Throwable that should explicitly cause a rollback.TxScope.setServerName
(String serverName) Set the serverName (DataSource name) for which this transaction will be.TxScope.setSkipCache
(boolean skipCache) Set to true if the transaction should skip L2 cache access.TxScope.setSkipGeneratedKeys()
Set if the transaction should skip reading generated keys for inserts.TxScope.setType
(io.ebean.annotation.TxType type) Set the transaction type.static TxScope
TxScope.supports()
Helper method to create a TxScope with SUPPORTS.Modifier and TypeMethodDescriptionDatabase.beginTransaction
(TxScope scope) Start a transaction typically specifying REQUIRES_NEW or REQUIRED semantics.static Transaction
DB.beginTransaction
(TxScope scope) Start a transaction typically specifying REQUIRES_NEW or REQUIRED semantics.void
Execute a Runnable in a Transaction with an explicit scope.static void
Execute a TxRunnable in a Transaction with an explicit scope.<T> T
Database.executeCall
(TxScope scope, Callable<T> callable) Execute a TxCallable in a Transaction with an explicit scope.static <T> T
DB.executeCall
(TxScope scope, Callable<T> c) Execute a Callable in a Transaction with an explicit scope.