public abstract class BeanRequest extends Object
| Constructor and Description |
|---|
BeanRequest(SpiEbeanServer ebeanServer,
SpiTransaction t) |
| Modifier and Type | Method and Description |
|---|---|
void |
commitTransIfRequired()
Commit this transaction if it was created for this request.
|
void |
createImplicitTransIfRequired(boolean readOnlyTransaction)
A helper method for creating an implicit transaction is it is required.
|
Connection |
getConnection()
Returns the connection from the Transaction.
|
EbeanServer |
getEbeanServer()
Return the server processing the request.
|
SpiEbeanServer |
getServer() |
SpiTransaction |
getTransaction()
Return the Transaction associated with this request.
|
abstract void |
initTransIfRequired()
initialise an implicit transaction if one is not currently supplied.
|
boolean |
isLogSql()
Return true if SQL should be logged for this transaction.
|
boolean |
isLogSummary()
Return true if SUMMARY information should be logged for this transaction.
|
void |
rollbackTransIfRequired()
Rollback the transaction if it was created for this request.
|
public BeanRequest(SpiEbeanServer ebeanServer, SpiTransaction t)
public abstract void initTransIfRequired()
A transaction may have been passed in or active in the thread local. If not then create one implicitly to handle the request.
public void createImplicitTransIfRequired(boolean readOnlyTransaction)
A transaction may have been passed in or active in the thread local. If not then create one implicitly to handle the request.
public void commitTransIfRequired()
public void rollbackTransIfRequired()
public EbeanServer getEbeanServer()
public SpiEbeanServer getServer()
public SpiTransaction getTransaction()
public Connection getConnection()
public boolean isLogSql()
public boolean isLogSummary()
Copyright © 2014. All Rights Reserved.