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
Fields Modifier and Type Field Description static Map<String,String>
databaseOuterJoinLimitBetweenStatements
static Map<String,String>
databaseSpecificLimitAfterStatements
static Map<String,String>
databaseSpecificLimitBeforeNativeQueryStatements
static Map<String,String>
databaseSpecificLimitBeforeStatements
static Map<String,String>
databaseSpecificLimitBetweenStatements
static Map<String,String>
databaseSpecificOrderByStatements
-
Constructor Summary
Constructors Constructor Description DbSqlSessionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBulkDeleteStatement(Class<?> persistentObjectClass)
Map<Class<?>,String>
getBulkDeleteStatements()
String
getBulkInsertStatement(Class clazz)
Map<Class<?>,String>
getBulkInsertStatements()
String
getDatabaseCatalog()
String
getDatabaseSchema()
String
getDatabaseTablePrefix()
String
getDatabaseType()
String
getDeleteStatement(Class<?> persistentObjectClass)
Map<Class<?>,String>
getDeleteStatements()
org.activiti.engine.impl.cfg.IdGenerator
getIdGenerator()
String
getInsertStatement(Class<? extends org.activiti.engine.impl.db.PersistentObject> clazz)
String
getInsertStatement(org.activiti.engine.impl.db.PersistentObject object)
Map<Class<?>,String>
getInsertStatements()
int
getMaxNrOfStatementsInBulkInsert()
String
getSelectStatement(Class<?> persistentObjectClass)
Map<Class<?>,String>
getSelectStatements()
Class<?>
getSessionType()
org.apache.ibatis.session.SqlSessionFactory
getSqlSessionFactory()
Map<String,String>
getStatementMappings()
String
getUpdateStatement(org.activiti.engine.impl.db.PersistentObject object)
Map<Class<?>,String>
getUpdateStatements()
Boolean
isBulkInsertable(Class<? extends org.activiti.engine.impl.db.PersistentObject> persistentObjectClass)
boolean
isDbHistoryUsed()
boolean
isDbIdentityUsed()
boolean
isTablePrefixIsSchema()
String
mapStatement(String statement)
org.activiti.engine.impl.interceptor.Session
openSession()
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 Detail
-
databaseSpecificLimitBeforeStatements
public static final Map<String,String> databaseSpecificLimitBeforeStatements
-
databaseSpecificLimitAfterStatements
public static final Map<String,String> databaseSpecificLimitAfterStatements
-
databaseSpecificLimitBetweenStatements
public static final Map<String,String> databaseSpecificLimitBetweenStatements
-
databaseSpecificOrderByStatements
public static final Map<String,String> databaseSpecificOrderByStatements
-
databaseOuterJoinLimitBetweenStatements
public static final Map<String,String> databaseOuterJoinLimitBetweenStatements
-
-
Method Detail
-
getSessionType
public Class<?> 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
public String getInsertStatement(org.activiti.engine.impl.db.PersistentObject object)
-
getInsertStatement
public String getInsertStatement(Class<? extends org.activiti.engine.impl.db.PersistentObject> clazz)
-
getUpdateStatement
public String getUpdateStatement(org.activiti.engine.impl.db.PersistentObject object)
-
setDatabaseType
public void setDatabaseType(String databaseType)
-
setBulkInsertEnabled
public void setBulkInsertEnabled(boolean isBulkInsertEnabled, String databaseType)
-
isBulkInsertable
public Boolean isBulkInsertable(Class<? extends org.activiti.engine.impl.db.PersistentObject> persistentObjectClass)
-
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
public String getDatabaseType()
-
setBulkInsertStatements
public void setBulkInsertStatements(Map<Class<?>,String> bulkInsertStatements)
-
setBulkDeleteStatements
public void setBulkDeleteStatements(Map<Class<?>,String> bulkDeleteStatements)
-
isDbIdentityUsed
public boolean isDbIdentityUsed()
-
setDbIdentityUsed
public void setDbIdentityUsed(boolean isDbIdentityUsed)
-
isDbHistoryUsed
public boolean isDbHistoryUsed()
-
setDbHistoryUsed
public void setDbHistoryUsed(boolean isDbHistoryUsed)
-
setDatabaseTablePrefix
public void setDatabaseTablePrefix(String databaseTablePrefix)
-
getDatabaseTablePrefix
public String getDatabaseTablePrefix()
-
getDatabaseCatalog
public String getDatabaseCatalog()
-
setDatabaseCatalog
public void setDatabaseCatalog(String databaseCatalog)
-
getDatabaseSchema
public String getDatabaseSchema()
-
setDatabaseSchema
public void setDatabaseSchema(String databaseSchema)
-
setTablePrefixIsSchema
public void setTablePrefixIsSchema(boolean tablePrefixIsSchema)
-
isTablePrefixIsSchema
public boolean isTablePrefixIsSchema()
-
getMaxNrOfStatementsInBulkInsert
public int getMaxNrOfStatementsInBulkInsert()
-
setMaxNrOfStatementsInBulkInsert
public void setMaxNrOfStatementsInBulkInsert(int maxNrOfStatementsInBulkInsert)
-
-