public class DelegatingSqlSession extends Object implements org.apache.ibatis.session.SqlSession
Implementation of SqlSession
delegating to a wrapped session
Modifier and Type | Field and Description |
---|---|
protected org.apache.ibatis.session.SqlSession |
wrappedSession |
Constructor and Description |
---|
DelegatingSqlSession(org.apache.ibatis.session.SqlSession wrappedSession) |
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() |
<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) |
<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 DelegatingSqlSession(org.apache.ibatis.session.SqlSession wrappedSession)
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 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
Copyright © 2018. All rights reserved.