|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibatis.sqlmap.engine.scope.BaseScope
com.ibatis.sqlmap.engine.scope.SessionScope
A Session based implementation of the Scope interface
| Constructor Summary | |
SessionScope()
Default constructor |
|
| Method Summary | |
void |
decrementRequestStackDepth()
Decrement the stack depth by one. |
boolean |
equals(java.lang.Object parameterObject)
|
java.lang.Object |
getBatch()
Getter for the batch of the session |
static long |
getNextId()
Method to get a unique ID |
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()
|
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 |
recallTransactionState()
Restores the previously saved transaction state |
void |
reset()
Clears all data out of the scope |
void |
saveTransactionState()
Saves the current transaction state |
void |
setBatch(java.lang.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 com.ibatis.sqlmap.engine.scope.BaseScope |
getAttribute, setAttribute |
| 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 java.lang.Object getBatch()
public void setBatch(java.lang.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 void reset()
Scope
reset in interface Scopereset in class BaseScopepublic boolean equals(java.lang.Object parameterObject)
public int hashCode()
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 | ||||||||||