Class DelegatingSqlSession
- java.lang.Object
-
- org.camunda.bpm.qa.performance.engine.util.DelegatingSqlSession
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,org.apache.ibatis.session.SqlSession
- Direct Known Subclasses:
StatementLogSqlSession
public class DelegatingSqlSession extends java.lang.Object implements org.apache.ibatis.session.SqlSession
Implementation of
SqlSession
delegating to a wrapped session- Author:
- Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.ibatis.session.SqlSession
wrappedSession
-
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 void
clearCache()
void
close()
void
commit()
void
commit(boolean force)
int
delete(java.lang.String statement)
int
delete(java.lang.String statement, java.lang.Object parameter)
java.util.List<org.apache.ibatis.executor.BatchResult>
flushStatements()
org.apache.ibatis.session.Configuration
getConfiguration()
java.sql.Connection
getConnection()
<T> T
getMapper(java.lang.Class<T> type)
int
insert(java.lang.String statement)
int
insert(java.lang.String statement, java.lang.Object parameter)
void
rollback()
void
rollback(boolean force)
void
select(java.lang.String statement, java.lang.Object parameter, org.apache.ibatis.session.ResultHandler handler)
void
select(java.lang.String statement, java.lang.Object parameter, org.apache.ibatis.session.RowBounds rowBounds, org.apache.ibatis.session.ResultHandler handler)
void
select(java.lang.String statement, org.apache.ibatis.session.ResultHandler handler)
<T> org.apache.ibatis.cursor.Cursor<T>
selectCursor(java.lang.String s)
<T> org.apache.ibatis.cursor.Cursor<T>
selectCursor(java.lang.String s, java.lang.Object o)
<T> org.apache.ibatis.cursor.Cursor<T>
selectCursor(java.lang.String s, java.lang.Object o, org.apache.ibatis.session.RowBounds rowBounds)
<E> java.util.List<E>
selectList(java.lang.String statement)
<E> java.util.List<E>
selectList(java.lang.String statement, java.lang.Object parameter)
<E> java.util.List<E>
selectList(java.lang.String statement, java.lang.Object parameter, org.apache.ibatis.session.RowBounds rowBounds)
<K,V>
java.util.Map<K,V>selectMap(java.lang.String statement, java.lang.Object parameter, java.lang.String mapKey)
<K,V>
java.util.Map<K,V>selectMap(java.lang.String statement, java.lang.Object parameter, java.lang.String mapKey, org.apache.ibatis.session.RowBounds rowBounds)
<K,V>
java.util.Map<K,V>selectMap(java.lang.String statement, java.lang.String mapKey)
<T> T
selectOne(java.lang.String statement)
<T> T
selectOne(java.lang.String statement, java.lang.Object parameter)
int
update(java.lang.String statement)
int
update(java.lang.String statement, java.lang.Object parameter)
-
-
-
Method Detail
-
selectOne
public <T> T selectOne(java.lang.String statement)
- Specified by:
selectOne
in interfaceorg.apache.ibatis.session.SqlSession
-
selectOne
public <T> T selectOne(java.lang.String statement, java.lang.Object parameter)
- Specified by:
selectOne
in interfaceorg.apache.ibatis.session.SqlSession
-
selectList
public <E> java.util.List<E> selectList(java.lang.String statement)
- Specified by:
selectList
in interfaceorg.apache.ibatis.session.SqlSession
-
selectList
public <E> java.util.List<E> selectList(java.lang.String statement, java.lang.Object parameter)
- Specified by:
selectList
in interfaceorg.apache.ibatis.session.SqlSession
-
selectList
public <E> java.util.List<E> selectList(java.lang.String statement, java.lang.Object parameter, org.apache.ibatis.session.RowBounds rowBounds)
- Specified by:
selectList
in interfaceorg.apache.ibatis.session.SqlSession
-
selectMap
public <K,V> java.util.Map<K,V> selectMap(java.lang.String statement, java.lang.String mapKey)
- Specified by:
selectMap
in interfaceorg.apache.ibatis.session.SqlSession
-
selectMap
public <K,V> java.util.Map<K,V> selectMap(java.lang.String statement, java.lang.Object parameter, java.lang.String mapKey)
- Specified by:
selectMap
in interfaceorg.apache.ibatis.session.SqlSession
-
selectMap
public <K,V> java.util.Map<K,V> selectMap(java.lang.String statement, java.lang.Object parameter, java.lang.String mapKey, org.apache.ibatis.session.RowBounds rowBounds)
- Specified by:
selectMap
in interfaceorg.apache.ibatis.session.SqlSession
-
selectCursor
public <T> org.apache.ibatis.cursor.Cursor<T> selectCursor(java.lang.String s)
- Specified by:
selectCursor
in interfaceorg.apache.ibatis.session.SqlSession
-
selectCursor
public <T> org.apache.ibatis.cursor.Cursor<T> selectCursor(java.lang.String s, java.lang.Object o)
- Specified by:
selectCursor
in interfaceorg.apache.ibatis.session.SqlSession
-
selectCursor
public <T> org.apache.ibatis.cursor.Cursor<T> selectCursor(java.lang.String s, java.lang.Object o, org.apache.ibatis.session.RowBounds rowBounds)
- Specified by:
selectCursor
in interfaceorg.apache.ibatis.session.SqlSession
-
select
public void select(java.lang.String statement, java.lang.Object parameter, org.apache.ibatis.session.ResultHandler handler)
- Specified by:
select
in interfaceorg.apache.ibatis.session.SqlSession
-
select
public void select(java.lang.String statement, org.apache.ibatis.session.ResultHandler handler)
- Specified by:
select
in interfaceorg.apache.ibatis.session.SqlSession
-
select
public void select(java.lang.String statement, java.lang.Object parameter, org.apache.ibatis.session.RowBounds rowBounds, org.apache.ibatis.session.ResultHandler handler)
- Specified by:
select
in interfaceorg.apache.ibatis.session.SqlSession
-
insert
public int insert(java.lang.String statement)
- Specified by:
insert
in interfaceorg.apache.ibatis.session.SqlSession
-
insert
public int insert(java.lang.String statement, java.lang.Object parameter)
- Specified by:
insert
in interfaceorg.apache.ibatis.session.SqlSession
-
update
public int update(java.lang.String statement)
- Specified by:
update
in interfaceorg.apache.ibatis.session.SqlSession
-
update
public int update(java.lang.String statement, java.lang.Object parameter)
- Specified by:
update
in interfaceorg.apache.ibatis.session.SqlSession
-
delete
public int delete(java.lang.String statement)
- Specified by:
delete
in interfaceorg.apache.ibatis.session.SqlSession
-
delete
public int delete(java.lang.String statement, java.lang.Object parameter)
- Specified by:
delete
in interfaceorg.apache.ibatis.session.SqlSession
-
commit
public void commit()
- Specified by:
commit
in interfaceorg.apache.ibatis.session.SqlSession
-
commit
public void commit(boolean force)
- Specified by:
commit
in interfaceorg.apache.ibatis.session.SqlSession
-
rollback
public void rollback()
- Specified by:
rollback
in interfaceorg.apache.ibatis.session.SqlSession
-
rollback
public void rollback(boolean force)
- Specified by:
rollback
in interfaceorg.apache.ibatis.session.SqlSession
-
flushStatements
public java.util.List<org.apache.ibatis.executor.BatchResult> flushStatements()
- Specified by:
flushStatements
in interfaceorg.apache.ibatis.session.SqlSession
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in interfaceorg.apache.ibatis.session.SqlSession
-
clearCache
public void clearCache()
- Specified by:
clearCache
in interfaceorg.apache.ibatis.session.SqlSession
-
getConfiguration
public org.apache.ibatis.session.Configuration getConfiguration()
- Specified by:
getConfiguration
in interfaceorg.apache.ibatis.session.SqlSession
-
getMapper
public <T> T getMapper(java.lang.Class<T> type)
- Specified by:
getMapper
in interfaceorg.apache.ibatis.session.SqlSession
-
getConnection
public java.sql.Connection getConnection()
- Specified by:
getConnection
in interfaceorg.apache.ibatis.session.SqlSession
-
-