Class DbSqlSessionFactory
java.lang.Object
org.camunda.bpm.engine.impl.db.sql.DbSqlSessionFactory
- All Implemented Interfaces:
SessionFactory
- Author:
- Tom Baeyens
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
static final String
protected String
In some situations you want to set the schema to use for table checks / generation if the database metadata doesn't return that correctly, see https://jira.codehaus.org/browse/ACT-1220, https://jira.codehaus.org/browse/ACT-1062protected String
protected String
static final String
protected boolean
static final String
protected IdGenerator
protected boolean
protected boolean
protected boolean
static final String
static final int
static final String
static final String
static final String
static final String
protected org.apache.ibatis.session.SqlSessionFactory
static final String[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static void
addDatabaseSpecificStatement
(String databaseType, String activitiStatement, String ibatisStatement) getDeleteStatement
(Class<?> persistentObjectClass) getInsertStatement
(DbEntity object) getSelectStatement
(Class<?> persistentObjectClass) Class<?>
org.apache.ibatis.session.SqlSessionFactory
getUpdateStatement
(DbEntity object) boolean
boolean
boolean
boolean
mapStatement
(String statement) openSession
(Connection connection, String catalog, String schema) void
setCmmnEnabled
(boolean cmmnEnabled) 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
setDmnEnabled
(boolean dmnEnabled) void
setIdGenerator
(IdGenerator idGenerator) void
setInsertStatements
(Map<Class<?>, String> insertStatements) void
setSelectStatements
(Map<Class<?>, String> selectStatements) void
setSqlSessionFactory
(org.apache.ibatis.session.SqlSessionFactory sqlSessionFactory) void
setStatementMappings
(Map<String, String> statementMappings) void
setUpdateStatements
(Map<Class<?>, String> updateStatements)
-
Field Details
-
MSSQL
- See Also:
-
DB2
- See Also:
-
ORACLE
- See Also:
-
H2
- See Also:
-
MYSQL
- See Also:
-
POSTGRES
- See Also:
-
MARIADB
- See Also:
-
CRDB
- See Also:
-
SUPPORTED_DATABASES
-
databaseSpecificStatements
-
databaseSpecificLimitBeforeStatements
-
databaseSpecificLimitAfterStatements
-
databaseSpecificLimitBeforeWithoutOffsetStatements
-
databaseSpecificLimitAfterWithoutOffsetStatements
-
databaseSpecificInnerLimitAfterStatements
-
databaseSpecificLimitBetweenStatements
-
databaseSpecificLimitBetweenFilterStatements
-
databaseSpecificLimitBetweenAcquisitionStatements
-
databaseSpecificLimitBeforeInUpdate
-
databaseSpecificLimitAfterInUpdate
-
databaseSpecificCountDistinctBeforeStart
-
databaseSpecificCountDistinctBeforeEnd
-
databaseSpecificCountDistinctAfterEnd
-
optimizeDatabaseSpecificLimitBeforeWithoutOffsetStatements
-
optimizeDatabaseSpecificLimitAfterWithoutOffsetStatements
-
databaseSpecificEscapeChar
-
databaseSpecificOrderByStatements
-
databaseSpecificLimitBeforeNativeQueryStatements
-
databaseSpecificBitAnd1
-
databaseSpecificBitAnd2
-
databaseSpecificBitAnd3
-
databaseSpecificDatepart1
-
databaseSpecificDatepart2
-
databaseSpecificDatepart3
-
databaseSpecificDummyTable
-
databaseSpecificIfNull
-
databaseSpecificTrueConstant
-
databaseSpecificFalseConstant
-
databaseSpecificDistinct
-
databaseSpecificNumericCast
-
dbSpecificConstants
-
databaseSpecificDaysComparator
-
databaseSpecificCollationForCaseSensitivity
-
databaseSpecificAuthJoinStart
-
databaseSpecificAuthJoinEnd
-
databaseSpecificAuthJoinSeparator
-
databaseSpecificAuth1JoinStart
-
databaseSpecificAuth1JoinEnd
-
databaseSpecificAuth1JoinSeparator
-
databaseSpecificExtractTimeUnitFromDate
-
MAXIMUM_NUMBER_PARAMS
public static final int MAXIMUM_NUMBER_PARAMS- See Also:
-
databaseType
-
databaseTablePrefix
-
databaseSchema
In some situations you want to set the schema to use for table checks / generation if the database metadata doesn't return that correctly, see https://jira.codehaus.org/browse/ACT-1220, https://jira.codehaus.org/browse/ACT-1062 -
sqlSessionFactory
protected org.apache.ibatis.session.SqlSessionFactory sqlSessionFactory -
idGenerator
-
statementMappings
-
insertStatements
-
updateStatements
-
deleteStatements
-
selectStatements
-
isDbIdentityUsed
protected boolean isDbIdentityUsed -
isDbHistoryUsed
protected boolean isDbHistoryUsed -
cmmnEnabled
protected boolean cmmnEnabled -
dmnEnabled
protected boolean dmnEnabled -
jdbcBatchProcessing
protected boolean jdbcBatchProcessing
-
-
Constructor Details
-
DbSqlSessionFactory
public DbSqlSessionFactory(boolean jdbcBatchProcessing)
-
-
Method Details
-
getSessionType
- Specified by:
getSessionType
in interfaceSessionFactory
-
openSession
- Specified by:
openSession
in interfaceSessionFactory
-
openSession
-
getInsertStatement
-
getUpdateStatement
-
getDeleteStatement
-
getSelectStatement
-
addDatabaseSpecificStatement
-
mapStatement
-
setDatabaseType
-
getSqlSessionFactory
public org.apache.ibatis.session.SqlSessionFactory getSqlSessionFactory() -
setSqlSessionFactory
public void setSqlSessionFactory(org.apache.ibatis.session.SqlSessionFactory sqlSessionFactory) -
getIdGenerator
-
setIdGenerator
-
getDatabaseType
-
getStatementMappings
-
setStatementMappings
-
getInsertStatements
-
setInsertStatements
-
getUpdateStatements
-
setUpdateStatements
-
getDeleteStatements
-
setDeleteStatements
-
getSelectStatements
-
setSelectStatements
-
isDbIdentityUsed
public boolean isDbIdentityUsed() -
setDbIdentityUsed
public void setDbIdentityUsed(boolean isDbIdentityUsed) -
isDbHistoryUsed
public boolean isDbHistoryUsed() -
setDbHistoryUsed
public void setDbHistoryUsed(boolean isDbHistoryUsed) -
isCmmnEnabled
public boolean isCmmnEnabled() -
setCmmnEnabled
public void setCmmnEnabled(boolean cmmnEnabled) -
isDmnEnabled
public boolean isDmnEnabled() -
setDmnEnabled
public void setDmnEnabled(boolean dmnEnabled) -
setDatabaseTablePrefix
-
getDatabaseTablePrefix
-
getDatabaseSchema
-
setDatabaseSchema
-