Package com.alibaba.druid.support.ibatis
Class SqlMapClientWrapper
- java.lang.Object
-
- com.alibaba.druid.support.ibatis.SqlMapExecutorWrapper
-
- com.alibaba.druid.support.ibatis.SqlMapClientWrapper
-
- All Implemented Interfaces:
com.ibatis.sqlmap.client.SqlMapClient,com.ibatis.sqlmap.client.SqlMapExecutor,com.ibatis.sqlmap.client.SqlMapTransactionManager,com.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient
public class SqlMapClientWrapper extends SqlMapExecutorWrapper implements com.ibatis.sqlmap.client.SqlMapClient, com.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient
-
-
Field Summary
Fields Modifier and Type Field Description protected com.ibatis.sqlmap.engine.impl.ExtendedSqlMapClientclient-
Fields inherited from class com.alibaba.druid.support.ibatis.SqlMapExecutorWrapper
clientImpl, clientImplWrapper
-
-
Constructor Summary
Constructors Constructor Description SqlMapClientWrapper(com.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommitTransaction()voidendTransaction()voidflushDataCache()voidflushDataCache(String cacheId)com.ibatis.sqlmap.engine.impl.ExtendedSqlMapClientgetClient()ConnectiongetCurrentConnection()DataSourcegetDataSource()com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegategetDelegate()com.ibatis.sqlmap.engine.mapping.statement.MappedStatementgetMappedStatement(String id)com.ibatis.sqlmap.engine.mapping.result.ResultObjectFactorygetResultObjectFactory()com.ibatis.sqlmap.client.SqlMapSessiongetSession()com.ibatis.sqlmap.engine.execution.SqlExecutorgetSqlExecutor()ConnectiongetUserConnection()booleanisEnhancementEnabled()booleanisLazyLoadingEnabled()com.ibatis.sqlmap.client.SqlMapSessionopenSession()com.ibatis.sqlmap.client.SqlMapSessionopenSession(Connection conn)voidsetUserConnection(Connection connection)voidstartTransaction()voidstartTransaction(int transactionIsolation)-
Methods inherited from class com.alibaba.druid.support.ibatis.SqlMapExecutorWrapper
delete, delete, executeBatch, executeBatchDetailed, insert, insert, queryForList, queryForList, queryForList, queryForList, queryForMap, queryForMap, queryForObject, queryForObject, queryForObject, queryForPaginatedList, queryForPaginatedList, queryWithRowHandler, queryWithRowHandler, startBatch, update, update
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient
delete, delete, executeBatch, executeBatchDetailed, insert, insert, queryForList, queryForList, queryForList, queryForList, queryForMap, queryForMap, queryForObject, queryForObject, queryForObject, queryForPaginatedList, queryForPaginatedList, queryWithRowHandler, queryWithRowHandler, startBatch, update, update
-
-
-
-
Method Detail
-
getClient
public com.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient getClient()
-
startTransaction
public void startTransaction() throws SQLException- Specified by:
startTransactionin interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
startTransactionin interfacecom.ibatis.sqlmap.client.SqlMapTransactionManager- Throws:
SQLException
-
startTransaction
public void startTransaction(int transactionIsolation) throws SQLException- Specified by:
startTransactionin interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
startTransactionin interfacecom.ibatis.sqlmap.client.SqlMapTransactionManager- Throws:
SQLException
-
commitTransaction
public void commitTransaction() throws SQLException- Specified by:
commitTransactionin interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
commitTransactionin interfacecom.ibatis.sqlmap.client.SqlMapTransactionManager- Throws:
SQLException
-
endTransaction
public void endTransaction() throws SQLException- Specified by:
endTransactionin interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
endTransactionin interfacecom.ibatis.sqlmap.client.SqlMapTransactionManager- Throws:
SQLException
-
setUserConnection
public void setUserConnection(Connection connection) throws SQLException
- Specified by:
setUserConnectionin interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
setUserConnectionin interfacecom.ibatis.sqlmap.client.SqlMapTransactionManager- Throws:
SQLException
-
getUserConnection
public Connection getUserConnection() throws SQLException
- Specified by:
getUserConnectionin interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
getUserConnectionin interfacecom.ibatis.sqlmap.client.SqlMapTransactionManager- Throws:
SQLException
-
getCurrentConnection
public Connection getCurrentConnection() throws SQLException
- Specified by:
getCurrentConnectionin interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
getCurrentConnectionin interfacecom.ibatis.sqlmap.client.SqlMapTransactionManager- Throws:
SQLException
-
getDataSource
public DataSource getDataSource()
- Specified by:
getDataSourcein interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
getDataSourcein interfacecom.ibatis.sqlmap.client.SqlMapTransactionManager
-
openSession
public com.ibatis.sqlmap.client.SqlMapSession openSession()
- Specified by:
openSessionin interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
openSessionin interfacecom.ibatis.sqlmap.client.SqlMapClient
-
openSession
public com.ibatis.sqlmap.client.SqlMapSession openSession(Connection conn)
- Specified by:
openSessionin interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
openSessionin interfacecom.ibatis.sqlmap.client.SqlMapClient
-
getSession
public com.ibatis.sqlmap.client.SqlMapSession getSession()
- Specified by:
getSessionin interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
getSessionin interfacecom.ibatis.sqlmap.client.SqlMapClient
-
flushDataCache
public void flushDataCache()
- Specified by:
flushDataCachein interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
flushDataCachein interfacecom.ibatis.sqlmap.client.SqlMapClient
-
flushDataCache
public void flushDataCache(String cacheId)
- Specified by:
flushDataCachein interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
flushDataCachein interfacecom.ibatis.sqlmap.client.SqlMapClient
-
getMappedStatement
public com.ibatis.sqlmap.engine.mapping.statement.MappedStatement getMappedStatement(String id)
- Specified by:
getMappedStatementin interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient
-
isLazyLoadingEnabled
public boolean isLazyLoadingEnabled()
- Specified by:
isLazyLoadingEnabledin interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient
-
isEnhancementEnabled
public boolean isEnhancementEnabled()
- Specified by:
isEnhancementEnabledin interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient
-
getSqlExecutor
public com.ibatis.sqlmap.engine.execution.SqlExecutor getSqlExecutor()
- Specified by:
getSqlExecutorin interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient
-
getDelegate
public com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate getDelegate()
- Specified by:
getDelegatein interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient
-
getResultObjectFactory
public com.ibatis.sqlmap.engine.mapping.result.ResultObjectFactory getResultObjectFactory()
- Specified by:
getResultObjectFactoryin interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient
-
-