Package com.alibaba.druid.support.ibatis
Class SqlMapExecutorWrapper
- java.lang.Object
-
- com.alibaba.druid.support.ibatis.SqlMapExecutorWrapper
-
- All Implemented Interfaces:
com.ibatis.sqlmap.client.SqlMapExecutor
- Direct Known Subclasses:
SqlMapClientWrapper,SqlMapSessionWrapper
public class SqlMapExecutorWrapper extends Object implements com.ibatis.sqlmap.client.SqlMapExecutor
-
-
Field Summary
Fields Modifier and Type Field Description protected com.ibatis.sqlmap.engine.impl.SqlMapClientImplclientImplprotected SqlMapClientImplWrapperclientImplWrapper
-
Constructor Summary
Constructors Constructor Description SqlMapExecutorWrapper(com.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient client, com.ibatis.sqlmap.client.SqlMapExecutor executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdelete(String id)intdelete(String id, Object parameterObject)intexecuteBatch()ListexecuteBatchDetailed()Objectinsert(String id)Objectinsert(String id, Object parameterObject)ListqueryForList(String id)ListqueryForList(String id, int skip, int max)ListqueryForList(String id, Object parameterObject)ListqueryForList(String id, Object parameterObject, int skip, int max)MapqueryForMap(String id, Object parameterObject, String keyProp)MapqueryForMap(String id, Object parameterObject, String keyProp, String valueProp)ObjectqueryForObject(String id)ObjectqueryForObject(String id, Object parameterObject)ObjectqueryForObject(String id, Object parameterObject, Object resultObject)com.ibatis.common.util.PaginatedListqueryForPaginatedList(String id, int pageSize)com.ibatis.common.util.PaginatedListqueryForPaginatedList(String id, Object parameterObject, int pageSize)voidqueryWithRowHandler(String id, com.ibatis.sqlmap.client.event.RowHandler rowHandler)voidqueryWithRowHandler(String id, Object parameterObject, com.ibatis.sqlmap.client.event.RowHandler rowHandler)voidstartBatch()intupdate(String id)intupdate(String id, Object parameterObject)
-
-
-
Field Detail
-
clientImpl
protected final com.ibatis.sqlmap.engine.impl.SqlMapClientImpl clientImpl
-
clientImplWrapper
protected final SqlMapClientImplWrapper clientImplWrapper
-
-
Method Detail
-
insert
public Object insert(String id, Object parameterObject) throws SQLException
- Specified by:
insertin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Throws:
SQLException
-
insert
public Object insert(String id) throws SQLException
- Specified by:
insertin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Throws:
SQLException
-
update
public int update(String id, Object parameterObject) throws SQLException
- Specified by:
updatein interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Throws:
SQLException
-
update
public int update(String id) throws SQLException
- Specified by:
updatein interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Throws:
SQLException
-
delete
public int delete(String id, Object parameterObject) throws SQLException
- Specified by:
deletein interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Throws:
SQLException
-
delete
public int delete(String id) throws SQLException
- Specified by:
deletein interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Throws:
SQLException
-
queryForObject
public Object queryForObject(String id, Object parameterObject) throws SQLException
- Specified by:
queryForObjectin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Throws:
SQLException
-
queryForObject
public Object queryForObject(String id) throws SQLException
- Specified by:
queryForObjectin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Throws:
SQLException
-
queryForObject
public Object queryForObject(String id, Object parameterObject, Object resultObject) throws SQLException
- Specified by:
queryForObjectin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Throws:
SQLException
-
queryForList
public List queryForList(String id, Object parameterObject) throws SQLException
- Specified by:
queryForListin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Throws:
SQLException
-
queryForList
public List queryForList(String id) throws SQLException
- Specified by:
queryForListin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Throws:
SQLException
-
queryForList
public List queryForList(String id, Object parameterObject, int skip, int max) throws SQLException
- Specified by:
queryForListin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Throws:
SQLException
-
queryForList
public List queryForList(String id, int skip, int max) throws SQLException
- Specified by:
queryForListin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Throws:
SQLException
-
queryWithRowHandler
public void queryWithRowHandler(String id, Object parameterObject, com.ibatis.sqlmap.client.event.RowHandler rowHandler) throws SQLException
- Specified by:
queryWithRowHandlerin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Throws:
SQLException
-
queryWithRowHandler
public void queryWithRowHandler(String id, com.ibatis.sqlmap.client.event.RowHandler rowHandler) throws SQLException
- Specified by:
queryWithRowHandlerin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Throws:
SQLException
-
queryForPaginatedList
public com.ibatis.common.util.PaginatedList queryForPaginatedList(String id, Object parameterObject, int pageSize) throws SQLException
- Specified by:
queryForPaginatedListin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Throws:
SQLException
-
queryForPaginatedList
public com.ibatis.common.util.PaginatedList queryForPaginatedList(String id, int pageSize) throws SQLException
- Specified by:
queryForPaginatedListin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Throws:
SQLException
-
queryForMap
public Map queryForMap(String id, Object parameterObject, String keyProp) throws SQLException
- Specified by:
queryForMapin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Throws:
SQLException
-
queryForMap
public Map queryForMap(String id, Object parameterObject, String keyProp, String valueProp) throws SQLException
- Specified by:
queryForMapin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Throws:
SQLException
-
startBatch
public void startBatch() throws SQLException- Specified by:
startBatchin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Throws:
SQLException
-
executeBatch
public int executeBatch() throws SQLException- Specified by:
executeBatchin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Throws:
SQLException
-
executeBatchDetailed
public List executeBatchDetailed() throws SQLException, com.ibatis.sqlmap.engine.execution.BatchException
- Specified by:
executeBatchDetailedin interfacecom.ibatis.sqlmap.client.SqlMapExecutor- Throws:
SQLExceptioncom.ibatis.sqlmap.engine.execution.BatchException
-
-