Package org.activiti.engine.impl.db
Class DbSqlSessionFactory
java.lang.Object
org.activiti.engine.impl.db.DbSqlSessionFactory
- All Implemented Interfaces:
org.activiti.engine.impl.interceptor.SessionFactory
public class DbSqlSessionFactory
extends Object
implements org.activiti.engine.impl.interceptor.SessionFactory
- Author:
- Tom Baeyens
-
Field Summary
Modifier and TypeFieldDescription -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBulkDeleteStatement
(Class<?> persistentObjectClass) getBulkInsertStatement
(Class clazz) getDeleteStatement
(Class<?> persistentObjectClass) org.activiti.engine.impl.cfg.IdGenerator
getInsertStatement
(Class<? extends org.activiti.engine.impl.db.PersistentObject> clazz) getInsertStatement
(org.activiti.engine.impl.db.PersistentObject object) int
getSelectStatement
(Class<?> persistentObjectClass) Class<?>
org.apache.ibatis.session.SqlSessionFactory
getUpdateStatement
(org.activiti.engine.impl.db.PersistentObject object) isBulkInsertable
(Class<? extends org.activiti.engine.impl.db.PersistentObject> persistentObjectClass) boolean
boolean
boolean
mapStatement
(String statement) org.activiti.engine.impl.interceptor.Session
void
setBulkDeleteStatements
(Map<Class<?>, String> bulkDeleteStatements) void
setBulkInsertEnabled
(boolean isBulkInsertEnabled, String databaseType) void
setBulkInsertStatements
(Map<Class<?>, String> bulkInsertStatements) void
setDatabaseCatalog
(String databaseCatalog) void
setDatabaseSchema
(String databaseSchema) void
setDatabaseTablePrefix
(String databaseTablePrefix) void
setDatabaseType
(String databaseType) void
setDbHistoryUsed
(boolean isDbHistoryUsed) void
setDbIdentityUsed
(boolean isDbIdentityUsed) void
setDeleteStatements
(Map<Class<?>, String> deleteStatements) void
setIdGenerator
(org.activiti.engine.impl.cfg.IdGenerator idGenerator) void
setInsertStatements
(Map<Class<?>, String> insertStatements) void
setMaxNrOfStatementsInBulkInsert
(int maxNrOfStatementsInBulkInsert) void
setSelectStatements
(Map<Class<?>, String> selectStatements) void
setSqlSessionFactory
(org.apache.ibatis.session.SqlSessionFactory sqlSessionFactory) void
setStatementMappings
(Map<String, String> statementMappings) void
setTablePrefixIsSchema
(boolean tablePrefixIsSchema) void
setUpdateStatements
(Map<Class<?>, String> updateStatements)
-
Field Details
-
databaseSpecificStatements
-
databaseSpecificLimitBeforeStatements
-
databaseSpecificLimitAfterStatements
-
databaseSpecificLimitBetweenStatements
-
databaseSpecificOrderByStatements
-
databaseOuterJoinLimitBetweenStatements
-
databaseSpecificLimitBeforeNativeQueryStatements
-
-
Constructor Details
-
DbSqlSessionFactory
public DbSqlSessionFactory()
-
-
Method Details
-
getSessionType
- Specified by:
getSessionType
in interfaceorg.activiti.engine.impl.interceptor.SessionFactory
-
openSession
public org.activiti.engine.impl.interceptor.Session openSession()- Specified by:
openSession
in interfaceorg.activiti.engine.impl.interceptor.SessionFactory
-
getInsertStatement
-
getInsertStatement
-
getBulkInsertStatement
-
getUpdateStatement
-
getDeleteStatement
-
getBulkDeleteStatement
-
getSelectStatement
-
mapStatement
-
setDatabaseType
-
setBulkInsertEnabled
-
isBulkInsertable
-
getSqlSessionFactory
public org.apache.ibatis.session.SqlSessionFactory getSqlSessionFactory() -
setSqlSessionFactory
public void setSqlSessionFactory(org.apache.ibatis.session.SqlSessionFactory sqlSessionFactory) -
getIdGenerator
public org.activiti.engine.impl.cfg.IdGenerator getIdGenerator() -
setIdGenerator
public void setIdGenerator(org.activiti.engine.impl.cfg.IdGenerator idGenerator) -
getDatabaseType
-
getStatementMappings
-
setStatementMappings
-
getInsertStatements
-
setInsertStatements
-
getBulkInsertStatements
-
setBulkInsertStatements
-
getUpdateStatements
-
setUpdateStatements
-
getDeleteStatements
-
setDeleteStatements
-
getBulkDeleteStatements
-
setBulkDeleteStatements
-
getSelectStatements
-
setSelectStatements
-
isDbIdentityUsed
public boolean isDbIdentityUsed() -
setDbIdentityUsed
public void setDbIdentityUsed(boolean isDbIdentityUsed) -
isDbHistoryUsed
public boolean isDbHistoryUsed() -
setDbHistoryUsed
public void setDbHistoryUsed(boolean isDbHistoryUsed) -
setDatabaseTablePrefix
-
getDatabaseTablePrefix
-
getDatabaseCatalog
-
setDatabaseCatalog
-
getDatabaseSchema
-
setDatabaseSchema
-
setTablePrefixIsSchema
public void setTablePrefixIsSchema(boolean tablePrefixIsSchema) -
isTablePrefixIsSchema
public boolean isTablePrefixIsSchema() -
getMaxNrOfStatementsInBulkInsert
public int getMaxNrOfStatementsInBulkInsert() -
setMaxNrOfStatementsInBulkInsert
public void setMaxNrOfStatementsInBulkInsert(int maxNrOfStatementsInBulkInsert)
-