public abstract class MyBatisFacade extends AbstractFacade<MyBatisSessionMgr,org.apache.ibatis.session.SqlSession>
| 限定符 | 构造器和说明 |
|---|---|
protected |
MyBatisFacade(MyBatisSessionMgr mgr) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
changeSessionExecutorTypeToBatch()
把当前
SqlSession 的 ExecutorType 设置为 ExecutorType.BATCH |
protected void |
changeSessionExecutorTypeToDefault()
把当前
SqlSession 的 ExecutorType 设置为默认值 |
protected void |
changeSessionExecutorTypeToReuse()
把当前
SqlSession 的 ExecutorType 设置为 ExecutorType.REUSE |
protected void |
changeSessionExecutorTypeToSimple()
把当前
SqlSession 的 ExecutorType 设置为 ExecutorType.SIMPLE |
protected void |
clearCache()
清空缓存
|
protected int |
delete(String statement)
执行删除
|
protected int |
delete(String statement,
Object parameter)
执行删除
|
protected <T> T |
getMapper(Class<T> type)
获取 type 类型的 Mapper
|
protected int |
insert(String statement)
执行插入
|
protected int |
insert(String statement,
Object parameter)
执行插入
|
protected void |
select(String statement,
Object parameter,
org.apache.ibatis.session.ResultHandler handler)
执行查询
|
protected void |
select(String statement,
Object parameter,
org.apache.ibatis.session.RowBounds rowBounds,
org.apache.ibatis.session.ResultHandler handler)
执行查询
|
protected void |
select(String statement,
org.apache.ibatis.session.ResultHandler handler)
执行查询
|
protected List<?> |
selectList(String statement)
查找对象集合
|
protected List<?> |
selectList(String statement,
Object parameter)
查找对象集合
|
protected List<?> |
selectList(String statement,
Object parameter,
org.apache.ibatis.session.RowBounds rowBounds)
查找对象集合
|
protected Map<?,?> |
selectMap(String statement,
Object parameter,
String mapKey)
查找多个对象集合
|
protected Map<?,?> |
selectMap(String statement,
Object parameter,
String mapKey,
org.apache.ibatis.session.RowBounds rowBounds)
查找多个对象集合
|
protected Map<?,?> |
selectMap(String statement,
String mapKey)
查找多个对象集合
|
protected Object |
selectOne(String statement)
查找单个对象
|
protected Object |
selectOne(String statement,
Object parameter)
查找单个对象
|
protected int |
update(String statement)
执行更新
|
protected int |
update(String statement,
Object parameter)
执行更新
|
getManager, getSessionprotected MyBatisFacade(MyBatisSessionMgr mgr)
protected Map<?,?> selectMap(String statement, Object parameter, String mapKey, org.apache.ibatis.session.RowBounds rowBounds)
protected List<?> selectList(String statement, Object parameter, org.apache.ibatis.session.RowBounds rowBounds)
protected void select(String statement, org.apache.ibatis.session.ResultHandler handler)
protected void select(String statement, Object parameter, org.apache.ibatis.session.ResultHandler handler)
protected void select(String statement, Object parameter, org.apache.ibatis.session.RowBounds rowBounds, org.apache.ibatis.session.ResultHandler handler)
protected int insert(String statement)
protected int update(String statement)
protected int delete(String statement)
protected <T> T getMapper(Class<T> type)
protected void clearCache()
protected void changeSessionExecutorTypeToDefault()
SqlSession 的 ExecutorType 设置为默认值protected void changeSessionExecutorTypeToSimple()
SqlSession 的 ExecutorType 设置为 ExecutorType.SIMPLEprotected void changeSessionExecutorTypeToReuse()
SqlSession 的 ExecutorType 设置为 ExecutorType.REUSEprotected void changeSessionExecutorTypeToBatch()
SqlSession 的 ExecutorType 设置为 ExecutorType.BATCHCopyright © 2015 JessMA Open Source. All rights reserved.