| Package | Description |
|---|---|
| com.avaje.ebean |
Core API (see EbeanServer and 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(PersistBatch batch)
Set the batch mode to use.
|
TxScope |
TxScope.setBatchOnCascade(PersistBatch batchOnCascade)
Set the batch on cascade mode.
|
TxScope |
TxScope.setBatchSize(int batchSize)
Set the batch size to use.
|
TxScope |
TxScope.setIsolation(TxIsolation isolation)
Set the transaction isolation level this transaction should run with.
|
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.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.setSkipGeneratedKeys()
Set if the transaction should skip reading generated keys for inserts.
|
TxScope |
TxScope.setType(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 |
Ebean.beginTransaction(TxScope scope)
Start a transaction typically specifying REQUIRES_NEW or REQUIRED semantics.
|
Transaction |
EbeanServer.beginTransaction(TxScope scope)
Start a transaction typically specifying REQUIRES_NEW or REQUIRED semantics.
|
static <T> T |
Ebean.execute(TxScope scope,
TxCallable<T> c)
Execute a TxCallable in a Transaction with an explicit scope.
|
<T> T |
EbeanServer.execute(TxScope scope,
TxCallable<T> callable)
Execute a TxCallable in a Transaction with an explicit scope.
|
static void |
Ebean.execute(TxScope scope,
TxRunnable r)
Execute a TxRunnable in a Transaction with an explicit scope.
|
void |
EbeanServer.execute(TxScope scope,
TxRunnable runnable)
Execute a TxRunnable in a Transaction with an explicit scope.
|
Copyright © 2016. All rights reserved.