|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibatis.sqlmap.engine.scope.SessionScope
public class SessionScope
A Session based implementation of the Scope interface
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 |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SessionScope()
Method Detail |
---|
public SqlMapClient getSqlMapClient()
public void setSqlMapClient(SqlMapClient sqlMapClient)
sqlMapClient
- - the SqlMapClientpublic SqlMapExecutor getSqlMapExecutor()
public void setSqlMapExecutor(SqlMapExecutor sqlMapExecutor)
sqlMapExecutor
- - the SQL executorpublic SqlMapTransactionManager getSqlMapTxMgr()
public void setSqlMapTxMgr(SqlMapTransactionManager sqlMapTxMgr)
sqlMapTxMgr
- - the transaction managerpublic boolean isInBatch()
public void setInBatch(boolean inBatch)
inBatch
- - the switchpublic Transaction getTransaction()
public void setTransaction(Transaction transaction)
transaction
- - the transactionpublic TransactionState getTransactionState()
public void setTransactionState(TransactionState transactionState)
transactionState
- - the new transaction statepublic Object getBatch()
public void setBatch(Object batch)
batch
- the new batchpublic int getRequestStackDepth()
public void incrementRequestStackDepth()
public void decrementRequestStackDepth()
public boolean isCommitRequired()
public void setCommitRequired(boolean commitRequired)
commitRequired
- - the flagpublic boolean hasPreparedStatementFor(String sql)
public boolean hasPreparedStatement(PreparedStatement ps)
public PreparedStatement getPreparedStatement(String sql) throws SQLException
SQLException
public void putPreparedStatement(SqlMapExecutorDelegate delegate, String sql, PreparedStatement ps)
public void closePreparedStatements()
public void cleanup()
public boolean equals(Object parameterObject)
equals
in class Object
public int hashCode()
hashCode
in class Object
public static long getNextId()
public void saveTransactionState()
public void recallTransactionState()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |