Package | Description |
---|---|
io.ebean |
Modifier and Type | Method and Description |
---|---|
static 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 |
TxScope.setBatch(io.ebean.annotation.PersistBatch batch)
Set the batch mode to use.
|
TxScope |
TxScope.setBatchOnCascade(io.ebean.annotation.PersistBatch batchOnCascade)
Set the batch on cascade mode.
|
TxScope |
TxScope.setBatchSize(int batchSize)
Set the batch size to use.
|
TxScope |
TxScope.setFlushOnQuery(boolean flushOnQuery)
Set flushOnQuery to be false to stop automatically flushing the JDBC batch buffer when a query is executed.
|
TxScope |
TxScope.setIsolation(io.ebean.annotation.TxIsolation isolation)
Set the transaction isolation level this transaction should run with.
|
TxScope |
TxScope.setLabel(String label)
Set a label for the transaction.
|
TxScope |
TxScope.setNoRollbackFor(Class<?>[] noRollbacks)
Set multiple throwable's that will NOT cause a rollback.
|
TxScope |
TxScope.setNoRollbackFor(Class<? extends Throwable> noRollback)
Add a Throwable to a list that will NOT cause a rollback.
|
TxScope |
TxScope.setProfileId(int profileId)
Set the transaction profile id.
|
TxScope |
TxScope.setProfileLocation(ProfileLocation profileLocation)
Set the profile location.
|
TxScope |
TxScope.setReadOnly(boolean readOnly)
Set if the transaction should be treated as read only.
|
TxScope |
TxScope.setRollbackFor(Class<?>[] rollbackThrowables)
Set multiple throwable's that will cause a rollback.
|
TxScope |
TxScope.setRollbackFor(Class<? extends Throwable> rollbackThrowable)
Set a Throwable that should explicitly cause a rollback.
|
TxScope |
TxScope.setServerName(String serverName)
Set the serverName (DataSource name) for which this transaction will be.
|
TxScope |
TxScope.setSkipCache(boolean skipCache)
Set to true if the transaction should skip L2 cache access.
|
TxScope |
TxScope.setSkipGeneratedKeys()
Set if the transaction should skip reading generated keys for inserts.
|
TxScope |
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 Type | Method and Description |
---|---|
static Transaction |
DB.beginTransaction(TxScope scope)
Start a transaction typically specifying REQUIRES_NEW or REQUIRED semantics.
|
Transaction |
Database.beginTransaction(TxScope scope)
Start a transaction typically specifying REQUIRES_NEW or REQUIRED semantics.
|
static Transaction |
Ebean.beginTransaction(TxScope scope)
Start a transaction typically specifying REQUIRES_NEW or REQUIRED semantics.
|
static void |
DB.execute(TxScope scope,
Runnable r)
Execute a TxRunnable in a Transaction with an explicit scope.
|
void |
Database.execute(TxScope scope,
Runnable runnable)
Execute a Runnable in a Transaction with an explicit scope.
|
static void |
Ebean.execute(TxScope scope,
Runnable r)
Execute a TxRunnable 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.
|
<T> T |
Database.executeCall(TxScope scope,
Callable<T> callable)
Execute a TxCallable in a Transaction with an explicit scope.
|
static <T> T |
Ebean.executeCall(TxScope scope,
Callable<T> c)
Execute a Callable in a Transaction with an explicit scope.
|
Copyright © 2019. All rights reserved.