org.apache.ibatis.session.defaults
Class DefaultSqlSession
java.lang.Object
org.apache.ibatis.session.defaults.DefaultSqlSession
- All Implemented Interfaces:
- SqlSession
public class DefaultSqlSession
- extends Object
- implements SqlSession
|
Method Summary |
void |
clearCache()
|
void |
close()
|
void |
commit()
|
void |
commit(boolean force)
|
int |
delete(String statement)
|
int |
delete(String statement,
Object parameter)
|
List<BatchResult> |
flushStatements()
|
Configuration |
getConfiguration()
|
Connection |
getConnection()
|
|
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,
ResultHandler handler)
|
void |
select(String statement,
Object parameter,
RowBounds rowBounds,
ResultHandler handler)
|
void |
select(String statement,
ResultHandler handler)
|
List |
selectList(String statement)
|
List |
selectList(String statement,
Object parameter)
|
List |
selectList(String statement,
Object parameter,
RowBounds rowBounds)
|
Map |
selectMap(String statement,
Object parameter,
String mapKey)
|
Map |
selectMap(String statement,
Object parameter,
String mapKey,
RowBounds rowBounds)
|
Map |
selectMap(String statement,
String mapKey)
|
Object |
selectOne(String statement)
|
Object |
selectOne(String statement,
Object parameter)
|
int |
update(String statement)
|
int |
update(String statement,
Object parameter)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSqlSession
public DefaultSqlSession(Configuration configuration,
Executor executor,
boolean autoCommit)
selectOne
public Object selectOne(String statement)
- Specified by:
selectOne in interface SqlSession
selectOne
public Object selectOne(String statement,
Object parameter)
- Specified by:
selectOne in interface SqlSession
selectMap
public Map selectMap(String statement,
String mapKey)
- Specified by:
selectMap in interface SqlSession
selectMap
public Map selectMap(String statement,
Object parameter,
String mapKey)
- Specified by:
selectMap in interface SqlSession
selectMap
public Map selectMap(String statement,
Object parameter,
String mapKey,
RowBounds rowBounds)
- Specified by:
selectMap in interface SqlSession
selectList
public List selectList(String statement)
- Specified by:
selectList in interface SqlSession
selectList
public List selectList(String statement,
Object parameter)
- Specified by:
selectList in interface SqlSession
selectList
public List selectList(String statement,
Object parameter,
RowBounds rowBounds)
- Specified by:
selectList in interface SqlSession
select
public void select(String statement,
Object parameter,
ResultHandler handler)
- Specified by:
select in interface SqlSession
select
public void select(String statement,
ResultHandler handler)
- Specified by:
select in interface SqlSession
select
public void select(String statement,
Object parameter,
RowBounds rowBounds,
ResultHandler handler)
- Specified by:
select in interface SqlSession
insert
public int insert(String statement)
- Specified by:
insert in interface SqlSession
insert
public int insert(String statement,
Object parameter)
- Specified by:
insert in interface SqlSession
update
public int update(String statement)
- Specified by:
update in interface SqlSession
update
public int update(String statement,
Object parameter)
- Specified by:
update in interface SqlSession
delete
public int delete(String statement)
- Specified by:
delete in interface SqlSession
delete
public int delete(String statement,
Object parameter)
- Specified by:
delete in interface SqlSession
commit
public void commit()
- Specified by:
commit in interface SqlSession
commit
public void commit(boolean force)
- Specified by:
commit in interface SqlSession
rollback
public void rollback()
- Specified by:
rollback in interface SqlSession
rollback
public void rollback(boolean force)
- Specified by:
rollback in interface SqlSession
flushStatements
public List<BatchResult> flushStatements()
- Specified by:
flushStatements in interface SqlSession
close
public void close()
- Specified by:
close in interface SqlSession
getConfiguration
public Configuration getConfiguration()
- Specified by:
getConfiguration in interface SqlSession
getMapper
public <T> T getMapper(Class<T> type)
- Specified by:
getMapper in interface SqlSession
getConnection
public Connection getConnection()
- Specified by:
getConnection in interface SqlSession
clearCache
public void clearCache()
- Specified by:
clearCache in interface SqlSession
Copyright © 2010-2011 MyBatis.org. All Rights Reserved.