|
|||||||||
| Home >> All >> com >> ibatis >> sqlmap >> engine >> [ impl overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.ibatis.sqlmap.engine.impl
Class SqlMapExecutorDelegate

java.lang.Objectcom.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate
- public class SqlMapExecutorDelegate
- extends java.lang.Object
The workhorse that really runs the SQL
| Constructor Summary | |
SqlMapExecutorDelegate()
Default constructor |
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
PROBE
private static final com.ibatis.common.beans.Probe PROBE
DEFAULT_MAX_REQUESTS
public static final int DEFAULT_MAX_REQUESTS
- The default maximum number of requests
- See Also:
- Constant Field Values
DEFAULT_MAX_SESSIONS
public static final int DEFAULT_MAX_SESSIONS
- The default maximum number of sessions
- See Also:
- Constant Field Values
DEFAULT_MAX_TRANSACTIONS
public static final int DEFAULT_MAX_TRANSACTIONS
- The default maximum number of transactions
- See Also:
- Constant Field Values
lazyLoadingEnabled
private boolean lazyLoadingEnabled
cacheModelsEnabled
private boolean cacheModelsEnabled
enhancementEnabled
private boolean enhancementEnabled
maxRequests
private int maxRequests
maxSessions
private int maxSessions
maxTransactions
private int maxTransactions
txManager
private com.ibatis.sqlmap.engine.transaction.TransactionManager txManager
mappedStatements
private java.util.HashMap mappedStatements
cacheModels
private java.util.HashMap cacheModels
resultMaps
private java.util.HashMap resultMaps
parameterMaps
private java.util.HashMap parameterMaps
requestPool
private com.ibatis.common.util.ThrottledPool requestPool
sessionPool
private com.ibatis.common.util.ThrottledPool sessionPool
sqlExecutor
private com.ibatis.sqlmap.engine.execution.SqlExecutor sqlExecutor
typeHandlerFactory
private com.ibatis.sqlmap.engine.type.TypeHandlerFactory typeHandlerFactory
dataExchangeFactory
private com.ibatis.sqlmap.engine.exchange.DataExchangeFactory dataExchangeFactory
| Constructor Detail |
SqlMapExecutorDelegate
public SqlMapExecutorDelegate()
- Default constructor
| Method Detail |
getDataExchangeFactory
public com.ibatis.sqlmap.engine.exchange.DataExchangeFactory getDataExchangeFactory()
- Getter for the DataExchangeFactory
getTypeHandlerFactory
public com.ibatis.sqlmap.engine.type.TypeHandlerFactory getTypeHandlerFactory()
- Getter for the TypeHandlerFactory
isLazyLoadingEnabled
public boolean isLazyLoadingEnabled()
- Getter for the status of lazy loading
setLazyLoadingEnabled
public void setLazyLoadingEnabled(boolean lazyLoadingEnabled)
- Turn on or off lazy loading
isCacheModelsEnabled
public boolean isCacheModelsEnabled()
- Getter for the status of caching
setCacheModelsEnabled
public void setCacheModelsEnabled(boolean cacheModelsEnabled)
- Turn on or off caching
isEnhancementEnabled
public boolean isEnhancementEnabled()
- Getter for the status of CGLib enhancements
setEnhancementEnabled
public void setEnhancementEnabled(boolean enhancementEnabled)
- Turn on or off CGLib enhancements
getMaxRequests
public int getMaxRequests()
- Getter for the maximum number of requests
setMaxRequests
public void setMaxRequests(int maxRequests)
- Setter for the maximum number of requests
getMaxSessions
public int getMaxSessions()
- Getter for the maximum number of sessions
setMaxSessions
public void setMaxSessions(int maxSessions)
- Setter for the maximum number of sessions
getMaxTransactions
public int getMaxTransactions()
- Getter for the the maximum number of transactions
setMaxTransactions
public void setMaxTransactions(int maxTransactions)
- Setter for the maximum number of transactions
getTxManager
public com.ibatis.sqlmap.engine.transaction.TransactionManager getTxManager()
- Getter for the transaction manager
setTxManager
public void setTxManager(com.ibatis.sqlmap.engine.transaction.TransactionManager txManager)
- Setter for the transaction manager
addMappedStatement
public void addMappedStatement(com.ibatis.sqlmap.engine.mapping.statement.MappedStatement ms)
- Add a mapped statement
getMappedStatementNames
public java.util.Iterator getMappedStatementNames()
- Get an iterator of the mapped statements
getMappedStatement
public com.ibatis.sqlmap.engine.mapping.statement.MappedStatement getMappedStatement(java.lang.String id)
- Get a mappedstatement by its ID
addCacheModel
public void addCacheModel(com.ibatis.sqlmap.engine.cache.CacheModel model)
- Add a cache model
getCacheModelNames
public java.util.Iterator getCacheModelNames()
- Get an iterator of the cache models
getCacheModel
public com.ibatis.sqlmap.engine.cache.CacheModel getCacheModel(java.lang.String id)
- Get a cache model by ID
addResultMap
public void addResultMap(com.ibatis.sqlmap.engine.mapping.result.ResultMap map)
- Add a result map
getResultMapNames
public java.util.Iterator getResultMapNames()
- Get an iterator of the result maps
getResultMap
public com.ibatis.sqlmap.engine.mapping.result.ResultMap getResultMap(java.lang.String id)
- Get a result map by ID
addParameterMap
public void addParameterMap(com.ibatis.sqlmap.engine.mapping.parameter.ParameterMap map)
- Add a parameter map
getParameterMapNames
public java.util.Iterator getParameterMapNames()
- Get an iterator of all of the parameter maps
getParameterMap
public com.ibatis.sqlmap.engine.mapping.parameter.ParameterMap getParameterMap(java.lang.String id)
- Get a parameter map by ID
flushDataCache
public void flushDataCache()
- Flush all of the data caches
flushDataCache
public void flushDataCache(java.lang.String id)
- Flush a single cache by ID
insert
public java.lang.Object insert(com.ibatis.sqlmap.engine.scope.SessionScope session, java.lang.String id, java.lang.Object param) throws java.sql.SQLException
- Call an insert statement by ID
executeSelectKey
private java.lang.Object executeSelectKey(com.ibatis.sqlmap.engine.scope.SessionScope session, com.ibatis.sqlmap.engine.transaction.Transaction trans, com.ibatis.sqlmap.engine.mapping.statement.MappedStatement ms, java.lang.Object param) throws java.sql.SQLException
update
public int update(com.ibatis.sqlmap.engine.scope.SessionScope session, java.lang.String id, java.lang.Object param) throws java.sql.SQLException
- Execute an update statement
delete
public int delete(com.ibatis.sqlmap.engine.scope.SessionScope session, java.lang.String id, java.lang.Object param) throws java.sql.SQLException
- Execute a delete statement
queryForObject
public java.lang.Object queryForObject(com.ibatis.sqlmap.engine.scope.SessionScope session, java.lang.String id, java.lang.Object paramObject) throws java.sql.SQLException
- Execute a select for a single object
queryForObject
public java.lang.Object queryForObject(com.ibatis.sqlmap.engine.scope.SessionScope session, java.lang.String id, java.lang.Object paramObject, java.lang.Object resultObject) throws java.sql.SQLException
- Execute a select for a single object
queryForList
public java.util.List queryForList(com.ibatis.sqlmap.engine.scope.SessionScope session, java.lang.String id, java.lang.Object paramObject) throws java.sql.SQLException
- Execute a query for a list
queryForList
public java.util.List queryForList(com.ibatis.sqlmap.engine.scope.SessionScope session, java.lang.String id, java.lang.Object paramObject, int skip, int max) throws java.sql.SQLException
- Execute a query for a list
queryWithRowHandler
public void queryWithRowHandler(com.ibatis.sqlmap.engine.scope.SessionScope session, java.lang.String id, java.lang.Object paramObject, com.ibatis.sqlmap.client.event.RowHandler rowHandler) throws java.sql.SQLException
- Execute a query with a row handler.
The row handler is called once per row in the query results.
queryForPaginatedList
public com.ibatis.common.util.PaginatedList queryForPaginatedList(com.ibatis.sqlmap.engine.scope.SessionScope session, java.lang.String id, java.lang.Object paramObject, int pageSize) throws java.sql.SQLException
- Execute a query and return a paginated list
queryForMap
public java.util.Map queryForMap(com.ibatis.sqlmap.engine.scope.SessionScope session, java.lang.String id, java.lang.Object paramObject, java.lang.String keyProp) throws java.sql.SQLException
- Execute a query for a map.
The map has the table key as the key, and the results as the map data
queryForMap
public java.util.Map queryForMap(com.ibatis.sqlmap.engine.scope.SessionScope session, java.lang.String id, java.lang.Object paramObject, java.lang.String keyProp, java.lang.String valueProp) throws java.sql.SQLException
- Execute a query for a map.
The map has the table key as the key, and a property from the results as the map data
startTransaction
public void startTransaction(com.ibatis.sqlmap.engine.scope.SessionScope session) throws java.sql.SQLException
- Start a transaction on the session
startTransaction
public void startTransaction(com.ibatis.sqlmap.engine.scope.SessionScope session, int transactionIsolation) throws java.sql.SQLException
- Start a transaction on the session with the specified isolation level.
commitTransaction
public void commitTransaction(com.ibatis.sqlmap.engine.scope.SessionScope session) throws java.sql.SQLException
- Commit the transaction on a session
endTransaction
public void endTransaction(com.ibatis.sqlmap.engine.scope.SessionScope session) throws java.sql.SQLException
- End the transaction on a session
startBatch
public void startBatch(com.ibatis.sqlmap.engine.scope.SessionScope session)
- Start a batch for a session
executeBatch
public int executeBatch(com.ibatis.sqlmap.engine.scope.SessionScope session) throws java.sql.SQLException
- Execute a batch for a session
setUserProvidedTransaction
public void setUserProvidedTransaction(com.ibatis.sqlmap.engine.scope.SessionScope session, java.sql.Connection userConnection)
- Use a user-provided transaction for a session
getDataSource
public javax.sql.DataSource getDataSource()
- Get the DataSource for the session
getSqlExecutor
public com.ibatis.sqlmap.engine.execution.SqlExecutor getSqlExecutor()
- Getter for the SqlExecutor
getTransaction
public com.ibatis.sqlmap.engine.transaction.Transaction getTransaction(com.ibatis.sqlmap.engine.scope.SessionScope session)
- Get a transaction for the session
autoEndTransaction
private void autoEndTransaction(com.ibatis.sqlmap.engine.scope.SessionScope session, boolean autoStart) throws java.sql.SQLException
autoCommitTransaction
private void autoCommitTransaction(com.ibatis.sqlmap.engine.scope.SessionScope session, boolean autoStart) throws java.sql.SQLException
autoStartTransaction
private com.ibatis.sqlmap.engine.transaction.Transaction autoStartTransaction(com.ibatis.sqlmap.engine.scope.SessionScope session, boolean autoStart, com.ibatis.sqlmap.engine.transaction.Transaction trans) throws java.sql.SQLException
equals
public boolean equals(java.lang.Object obj)
- Description copied from class:
java.lang.Object - Determine whether this Object is semantically equal
to another Object.
There are some fairly strict requirements on this method which subclasses must follow:
- It must be transitive. If
a.equals(b)andb.equals(c), thena.equals(c)must be true as well. - It must be symmetric.
a.equals(b)andb.equals(a)must have the same value. - It must be reflexive.
a.equals(a)must always be true. - It must be consistent. Whichever value a.equals(b) returns on the first invocation must be the value returned on all later invocations.
a.equals(null)must be false.- It must be consistent with hashCode(). That is,
a.equals(b)must implya.hashCode() == b.hashCode(). The reverse is not true; two objects that are not equal may have the same hashcode, but that has the potential to harm hashing performance.
This is typically overridden to throw a java.lang.ClassCastException if the argument is not comparable to the class performing the comparison, but that is not a requirement. It is legal for
a.equals(b)to be true even thougha.getClass() != b.getClass(). Also, it is typical to never cause a java.lang.NullPointerException.In general, the Collections API (
java.util) use theequalsmethod rather than the==operator to compare objects. However, java.util.IdentityHashMap is an exception to this rule, for its own good reasons.The default implementation returns
this == o. - It must be transitive. If
hashCode
public int hashCode()
- Description copied from class:
java.lang.Object - Get a value that represents this Object, as uniquely as
possible within the confines of an int.
There are some requirements on this method which subclasses must follow:
- Semantic equality implies identical hashcodes. In other
words, if
a.equals(b)is true, thena.hashCode() == b.hashCode()must be as well. However, the reverse is not necessarily true, and two objects may have the same hashcode without being equal. - It must be consistent. Whichever value o.hashCode() returns on the first invocation must be the value returned on all later invocations as long as the object exists. Notice, however, that the result of hashCode may change between separate executions of a Virtual Machine, because it is not invoked on the same object.
Notice that since
hashCodeis used in java.util.Hashtable and other hashing classes, a poor implementation will degrade the performance of hashing (so don't blindly implement it as returning a constant!). Also, if calculating the hash is time-consuming, a class may consider caching the results.The default implementation returns
System.identityHashCode(this) - Semantic equality implies identical hashcodes. In other
words, if
popRequest
protected com.ibatis.sqlmap.engine.scope.RequestScope popRequest(com.ibatis.sqlmap.engine.scope.SessionScope session, com.ibatis.sqlmap.engine.mapping.statement.MappedStatement mappedStatement)
pushRequest
protected void pushRequest(com.ibatis.sqlmap.engine.scope.RequestScope request)
popSession
protected com.ibatis.sqlmap.engine.scope.SessionScope popSession()
pushSession
protected void pushSession(com.ibatis.sqlmap.engine.scope.SessionScope session)
|
|||||||||
| Home >> All >> com >> ibatis >> sqlmap >> engine >> [ impl overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate