| Package | Description |
|---|---|
| com.avaje.ebean |
Core API (see Ebean and EbeanServer).
|
| com.avaje.ebeaninternal.api | |
| com.avaje.ebeaninternal.server.core |
Core implementation objects
|
| 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.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.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 <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> c)
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 r)
Execute a TxRunnable in a Transaction with an explicit scope.
|
| Modifier and Type | Method and Description |
|---|---|
ScopeTrans |
SpiEbeanServer.createScopeTrans(TxScope txScope)
Create a ScopeTrans for a method for the given scope definition.
|
static ScopeTrans |
HelpScopeTrans.createScopeTrans(TxScope txScope)
Create a ScopeTrans for a given methods TxScope.
|
| Constructor and Description |
|---|
ScopeTrans(boolean rollbackOnChecked,
boolean created,
SpiTransaction transaction,
TxScope txScope,
SpiTransaction suspendedTransaction,
SpiTransactionScopeManager scopeMgr) |
| Modifier and Type | Method and Description |
|---|---|
ScopeTrans |
DefaultServer.createScopeTrans(TxScope txScope) |
<T> T |
DefaultServer.execute(TxScope scope,
TxCallable<T> c) |
void |
DefaultServer.execute(TxScope scope,
TxRunnable r) |
Copyright © 2014. All Rights Reserved.