|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
java.lang.Objectcom.ibatis.sqlmap.engine.scope.SessionScope
public class SessionScope
A Session based implementation of the Scope interface
构造器摘要 | |
---|---|
SessionScope()
Default constructor |
方法摘要 | |
---|---|
void |
cleanup()
|
void |
closePreparedStatements()
|
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 |
java.sql.PreparedStatement |
getPreparedStatement(java.lang.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(java.sql.PreparedStatement ps)
|
boolean |
hasPreparedStatementFor(java.lang.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,
java.lang.String sql,
java.sql.PreparedStatement ps)
|
void |
recallTransactionState()
Restores the previously saved transaction state |
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 |
类方法继承: java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
构造器详细信息 |
---|
public SessionScope()
方法详细信息 |
---|
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 boolean hasPreparedStatementFor(java.lang.String sql)
public boolean hasPreparedStatement(java.sql.PreparedStatement ps)
public java.sql.PreparedStatement getPreparedStatement(java.lang.String sql) throws java.sql.SQLException
java.sql.SQLException
public void putPreparedStatement(SqlMapExecutorDelegate delegate, java.lang.String sql, java.sql.PreparedStatement ps)
public void closePreparedStatements()
public void cleanup()
public boolean equals(java.lang.Object parameterObject)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static long getNextId()
public void saveTransactionState()
public void recallTransactionState()
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |