public class SqlSessionDecorator extends Object implements org.apache.ibatis.session.SqlSession
Constructor and Description |
---|
SqlSessionDecorator(org.apache.ibatis.session.SqlSession delegate) |
Modifier and Type | Method and Description |
---|---|
void |
clearCache() |
void |
close() |
void |
commit() |
void |
commit(boolean force) |
int |
delete(String statement) |
int |
delete(String statement,
Object parameter) |
List<org.apache.ibatis.executor.BatchResult> |
flushStatements() |
org.apache.ibatis.session.Configuration |
getConfiguration() |
Connection |
getConnection() |
protected org.apache.ibatis.session.SqlSession |
getDelegate() |
<T> T |
getMapper(Class<T> type) |
int |
insert(String statement) |
int |
insert(String statement,
Object parameter) |
void |
rollback() |
void |
rollback(boolean force) |
void |
select(String statement,
Object parameter,
org.apache.ibatis.session.ResultHandler handler) |
void |
select(String statement,
Object parameter,
org.apache.ibatis.session.RowBounds rowBounds,
org.apache.ibatis.session.ResultHandler handler) |
void |
select(String statement,
org.apache.ibatis.session.ResultHandler handler) |
<T> org.apache.ibatis.cursor.Cursor<T> |
selectCursor(String statement) |
<T> org.apache.ibatis.cursor.Cursor<T> |
selectCursor(String statement,
Object parameter) |
<T> org.apache.ibatis.cursor.Cursor<T> |
selectCursor(String statement,
Object parameter,
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> T |
selectOne(String statement) |
<T> T |
selectOne(String statement,
Object parameter) |
int |
update(String statement) |
int |
update(String statement,
Object parameter) |
public SqlSessionDecorator(org.apache.ibatis.session.SqlSession delegate)
@Nonnull protected org.apache.ibatis.session.SqlSession getDelegate()
public <T> T selectOne(String statement)
selectOne
in interface org.apache.ibatis.session.SqlSession
public <T> T selectOne(String statement, Object parameter)
selectOne
in interface org.apache.ibatis.session.SqlSession
public <E> List<E> selectList(String statement)
selectList
in interface org.apache.ibatis.session.SqlSession
public <E> List<E> selectList(String statement, Object parameter)
selectList
in interface org.apache.ibatis.session.SqlSession
public <E> List<E> selectList(String statement, Object parameter, org.apache.ibatis.session.RowBounds rowBounds)
selectList
in interface org.apache.ibatis.session.SqlSession
public <K,V> Map<K,V> selectMap(String statement, String mapKey)
selectMap
in interface org.apache.ibatis.session.SqlSession
public <K,V> Map<K,V> selectMap(String statement, Object parameter, String mapKey)
selectMap
in interface org.apache.ibatis.session.SqlSession
public <K,V> Map<K,V> selectMap(String statement, Object parameter, String mapKey, org.apache.ibatis.session.RowBounds rowBounds)
selectMap
in interface org.apache.ibatis.session.SqlSession
public <T> org.apache.ibatis.cursor.Cursor<T> selectCursor(String statement)
selectCursor
in interface org.apache.ibatis.session.SqlSession
public <T> org.apache.ibatis.cursor.Cursor<T> selectCursor(String statement, Object parameter)
selectCursor
in interface org.apache.ibatis.session.SqlSession
public <T> org.apache.ibatis.cursor.Cursor<T> selectCursor(String statement, Object parameter, org.apache.ibatis.session.RowBounds rowBounds)
selectCursor
in interface org.apache.ibatis.session.SqlSession
public void select(String statement, Object parameter, org.apache.ibatis.session.ResultHandler handler)
select
in interface org.apache.ibatis.session.SqlSession
public void select(String statement, org.apache.ibatis.session.ResultHandler handler)
select
in interface org.apache.ibatis.session.SqlSession
public void select(String statement, Object parameter, org.apache.ibatis.session.RowBounds rowBounds, org.apache.ibatis.session.ResultHandler handler)
select
in interface org.apache.ibatis.session.SqlSession
public int insert(String statement)
insert
in interface org.apache.ibatis.session.SqlSession
public int insert(String statement, Object parameter)
insert
in interface org.apache.ibatis.session.SqlSession
public int update(String statement)
update
in interface org.apache.ibatis.session.SqlSession
public int update(String statement, Object parameter)
update
in interface org.apache.ibatis.session.SqlSession
public int delete(String statement)
delete
in interface org.apache.ibatis.session.SqlSession
public int delete(String statement, Object parameter)
delete
in interface org.apache.ibatis.session.SqlSession
public void commit()
commit
in interface org.apache.ibatis.session.SqlSession
public void commit(boolean force)
commit
in interface org.apache.ibatis.session.SqlSession
public void rollback()
rollback
in interface org.apache.ibatis.session.SqlSession
public void rollback(boolean force)
rollback
in interface org.apache.ibatis.session.SqlSession
public List<org.apache.ibatis.executor.BatchResult> flushStatements()
flushStatements
in interface org.apache.ibatis.session.SqlSession
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in interface org.apache.ibatis.session.SqlSession
public void clearCache()
clearCache
in interface org.apache.ibatis.session.SqlSession
public org.apache.ibatis.session.Configuration getConfiguration()
getConfiguration
in interface org.apache.ibatis.session.SqlSession
public <T> T getMapper(Class<T> type)
getMapper
in interface org.apache.ibatis.session.SqlSession
public Connection getConnection()
getConnection
in interface org.apache.ibatis.session.SqlSession