| Package | Description |
|---|---|
| com.avaje.ebeaninternal.api | |
| com.avaje.ebeaninternal.server.core |
Core implementation objects
|
| com.avaje.ebeaninternal.server.persist |
Persistence Implementation
|
| com.avaje.ebeaninternal.server.persist.dml |
Bean DML persistence implementation
|
| com.avaje.ebeaninternal.server.query | |
| com.avaje.ebeaninternal.server.transaction |
Transaction implementation
|
| Modifier and Type | Method and Description |
|---|---|
SpiTransaction |
SpiEbeanServer.createQueryTransaction()
Create a ServerTransaction for query purposes.
|
SpiTransaction |
SpiEbeanServer.createServerTransaction(boolean isExplicit,
int isolationLevel)
Create a ServerTransaction.
|
SpiTransaction |
SpiEbeanServer.getCurrentServerTransaction()
Return the current transaction or null if there is no current transaction.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SpiTransactionScopeManager.replace(SpiTransaction t) |
| Constructor and Description |
|---|
ScopeTrans(boolean rollbackOnChecked,
boolean created,
SpiTransaction transaction,
TxScope txScope,
SpiTransaction suspendedTransaction,
SpiTransactionScopeManager scopeMgr) |
| Modifier and Type | Method and Description |
|---|---|
SpiTransaction |
DefaultServer.createQueryTransaction() |
SpiTransaction |
DefaultServer.createServerTransaction(boolean isExplicit,
int isolationLevel) |
SpiTransaction |
DefaultServer.getCurrentServerTransaction()
Returns the current transaction (or null) from the scope.
|
SpiTransaction |
RelationalQueryRequest.getTransaction() |
SpiTransaction |
BeanRequest.getTransaction()
Return the Transaction associated with this request.
|
| Modifier and Type | Method and Description |
|---|---|
BatchControl |
PersistExecute.createBatchControl(SpiTransaction t)
Create a BatchControl for the current transaction.
|
BatchControl |
DefaultPersistExecute.createBatchControl(SpiTransaction t) |
CallableStatement |
PstmtFactory.getCstmt(SpiTransaction t,
boolean logSql,
String sql,
BatchPostExecute batchExe)
Return a callable statement taking into account batch requirements.
|
CallableStatement |
PstmtFactory.getCstmt(SpiTransaction t,
String sql)
Get a callable statement without any batching.
|
PreparedStatement |
PstmtFactory.getPstmt(SpiTransaction t,
boolean logSql,
String sql,
BatchPostExecute batchExe)
Return a prepared statement taking into account batch requirements.
|
PreparedStatement |
PstmtFactory.getPstmt(SpiTransaction t,
String sql)
Get a prepared statement without any batching.
|
| Constructor and Description |
|---|
BatchControl(SpiTransaction t,
int batchSize,
boolean getGenKeys)
Create for a given transaction, PersistExecute, default size and
getGeneratedKeys.
|
BatchedBeanControl(SpiTransaction t,
BatchControl batchControl) |
| Modifier and Type | Field and Description |
|---|---|
protected SpiTransaction |
DmlHandler.transaction |
| Modifier and Type | Method and Description |
|---|---|
protected PreparedStatement |
InsertHandler.getPstmt(SpiTransaction t,
String sql,
boolean useGeneratedKeys)
Check with useGeneratedKeys to get appropriate PreparedStatement.
|
protected PreparedStatement |
DmlHandler.getPstmt(SpiTransaction t,
String sql,
boolean genKeys)
Check with useGeneratedKeys to get appropriate PreparedStatement.
|
protected PreparedStatement |
DmlHandler.getPstmt(SpiTransaction t,
String sql,
PersistRequestBean<?> request,
boolean genKeys)
Return a prepared statement taking into account batch requirements.
|
| Modifier and Type | Method and Description |
|---|---|
SpiTransaction |
CQuery.getTransaction() |
| Modifier and Type | Method and Description |
|---|---|
static javax.persistence.PersistenceException |
CQuery.createPersistenceException(SQLException e,
SpiTransaction t,
String bindLog,
String sql)
Create a PersistenceException including interesting information like the
bindLog and sql used.
|
| Constructor and Description |
|---|
BackgroundIdFetch(SpiTransaction transaction,
ResultSet rset,
PreparedStatement pstmt,
DbReadContext ctx,
BeanDescriptor<?> beanDescriptor,
BeanIdList idList)
Create the BackgroundFetch.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ExternalJdbcTransaction
Transaction based on a java.sql.Connection supplied by an external
transaction manager such as Spring.
|
class |
JdbcTransaction
JDBC Connection based transaction.
|
class |
JtaTransaction
Jta based transaction.
|
| Modifier and Type | Method and Description |
|---|---|
SpiTransaction |
TransactionManager.createQueryTransaction() |
SpiTransaction |
TransactionManager.createTransaction(boolean explicit,
int isolationLevel)
Create a new Transaction.
|
SpiTransaction |
TransactionMap.State.get() |
abstract SpiTransaction |
TransactionScopeManager.get()
Return the current Transaction for this serverName and Thread.
|
SpiTransaction |
ExternalTransactionScopeManager.get() |
SpiTransaction |
DefaultTransactionScopeManager.get() |
static SpiTransaction |
DefaultTransactionThreadLocal.get(String serverName)
Return the current Transaction for this serverName and Thread.
|
SpiTransaction |
TransactionManager.wrapExternalConnection(Connection c)
Wrap the externally supplied Connection.
|
SpiTransaction |
TransactionManager.wrapExternalConnection(String id,
Connection c)
Wrap an externally supplied Connection with a known transaction id.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TransactionManager.notifyOfCommit(SpiTransaction transaction)
Process a local committed transaction.
|
void |
TransactionManager.notifyOfQueryOnly(boolean onCommit,
SpiTransaction transaction,
Throwable cause)
Query only transaction in read committed isolation.
|
void |
TransactionManager.notifyOfRollback(SpiTransaction transaction,
Throwable cause)
Process a local rolled back transaction.
|
void |
TransactionMap.State.replace(SpiTransaction trans)
Used to replace transaction with a proxy.
|
abstract void |
TransactionScopeManager.replace(SpiTransaction trans)
Replace the current transaction with this one.
|
void |
ExternalTransactionScopeManager.replace(SpiTransaction trans) |
void |
DefaultTransactionScopeManager.replace(SpiTransaction trans) |
static void |
DefaultTransactionThreadLocal.replace(String serverName,
SpiTransaction trans)
A mechanism to get the transaction out of the thread local by replacing it
with a 'proxy'.
|
void |
TransactionMap.State.set(SpiTransaction trans)
Set the transaction.
|
abstract void |
TransactionScopeManager.set(SpiTransaction trans)
Set a new Transaction for this serverName and Thread.
|
void |
ExternalTransactionScopeManager.set(SpiTransaction trans) |
void |
DefaultTransactionScopeManager.set(SpiTransaction trans) |
static void |
DefaultTransactionThreadLocal.set(String serverName,
SpiTransaction trans)
Set a new Transaction for this serverName and Thread.
|
| Constructor and Description |
|---|
PostCommitProcessing(ClusterManager clusterManager,
TransactionManager manager,
SpiTransaction transaction,
TransactionEvent event)
Create for a TransactionManager and event.
|
Copyright © 2014. All Rights Reserved.