Package com.alibaba.druid.support.ibatis
Class SqlMapClientImplWrapper
- java.lang.Object
-
- com.ibatis.sqlmap.engine.impl.SqlMapClientImpl
-
- com.alibaba.druid.support.ibatis.SqlMapClientImplWrapper
-
- 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 SqlMapClientImplWrapper extends com.ibatis.sqlmap.engine.impl.SqlMapClientImpl
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSqlMapClientImplWrapper.IbatisStatementInfo
-
Constructor Summary
Constructors Constructor Description SqlMapClientImplWrapper(com.ibatis.sqlmap.engine.impl.SqlMapClientImpl raw)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidcommitTransaction()intdelete(String id)intdelete(String id, Object param)voidendTransaction()intexecuteBatch()ListexecuteBatchDetailed()protected SqlMapSessionWrappergetLocalSqlMapSessionWrapper()com.ibatis.sqlmap.client.SqlMapSessiongetSession()Objectinsert(String id)Objectinsert(String id, Object param)com.ibatis.sqlmap.client.SqlMapSessionopenSession(Connection conn)ListqueryForList(String id)ListqueryForList(String id, int skip, int max)ListqueryForList(String id, Object paramObject)ListqueryForList(String id, Object paramObject, int skip, int max)MapqueryForMap(String id, Object paramObject, String keyProp)MapqueryForMap(String id, Object paramObject, String keyProp, String valueProp)ObjectqueryForObject(String id)ObjectqueryForObject(String id, Object paramObject)ObjectqueryForObject(String id, Object paramObject, Object resultObject)com.ibatis.common.util.PaginatedListqueryForPaginatedList(String id, int pageSize)Deprecated.All paginated list features have been deprecatedcom.ibatis.common.util.PaginatedListqueryForPaginatedList(String id, Object paramObject, int pageSize)Deprecated.All paginated list features have been deprecatedvoidqueryWithRowHandler(String id, com.ibatis.sqlmap.client.event.RowHandler rowHandler)voidqueryWithRowHandler(String id, Object paramObject, com.ibatis.sqlmap.client.event.RowHandler rowHandler)voidsetLocal(String id, com.ibatis.sqlmap.client.SqlMapExecutor executor)voidsetUserConnection(Connection connection)voidstartBatch()voidstartTransaction()voidstartTransaction(int transactionIsolation)intupdate(String id)intupdate(String id, Object param)-
Methods inherited from class com.ibatis.sqlmap.engine.impl.SqlMapClientImpl
flushDataCache, flushDataCache, getCurrentConnection, getDataSource, getDelegate, getLocalSqlMapSession, getMappedStatement, getResultObjectFactory, getSqlExecutor, getUserConnection, isEnhancementEnabled, isLazyLoadingEnabled, openSession
-
-
-
-
Method Detail
-
setLocal
public void setLocal(String id, com.ibatis.sqlmap.client.SqlMapExecutor executor)
-
getLocalSqlMapSessionWrapper
protected SqlMapSessionWrapper getLocalSqlMapSessionWrapper()
-
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- Overrides:
openSessionin classcom.ibatis.sqlmap.engine.impl.SqlMapClientImpl
-
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- Overrides:
getSessionin classcom.ibatis.sqlmap.engine.impl.SqlMapClientImpl
-
insert
public Object insert(String id, Object param) throws SQLException
- Specified by:
insertin interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
insertin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Overrides:
insertin classcom.ibatis.sqlmap.engine.impl.SqlMapClientImpl- Throws:
SQLException
-
insert
public Object insert(String id) throws SQLException
- Specified by:
insertin interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
insertin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Overrides:
insertin classcom.ibatis.sqlmap.engine.impl.SqlMapClientImpl- Throws:
SQLException
-
update
public int update(String id, Object param) throws SQLException
- Specified by:
updatein interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
updatein interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Overrides:
updatein classcom.ibatis.sqlmap.engine.impl.SqlMapClientImpl- Throws:
SQLException
-
update
public int update(String id) throws SQLException
- Specified by:
updatein interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
updatein interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Overrides:
updatein classcom.ibatis.sqlmap.engine.impl.SqlMapClientImpl- Throws:
SQLException
-
delete
public int delete(String id, Object param) throws SQLException
- Specified by:
deletein interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
deletein interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Overrides:
deletein classcom.ibatis.sqlmap.engine.impl.SqlMapClientImpl- Throws:
SQLException
-
delete
public int delete(String id) throws SQLException
- Specified by:
deletein interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
deletein interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Overrides:
deletein classcom.ibatis.sqlmap.engine.impl.SqlMapClientImpl- Throws:
SQLException
-
queryForObject
public Object queryForObject(String id, Object paramObject) throws SQLException
- Specified by:
queryForObjectin interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
queryForObjectin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Overrides:
queryForObjectin classcom.ibatis.sqlmap.engine.impl.SqlMapClientImpl- Throws:
SQLException
-
queryForObject
public Object queryForObject(String id) throws SQLException
- Specified by:
queryForObjectin interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
queryForObjectin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Overrides:
queryForObjectin classcom.ibatis.sqlmap.engine.impl.SqlMapClientImpl- Throws:
SQLException
-
queryForObject
public Object queryForObject(String id, Object paramObject, Object resultObject) throws SQLException
- Specified by:
queryForObjectin interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
queryForObjectin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Overrides:
queryForObjectin classcom.ibatis.sqlmap.engine.impl.SqlMapClientImpl- Throws:
SQLException
-
queryForList
public List queryForList(String id, Object paramObject) throws SQLException
- Specified by:
queryForListin interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
queryForListin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Overrides:
queryForListin classcom.ibatis.sqlmap.engine.impl.SqlMapClientImpl- Throws:
SQLException
-
queryForList
public List queryForList(String id) throws SQLException
- Specified by:
queryForListin interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
queryForListin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Overrides:
queryForListin classcom.ibatis.sqlmap.engine.impl.SqlMapClientImpl- Throws:
SQLException
-
queryForList
public List queryForList(String id, Object paramObject, int skip, int max) throws SQLException
- Specified by:
queryForListin interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
queryForListin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Overrides:
queryForListin classcom.ibatis.sqlmap.engine.impl.SqlMapClientImpl- Throws:
SQLException
-
queryForList
public List queryForList(String id, int skip, int max) throws SQLException
- Specified by:
queryForListin interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
queryForListin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Overrides:
queryForListin classcom.ibatis.sqlmap.engine.impl.SqlMapClientImpl- Throws:
SQLException
-
queryForPaginatedList
public com.ibatis.common.util.PaginatedList queryForPaginatedList(String id, Object paramObject, int pageSize) throws SQLException
Deprecated.All paginated list features have been deprecated- Specified by:
queryForPaginatedListin interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
queryForPaginatedListin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Overrides:
queryForPaginatedListin classcom.ibatis.sqlmap.engine.impl.SqlMapClientImpl- Throws:
SQLException
-
queryForPaginatedList
public com.ibatis.common.util.PaginatedList queryForPaginatedList(String id, int pageSize) throws SQLException
Deprecated.All paginated list features have been deprecated- Specified by:
queryForPaginatedListin interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
queryForPaginatedListin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Overrides:
queryForPaginatedListin classcom.ibatis.sqlmap.engine.impl.SqlMapClientImpl- Throws:
SQLException
-
queryForMap
public Map queryForMap(String id, Object paramObject, String keyProp) throws SQLException
- Specified by:
queryForMapin interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
queryForMapin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Overrides:
queryForMapin classcom.ibatis.sqlmap.engine.impl.SqlMapClientImpl- Throws:
SQLException
-
queryForMap
public Map queryForMap(String id, Object paramObject, String keyProp, String valueProp) throws SQLException
- Specified by:
queryForMapin interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
queryForMapin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Overrides:
queryForMapin classcom.ibatis.sqlmap.engine.impl.SqlMapClientImpl- Throws:
SQLException
-
queryWithRowHandler
public void queryWithRowHandler(String id, Object paramObject, com.ibatis.sqlmap.client.event.RowHandler rowHandler) throws SQLException
- Specified by:
queryWithRowHandlerin interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
queryWithRowHandlerin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Overrides:
queryWithRowHandlerin classcom.ibatis.sqlmap.engine.impl.SqlMapClientImpl- Throws:
SQLException
-
queryWithRowHandler
public void queryWithRowHandler(String id, com.ibatis.sqlmap.client.event.RowHandler rowHandler) throws SQLException
- Specified by:
queryWithRowHandlerin interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
queryWithRowHandlerin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Overrides:
queryWithRowHandlerin classcom.ibatis.sqlmap.engine.impl.SqlMapClientImpl- Throws:
SQLException
-
startTransaction
public void startTransaction() throws SQLException- Specified by:
startTransactionin interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
startTransactionin interfacecom.ibatis.sqlmap.client.SqlMapTransactionManager- Overrides:
startTransactionin classcom.ibatis.sqlmap.engine.impl.SqlMapClientImpl- 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- Overrides:
startTransactionin classcom.ibatis.sqlmap.engine.impl.SqlMapClientImpl- 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- Overrides:
commitTransactionin classcom.ibatis.sqlmap.engine.impl.SqlMapClientImpl- 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- Overrides:
endTransactionin classcom.ibatis.sqlmap.engine.impl.SqlMapClientImpl- Throws:
SQLException
-
startBatch
public void startBatch() throws SQLException- Specified by:
startBatchin interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
startBatchin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Overrides:
startBatchin classcom.ibatis.sqlmap.engine.impl.SqlMapClientImpl- Throws:
SQLException
-
executeBatch
public int executeBatch() throws SQLException- Specified by:
executeBatchin interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
executeBatchin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Overrides:
executeBatchin classcom.ibatis.sqlmap.engine.impl.SqlMapClientImpl- Throws:
SQLException
-
executeBatchDetailed
public List executeBatchDetailed() throws SQLException, com.ibatis.sqlmap.engine.execution.BatchException
- Specified by:
executeBatchDetailedin interfacecom.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient- Specified by:
executeBatchDetailedin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Overrides:
executeBatchDetailedin classcom.ibatis.sqlmap.engine.impl.SqlMapClientImpl- Throws:
SQLExceptioncom.ibatis.sqlmap.engine.execution.BatchException
-
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- Overrides:
setUserConnectionin classcom.ibatis.sqlmap.engine.impl.SqlMapClientImpl- Throws:
SQLException
-
-