com.ibatis.sqlmap.engine.impl
public class SqlMapExecutorDelegate extends Object
| Field Summary | |
|---|---|
| protected SqlExecutor | sqlExecutor |
| Constructor Summary | |
|---|---|
| SqlMapExecutorDelegate()
Default constructor | |
| Method Summary | |
|---|---|
| void | addCacheModel(CacheModel model)
Add a cache model
|
| void | addMappedStatement(MappedStatement ms)
Add a mapped statement
|
| void | addParameterMap(ParameterMap map)
Add a parameter map
|
| void | addResultMap(ResultMap map)
Add a result map
|
| protected void | autoCommitTransaction(SessionScope sessionScope, boolean autoStart) |
| protected void | autoEndTransaction(SessionScope sessionScope, boolean autoStart) |
| protected Transaction | autoStartTransaction(SessionScope sessionScope, boolean autoStart, Transaction trans) |
| protected SessionScope | beginSessionScope() |
| protected StatementScope | beginStatementScope(SessionScope sessionScope, MappedStatement mappedStatement) |
| void | commitTransaction(SessionScope sessionScope)
Commit the transaction on a session
|
| int | delete(SessionScope sessionScope, String id, Object param)
Execute a delete statement
|
| protected void | endSessionScope(SessionScope sessionScope) |
| protected void | endStatementScope(StatementScope statementScope) |
| void | endTransaction(SessionScope sessionScope)
End the transaction on a session
|
| boolean | equals(Object obj) |
| int | executeBatch(SessionScope sessionScope)
Execute a batch for a session
|
| List | executeBatchDetailed(SessionScope sessionScope)
Execute a batch for a session
|
| void | flushDataCache()
Flush all of the data caches |
| void | flushDataCache(String id)
Flush a single cache by ID
|
| CacheModel | getCacheModel(String id)
Get a cache model by ID
|
| Iterator | getCacheModelNames()
Get an iterator of the cache models
|
| DataExchangeFactory | getDataExchangeFactory()
Getter for the DataExchangeFactory
|
| DataSource | getDataSource()
Get the DataSource for the session
|
| MappedStatement | getMappedStatement(String id)
Get a mappedstatement by its ID
|
| Iterator | getMappedStatementNames()
Get an iterator of the mapped statements
|
| int | getMaxTransactions()
DO NOT DEPEND ON THIS. |
| ParameterMap | getParameterMap(String id)
Get a parameter map by ID
|
| Iterator | getParameterMapNames()
Get an iterator of all of the parameter maps
|
| ResultMap | getResultMap(String id)
Get a result map by ID
|
| Iterator | getResultMapNames()
Get an iterator of the result maps
|
| ResultObjectFactory | getResultObjectFactory() |
| SqlExecutor | getSqlExecutor()
Getter for the SqlExecutor
|
| Transaction | getTransaction(SessionScope sessionScope)
Get a transaction for the session
|
| TransactionManager | getTxManager()
Getter for the transaction manager
|
| TypeHandlerFactory | getTypeHandlerFactory()
Getter for the TypeHandlerFactory
|
| int | hashCode() |
| Object | insert(SessionScope sessionScope, String id, Object param)
Call an insert statement by ID
|
| boolean | isCacheModelsEnabled()
Getter for the status of caching
|
| boolean | isEnhancementEnabled()
Getter for the status of CGLib enhancements
|
| boolean | isForceMultipleResultSetSupport() |
| boolean | isLazyLoadingEnabled()
Getter for the status of lazy loading
|
| boolean | isStatementCacheEnabled() |
| boolean | isUseColumnLabel() |
| List | queryForList(SessionScope sessionScope, String id, Object paramObject)
Execute a query for a list
|
| List | queryForList(SessionScope sessionScope, String id, Object paramObject, int skip, int max)
Execute a query for a list
|
| Map | queryForMap(SessionScope sessionScope, String id, Object paramObject, String keyProp)
Execute a query for a map.
|
| Map | queryForMap(SessionScope sessionScope, String id, Object paramObject, String keyProp, String valueProp)
Execute a query for a map.
|
| Object | queryForObject(SessionScope sessionScope, String id, Object paramObject)
Execute a select for a single object
|
| Object | queryForObject(SessionScope sessionScope, String id, Object paramObject, Object resultObject)
Execute a select for a single object
|
| PaginatedList | queryForPaginatedList(SessionScope sessionScope, String id, Object paramObject, int pageSize)
Execute a query and return a paginated list
|
| void | queryWithRowHandler(SessionScope sessionScope, String id, Object paramObject, RowHandler rowHandler)
Execute a query with a row handler.
|
| void | setCacheModelsEnabled(boolean cacheModelsEnabled)
Turn on or off caching
|
| void | setEnhancementEnabled(boolean enhancementEnabled)
Turn on or off CGLib enhancements
|
| void | setForceMultipleResultSetSupport(boolean forceMultipleResultSetSupport) |
| void | setLazyLoadingEnabled(boolean lazyLoadingEnabled)
Turn on or off lazy loading
|
| void | setResultObjectFactory(ResultObjectFactory resultObjectFactory) |
| void | setStatementCacheEnabled(boolean statementCacheEnabled) |
| void | setTxManager(TransactionManager txManager)
Setter for the transaction manager
|
| void | setUseColumnLabel(boolean useColumnLabel) |
| void | setUserProvidedTransaction(SessionScope sessionScope, Connection userConnection)
Use a user-provided transaction for a session
|
| void | startBatch(SessionScope sessionScope)
Start a batch for a session
|
| void | startTransaction(SessionScope sessionScope)
Start a transaction on the session
|
| void | startTransaction(SessionScope sessionScope, int transactionIsolation)
Start a transaction on the session with the specified isolation level.
|
| int | update(SessionScope sessionScope, String id, Object param)
Execute an update statement
|
Parameters: model - the model to add
Parameters: ms - the mapped statement to add
Parameters: map - the map to add
Parameters: map - the result map to add
Parameters: sessionScope - the session
Throws: SQLException - if the transaction could not be committed
Parameters: sessionScope - the session scope id - the statement ID param - the parameter object
Returns: - the number of rows deleted
Throws: SQLException - if the delete fails
Parameters: sessionScope - the session
Throws: SQLException - if the transaction could not be ended
Parameters: sessionScope - the session
Returns: - the number of rows impacted by the batch
Throws: SQLException - if the batch fails
Parameters: sessionScope - the session
Returns: - a List of BatchResult objects (may be null if no batch has been initiated). There will be one BatchResult object in the list for each sub-batch executed
Throws: SQLException if a database access error occurs, or the drive does not support batch statements BatchException if the driver throws BatchUpdateException
Parameters: id - the ID
Parameters: id - the ID
Returns: - the cache model
Returns: - the cache models
Returns: - the DataExchangeFactory
Returns: - the DataSource
Parameters: id - the statement ID
Returns: - the mapped statement
Returns: - the iterator
Deprecated:
DO NOT DEPEND ON THIS. Here to avoid breaking spring integration.Parameters: id - the ID
Returns: - the parameter map
Returns: - the parameter maps
Parameters: id - the ID
Returns: - the result map
Returns: - the result maps
Returns: the SqlExecutor
Parameters: sessionScope - the session
Returns: - the transaction
Returns: - the transaction manager
Returns: - the TypeHandlerFactory
Parameters: sessionScope - the session id - the statement ID param - the parameter object
Returns: - the generated key (or null)
Throws: SQLException - if the insert fails
Returns: - the status
Returns: - the status
Returns: - the status
Parameters: sessionScope - the session scope id - the statement ID paramObject - the parameter object
Returns: - the data list
Throws: SQLException - if the query fails
Parameters: sessionScope - the session scope id - the statement ID paramObject - the parameter object skip - the number of rows to skip max - the maximum number of rows to return
Returns: - the data list
Throws: SQLException - if the query fails
Parameters: sessionScope - the session scope id - the statement ID paramObject - the parameter object keyProp - the key property (from the results for the map)
Returns: - the Map
Throws: SQLException - if the query fails
Parameters: sessionScope - the session scope id - the statement ID paramObject - the parameter object keyProp - the property for the map key valueProp - the property for the map data
Returns: - the Map
Throws: SQLException - if the query fails
Parameters: sessionScope - the session scope id - the statement ID paramObject - the parameter object
Returns: - the result of the query
Throws: SQLException - if the query fails
Parameters: sessionScope - the session scope id - the statement ID paramObject - the parameter object resultObject - the result object (if not supplied or null, a new object will be created)
Returns: - the result of the query
Throws: SQLException - if the query fails
Deprecated: All paginated list features have been deprecated
Execute a query and return a paginated listParameters: sessionScope - the session scope id - the statement ID paramObject - the parameter object pageSize - the page size
Returns: - the data list
Throws: SQLException - if the query fails
Parameters: sessionScope - the session scope id - the statement ID paramObject - the parameter object rowHandler - the row handler
Throws: SQLException - if the query fails
Parameters: cacheModelsEnabled - the new state of caching
Parameters: enhancementEnabled - the new state
Parameters: lazyLoadingEnabled - the new state of caching
Parameters: txManager - the transaction manager
Parameters: sessionScope - the session scope userConnection - the user supplied connection
Parameters: sessionScope - the session
Parameters: sessionScope - the session
Throws: SQLException - if the transaction could not be started
Parameters: sessionScope - the session
Throws: SQLException - if the transaction could not be started
Parameters: sessionScope - the session scope id - the statement ID param - the parameter object
Returns: - the number of rows updated
Throws: SQLException - if the update fails