Class DelegatingSqlSession
- java.lang.Object
-
- org.camunda.bpm.qa.performance.engine.util.DelegatingSqlSession
-
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.ibatis.session.SqlSession
- Direct Known Subclasses:
StatementLogSqlSession
public class DelegatingSqlSession extends Object implements org.apache.ibatis.session.SqlSession
Implementation of
SqlSessiondelegating to a wrapped session- Author:
- Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.ibatis.session.SqlSessionwrappedSession
-
Constructor Summary
Constructors Constructor Description DelegatingSqlSession(org.apache.ibatis.session.SqlSession wrappedSession)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearCache()voidclose()voidcommit()voidcommit(boolean force)intdelete(String statement)intdelete(String statement, Object parameter)List<org.apache.ibatis.executor.BatchResult>flushStatements()org.apache.ibatis.session.ConfigurationgetConfiguration()ConnectiongetConnection()<T> TgetMapper(Class<T> type)intinsert(String statement)intinsert(String statement, Object parameter)voidrollback()voidrollback(boolean force)voidselect(String statement, Object parameter, org.apache.ibatis.session.ResultHandler handler)voidselect(String statement, Object parameter, org.apache.ibatis.session.RowBounds rowBounds, org.apache.ibatis.session.ResultHandler handler)voidselect(String statement, org.apache.ibatis.session.ResultHandler handler)<T> org.apache.ibatis.cursor.Cursor<T>selectCursor(String s)<T> org.apache.ibatis.cursor.Cursor<T>selectCursor(String s, Object o)<T> org.apache.ibatis.cursor.Cursor<T>selectCursor(String s, Object o, org.apache.ibatis.session.RowBounds rowBounds)<E> List<E>selectList(String statement)<E> List<E>selectList(String statement, Object parameter)<E> List<E>selectList(String statement, Object parameter, org.apache.ibatis.session.RowBounds rowBounds)<K,V>
Map<K,V>selectMap(String statement, Object parameter, String mapKey)<K,V>
Map<K,V>selectMap(String statement, Object parameter, String mapKey, org.apache.ibatis.session.RowBounds rowBounds)<K,V>
Map<K,V>selectMap(String statement, String mapKey)<T> TselectOne(String statement)<T> TselectOne(String statement, Object parameter)intupdate(String statement)intupdate(String statement, Object parameter)
-
-
-
Method Detail
-
selectOne
public <T> T selectOne(String statement)
- Specified by:
selectOnein interfaceorg.apache.ibatis.session.SqlSession
-
selectOne
public <T> T selectOne(String statement, Object parameter)
- Specified by:
selectOnein interfaceorg.apache.ibatis.session.SqlSession
-
selectList
public <E> List<E> selectList(String statement)
- Specified by:
selectListin interfaceorg.apache.ibatis.session.SqlSession
-
selectList
public <E> List<E> selectList(String statement, Object parameter)
- Specified by:
selectListin interfaceorg.apache.ibatis.session.SqlSession
-
selectList
public <E> List<E> selectList(String statement, Object parameter, org.apache.ibatis.session.RowBounds rowBounds)
- Specified by:
selectListin interfaceorg.apache.ibatis.session.SqlSession
-
selectMap
public <K,V> Map<K,V> selectMap(String statement, String mapKey)
- Specified by:
selectMapin interfaceorg.apache.ibatis.session.SqlSession
-
selectMap
public <K,V> Map<K,V> selectMap(String statement, Object parameter, String mapKey)
- Specified by:
selectMapin interfaceorg.apache.ibatis.session.SqlSession
-
selectMap
public <K,V> Map<K,V> selectMap(String statement, Object parameter, String mapKey, org.apache.ibatis.session.RowBounds rowBounds)
- Specified by:
selectMapin interfaceorg.apache.ibatis.session.SqlSession
-
selectCursor
public <T> org.apache.ibatis.cursor.Cursor<T> selectCursor(String s)
- Specified by:
selectCursorin interfaceorg.apache.ibatis.session.SqlSession
-
selectCursor
public <T> org.apache.ibatis.cursor.Cursor<T> selectCursor(String s, Object o)
- Specified by:
selectCursorin interfaceorg.apache.ibatis.session.SqlSession
-
selectCursor
public <T> org.apache.ibatis.cursor.Cursor<T> selectCursor(String s, Object o, org.apache.ibatis.session.RowBounds rowBounds)
- Specified by:
selectCursorin interfaceorg.apache.ibatis.session.SqlSession
-
select
public void select(String statement, Object parameter, org.apache.ibatis.session.ResultHandler handler)
- Specified by:
selectin interfaceorg.apache.ibatis.session.SqlSession
-
select
public void select(String statement, org.apache.ibatis.session.ResultHandler handler)
- Specified by:
selectin interfaceorg.apache.ibatis.session.SqlSession
-
select
public void select(String statement, Object parameter, org.apache.ibatis.session.RowBounds rowBounds, org.apache.ibatis.session.ResultHandler handler)
- Specified by:
selectin interfaceorg.apache.ibatis.session.SqlSession
-
insert
public int insert(String statement)
- Specified by:
insertin interfaceorg.apache.ibatis.session.SqlSession
-
insert
public int insert(String statement, Object parameter)
- Specified by:
insertin interfaceorg.apache.ibatis.session.SqlSession
-
update
public int update(String statement)
- Specified by:
updatein interfaceorg.apache.ibatis.session.SqlSession
-
update
public int update(String statement, Object parameter)
- Specified by:
updatein interfaceorg.apache.ibatis.session.SqlSession
-
delete
public int delete(String statement)
- Specified by:
deletein interfaceorg.apache.ibatis.session.SqlSession
-
delete
public int delete(String statement, Object parameter)
- Specified by:
deletein interfaceorg.apache.ibatis.session.SqlSession
-
commit
public void commit()
- Specified by:
commitin interfaceorg.apache.ibatis.session.SqlSession
-
commit
public void commit(boolean force)
- Specified by:
commitin interfaceorg.apache.ibatis.session.SqlSession
-
rollback
public void rollback()
- Specified by:
rollbackin interfaceorg.apache.ibatis.session.SqlSession
-
rollback
public void rollback(boolean force)
- Specified by:
rollbackin interfaceorg.apache.ibatis.session.SqlSession
-
flushStatements
public List<org.apache.ibatis.executor.BatchResult> flushStatements()
- Specified by:
flushStatementsin interfaceorg.apache.ibatis.session.SqlSession
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.apache.ibatis.session.SqlSession
-
clearCache
public void clearCache()
- Specified by:
clearCachein interfaceorg.apache.ibatis.session.SqlSession
-
getConfiguration
public org.apache.ibatis.session.Configuration getConfiguration()
- Specified by:
getConfigurationin interfaceorg.apache.ibatis.session.SqlSession
-
getMapper
public <T> T getMapper(Class<T> type)
- Specified by:
getMapperin interfaceorg.apache.ibatis.session.SqlSession
-
getConnection
public Connection getConnection()
- Specified by:
getConnectionin interfaceorg.apache.ibatis.session.SqlSession
-
-