| Modifier and Type | Field and Description |
|---|---|
protected String |
connectionMetadataDefaultCatalog |
protected String |
connectionMetadataDefaultSchema |
protected DbSqlSessionFactory |
dbSqlSessionFactory |
protected org.apache.ibatis.session.SqlSession |
sqlSession |
| Constructor and Description |
|---|
DbSqlSession(DbSqlSessionFactory dbSqlSessionFactory) |
DbSqlSession(DbSqlSessionFactory dbSqlSessionFactory,
Connection connection,
String catalog,
String schema) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
commit() |
void |
dbSchemaCheckVersion() |
void |
dbSchemaCreate() |
void |
dbSchemaDrop() |
void |
delete(Entity entity) |
void |
delete(String statement,
Object parameter) |
void |
flush() |
<T> T |
getCustomMapper(Class<T> type) |
DbSqlSessionFactory |
getDbSqlSessionFactory() |
org.apache.ibatis.session.SqlSession |
getSqlSession() |
void |
insert(Entity entity) |
boolean |
isMysql() |
boolean |
isOracle() |
void |
rollback() |
<T extends Entity> |
selectById(Class<T> entityClass,
String id) |
List |
selectList(String statement) |
List |
selectList(String statement,
ListQueryParameterObject parameter) |
List |
selectList(String statement,
ListQueryParameterObject parameter,
Page page) |
List |
selectList(String statement,
Object parameter) |
List |
selectList(String statement,
Object parameter,
int firstResult,
int maxResults) |
List |
selectList(String statement,
Object parameter,
Page page) |
List |
selectListWithRawParameter(String statement,
Object parameter,
int firstResult,
int maxResults) |
List |
selectListWithRawParameterWithoutFilter(String statement,
Object parameter,
int firstResult,
int maxResults) |
Object |
selectOne(String statement,
Object parameter) |
void |
update(Entity entity) |
int |
update(String statement,
Object parameters) |
protected org.apache.ibatis.session.SqlSession sqlSession
protected DbSqlSessionFactory dbSqlSessionFactory
protected String connectionMetadataDefaultCatalog
protected String connectionMetadataDefaultSchema
public DbSqlSession(DbSqlSessionFactory dbSqlSessionFactory)
public DbSqlSession(DbSqlSessionFactory dbSqlSessionFactory, Connection connection, String catalog, String schema)
public void insert(Entity entity)
public void update(Entity entity)
public void delete(Entity entity)
public List selectList(String statement, ListQueryParameterObject parameter, Page page)
public List selectList(String statement, Object parameter, int firstResult, int maxResults)
public List selectList(String statement, ListQueryParameterObject parameter)
public List selectListWithRawParameter(String statement, Object parameter, int firstResult, int maxResults)
public List selectListWithRawParameterWithoutFilter(String statement, Object parameter, int firstResult, int maxResults)
public void commit()
public void rollback()
public void dbSchemaCheckVersion()
public void dbSchemaCreate()
public void dbSchemaDrop()
public <T> T getCustomMapper(Class<T> type)
public boolean isMysql()
public boolean isOracle()
public org.apache.ibatis.session.SqlSession getSqlSession()
public DbSqlSessionFactory getDbSqlSessionFactory()
Copyright © 2017 Alfresco. All rights reserved.