com.ibatis.sqlmap.engine.scope
public class SessionScope extends Object
| Constructor Summary | |
|---|---|
| SessionScope()
Default constructor | |
| Method Summary | |
|---|---|
| void | cleanup() |
| void | closePreparedStatements() |
| void | decrementRequestStackDepth()
Decrement the stack depth by one. |
| boolean | equals(Object parameterObject) |
| Object | getBatch()
Getter for the batch of the session
|
| static long | getNextId()
Method to get a unique ID
|
| PreparedStatement | getPreparedStatement(String sql) |
| int | getRequestStackDepth()
Get the request stack depth
|
| SqlMapClient | getSqlMapClient()
Get the SqlMapClient for the session
|
| SqlMapExecutor | getSqlMapExecutor()
Get the SQL executor for the session
|
| SqlMapTransactionManager | getSqlMapTxMgr()
Get the transaction manager
|
| Transaction | getTransaction()
Getter for the session transaction
|
| TransactionState | getTransactionState()
Getter for the transaction state of the session
|
| int | hashCode() |
| boolean | hasPreparedStatement(PreparedStatement ps) |
| boolean | hasPreparedStatementFor(String sql) |
| void | incrementRequestStackDepth()
Increment the stack depth by one. |
| boolean | isCommitRequired()
Getter to tell if a commit is required for the session
|
| boolean | isInBatch()
Tells us if we are in batch mode or not
|
| void | putPreparedStatement(SqlMapExecutorDelegate delegate, String sql, PreparedStatement ps) |
| void | recallTransactionState()
Restores the previously saved transaction state |
| void | saveTransactionState()
Saves the current transaction state |
| void | setBatch(Object batch)
Stter for the batch of the session
|
| void | setCommitRequired(boolean commitRequired)
Setter to tell the session that a commit is required for the session
|
| void | setInBatch(boolean inBatch)
Turn batch mode on or off
|
| void | setSqlMapClient(SqlMapClient sqlMapClient)
Set the SqlMapClient for the session
|
| void | setSqlMapExecutor(SqlMapExecutor sqlMapExecutor)
Get the SQL executor for the session
|
| void | setSqlMapTxMgr(SqlMapTransactionManager sqlMapTxMgr)
Set the transaction manager
|
| void | setTransaction(Transaction transaction)
Setter for the session transaction
|
| void | setTransactionState(TransactionState transactionState)
Setter for the transaction state of the session
|
Returns: - the batch
Returns: - the new ID
Returns: - the stack depth
Returns: - the SqlMapClient
Returns: - the SQL executor
Returns: - the transaction manager
Returns: - the transaction
Returns: - the state
Returns: - true if a commit is required
Returns: - true if we are working with a batch
Parameters: batch the new batch
Parameters: commitRequired - the flag
Parameters: inBatch - the switch
Parameters: sqlMapClient - the SqlMapClient
Parameters: sqlMapExecutor - the SQL executor
Parameters: sqlMapTxMgr - the transaction manager
Parameters: transaction - the transaction
Parameters: transactionState - the new transaction state