com.ibatis.sqlmap.engine.impl
public class SqlMapSessionImpl extends Object implements SqlMapSession
| Field Summary | |
|---|---|
| protected boolean | closed |
| protected SqlMapExecutorDelegate | delegate |
| protected SessionScope | sessionScope |
| Constructor Summary | |
|---|---|
| SqlMapSessionImpl(SqlMapClientImpl client)
Constructor
| |
| Method Summary | |
|---|---|
| void | close() |
| void | commitTransaction() |
| int | delete(String id, Object param) |
| int | delete(String id) |
| void | endTransaction() |
| int | executeBatch() |
| List | executeBatchDetailed() |
| Connection | getCurrentConnection() |
| DataSource | getDataSource() |
| SqlMapExecutorDelegate | getDelegate()
Get the delegate
|
| MappedStatement | getMappedStatement(String id)
Gets a mapped statement by ID
|
| SqlExecutor | getSqlExecutor()
Get the SQL executor
|
| Connection | getUserConnection()
TODO Deprecated
|
| Object | insert(String id, Object param) |
| Object | insert(String id) |
| boolean | isClosed()
Getter to tell if the session is still open
|
| boolean | isEnhancementEnabled()
Get the status of CGLib enhancements
|
| boolean | isLazyLoadingEnabled()
Get the status of lazy loading
|
| void | open()
Start the session |
| List | queryForList(String id, Object paramObject) |
| List | queryForList(String id) |
| List | queryForList(String id, Object paramObject, int skip, int max) |
| List | queryForList(String id, int skip, int max) |
| Map | queryForMap(String id, Object paramObject, String keyProp) |
| Map | queryForMap(String id, Object paramObject, String keyProp, String valueProp) |
| Object | queryForObject(String id, Object paramObject) |
| Object | queryForObject(String id) |
| Object | queryForObject(String id, Object paramObject, Object resultObject) |
| PaginatedList | queryForPaginatedList(String id, Object paramObject, int pageSize) |
| PaginatedList | queryForPaginatedList(String id, int pageSize) |
| void | queryWithRowHandler(String id, Object paramObject, RowHandler rowHandler) |
| void | queryWithRowHandler(String id, RowHandler rowHandler) |
| void | setUserConnection(Connection connection) |
| void | startBatch() |
| void | startTransaction() |
| void | startTransaction(int transactionIsolation) |
| int | update(String id, Object param) |
| int | update(String id) |
Parameters: client - the client that will use the session
Returns: - the delegate
Parameters: id - the ID
Returns: - the mapped statement
Returns: - the executor
Deprecated:
TODO DeprecatedReturns: Current connection
Throws: SQLException
Returns: - the status of the session
Returns: - the status
Returns: - the status
Deprecated: All paginated list features have been deprecated
Deprecated: All paginated list features have been deprecated