Package org.flowable.common.engine.impl
Class AbstractEngineConfiguration
- java.lang.Object
-
- org.flowable.common.engine.impl.AbstractEngineConfiguration
-
public abstract class AbstractEngineConfiguration extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected List<EventDispatchAction>additionalEventDispatchActionsprotected AgendaOperationRunneragendaOperationRunnerprotected List<EngineConfigurator>allConfiguratorsprotected booleanalwaysLookupLatestDefinitionVersionSet to true if the latest version of a definition should be retrieved, ignoring a possible parent deployment id valueprotected Map<Object,Object>beansprotected ByteArrayDataManagerbyteArrayDataManagerprotected ByteArrayEntityManagerbyteArrayEntityManagerprotected ClassLoaderclassLoaderprotected Clockclockprotected CommandContextFactorycommandContextFactoryprotected CommandExecutorcommandExecutorprotected List<CommandInterceptor>commandInterceptorsprotected CommandInterceptorcommandInvokerprotected SchemaManagercommonSchemaManagerprotected List<EngineConfigurator>configuratorsprotected List<org.apache.ibatis.plugin.Interceptor>customMybatisInterceptorsprotected Set<Class<?>>customMybatisMappersprotected Set<String>customMybatisXMLMappersprotected List<CommandInterceptor>customPostCommandInterceptorsprotected List<EngineDeployer>customPostDeployersprotected List<CommandInterceptor>customPreCommandInterceptorsprotected List<EngineDeployer>customPreDeployersprotected List<SessionFactory>customSessionFactoriesstatic StringDATABASE_TYPE_COCKROACHDBstatic StringDATABASE_TYPE_DB2static StringDATABASE_TYPE_H2static StringDATABASE_TYPE_HSQLstatic StringDATABASE_TYPE_MSSQLstatic StringDATABASE_TYPE_MYSQLstatic StringDATABASE_TYPE_ORACLEstatic StringDATABASE_TYPE_POSTGRESprotected StringdatabaseCatalogdatabase catalog to useprotected StringdatabaseSchemaIn 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 StringdatabaseSchemaUpdateprotected StringdatabaseTablePrefixAllows configuring a database table prefix which is used for all runtime operations of the process engine.protected StringdatabaseTypeprotected PropertiesdatabaseTypeMappingsprotected StringdatabaseWildcardEscapeCharacterEscape character for doing wildcard searches.protected DataSourcedataSourceprotected StringdataSourceJndiNamestatic StringDB_SCHEMA_UPDATE_CREATEstatic StringDB_SCHEMA_UPDATE_CREATE_DROPstatic StringDB_SCHEMA_UPDATE_DROP_CREATECreates the schema when the form engine is being created and drops the schema when the form engine is being closed.static StringDB_SCHEMA_UPDATE_FALSEChecks the version of the DB schema against the library when the form engine is being created and throws an exception if the versions don't match.static StringDB_SCHEMA_UPDATE_TRUEUpon building of the process engine, a check is performed and an update of the schema is performed if it is necessary.protected DbSqlSessionFactorydbSqlSessionFactorystatic intDEFAULT_GENERIC_MAX_LENGTH_STRINGintDEFAULT_MAX_NR_OF_STATEMENTS_BULK_INSERT_SQL_SERVERstatic intDEFAULT_ORACLE_MAX_LENGTH_STRINGprotected CommandConfigdefaultCommandConfigprotected Collection<? extends CommandInterceptor>defaultCommandInterceptorsprotected DefaultTenantProviderdefaultTenantProviderDefault tenant provider that is executed when looking up definitions, in case the global or local fallback to default tenant value is trueprotected List<MybatisTypeAliasConfigurator>dependentEngineMybatisTypeAliasConfigsprotected List<MybatisTypeHandlerConfigurator>dependentEngineMybatisTypeHandlerConfigsprotected Set<String>dependentEngineMyBatisXmlMappersprotected List<EngineDeployer>deployersprotected booleanenableConfiguratorServiceLoaderprotected booleanenableEventDispatcherprotected booleanenableLogSqlExecutionTimeEnables the MyBatis plugin that logs the execution time of sql statements.protected Map<String,AbstractEngineConfiguration>engineConfigurationsprotected List<EngineLifecycleListener>engineLifecycleListenersprotected FlowableEventDispatchereventDispatcherprotected List<FlowableEventListener>eventListenersprotected EngineConfiguratoreventRegistryConfiguratorprotected Map<String,EventRegistryEventConsumer>eventRegistryEventConsumersprotected booleanfallbackToDefaultTenantSet to true if by default lookups should fallback to the default tenant (an empty string by default or a defined tenant value)protected booleanforceCloseMybatisConnectionPoolprotected IdGeneratoridGeneratorprotected EngineConfiguratoridmEngineConfiguratorprotected booleanisBulkInsertEnabledIf set to true, enables bulk insert (grouping sql inserts together).protected booleanisDbHistoryUsedprotected intjdbcDefaultTransactionIsolationLevelprotected StringjdbcDriverprotected intjdbcMaxActiveConnectionsprotected intjdbcMaxCheckoutTimeprotected intjdbcMaxIdleConnectionsprotected intjdbcMaxWaitTimeprotected StringjdbcPasswordprotected intjdbcPingConnectionNotUsedForprotected booleanjdbcPingEnabledprotected StringjdbcPingQueryprotected StringjdbcUrlprotected StringjdbcUsernameprotected DurationlockPollRateDuration between the checks when acquiring a lock.protected org.slf4j.Loggerloggerprotected LoggingListenerloggingListenerprotected intmaxLengthStringVariableTypeDefine a max length for storing String variable types in the database.protected intmaxNrOfStatementsInBulkInsertSome databases have a limit of how many parameters one sql insert can have (eg SQL Server, 2000 params (!= insert statements) ).protected StringmybatisMappingFilestatic StringNO_TENANT_IDThe tenant id indicating 'no tenant'protected com.fasterxml.jackson.databind.ObjectMapperobjectMapperstatic StringPRODUCT_NAME_CRDBstatic StringPRODUCT_NAME_POSTGRESprotected PropertyDataManagerpropertyDataManagerprotected PropertyEntityManagerpropertyEntityManagerprotected CommandConfigschemaCommandConfigprotected DurationschemaLockWaitTimeDuration to wait for the DB Schema lock before giving up.protected Command<Void>schemaManagementCmdprotected SchemaManagerschemaManagerprotected Map<String,AbstractServiceConfiguration>serviceConfigurationsprotected Map<Class<?>,SessionFactory>sessionFactoriesprotected org.apache.ibatis.session.SqlSessionFactorysqlSessionFactoryprotected TableDataManagertableDataManagerprotected booleantablePrefixIsSchemaSet to true in case the defined databaseTablePrefix is a schema-name, instead of an actual table name prefix.protected TransactionContextFactorytransactionContextFactoryprotected org.apache.ibatis.transaction.TransactionFactorytransactionFactoryprotected booleantransactionsExternallyManagedprotected Map<String,List<FlowableEventListener>>typedEventListenersprotected booleanuseClassForNameClassLoadingEither use Class.forName or ClassLoader.loadClass for class loading.protected booleanuseLockForDatabaseSchemaUpdateWhether to use a lock when performing the database schema create or update operations.protected booleanusePrefixIdprotected booleanusingRelationalDatabaseFlag that can be set to configure or not a relational database is used.protected booleanusingSchemaMgmtFlag that can be set to configure whether or not a schema is used.protected StringxmlEncoding
-
Constructor Summary
Constructors Constructor Description AbstractEngineConfiguration()
-
Method Summary
-
-
-
Field Detail
-
logger
protected final org.slf4j.Logger logger
-
NO_TENANT_ID
public static final String NO_TENANT_ID
The tenant id indicating 'no tenant'- See Also:
- Constant Field Values
-
DB_SCHEMA_UPDATE_FALSE
public static final String DB_SCHEMA_UPDATE_FALSE
Checks the version of the DB schema against the library when the form engine is being created and throws an exception if the versions don't match.- See Also:
- Constant Field Values
-
DB_SCHEMA_UPDATE_CREATE
public static final String DB_SCHEMA_UPDATE_CREATE
- See Also:
- Constant Field Values
-
DB_SCHEMA_UPDATE_CREATE_DROP
public static final String DB_SCHEMA_UPDATE_CREATE_DROP
- See Also:
- Constant Field Values
-
DB_SCHEMA_UPDATE_DROP_CREATE
public static final String DB_SCHEMA_UPDATE_DROP_CREATE
Creates the schema when the form engine is being created and drops the schema when the form engine is being closed.- See Also:
- Constant Field Values
-
DB_SCHEMA_UPDATE_TRUE
public static final String DB_SCHEMA_UPDATE_TRUE
Upon building of the process engine, a check is performed and an update of the schema is performed if it is necessary.- See Also:
- Constant Field Values
-
forceCloseMybatisConnectionPool
protected boolean forceCloseMybatisConnectionPool
-
databaseType
protected String databaseType
-
jdbcDriver
protected String jdbcDriver
-
jdbcUrl
protected String jdbcUrl
-
jdbcUsername
protected String jdbcUsername
-
jdbcPassword
protected String jdbcPassword
-
dataSourceJndiName
protected String dataSourceJndiName
-
jdbcMaxActiveConnections
protected int jdbcMaxActiveConnections
-
jdbcMaxIdleConnections
protected int jdbcMaxIdleConnections
-
jdbcMaxCheckoutTime
protected int jdbcMaxCheckoutTime
-
jdbcMaxWaitTime
protected int jdbcMaxWaitTime
-
jdbcPingEnabled
protected boolean jdbcPingEnabled
-
jdbcPingQuery
protected String jdbcPingQuery
-
jdbcPingConnectionNotUsedFor
protected int jdbcPingConnectionNotUsedFor
-
jdbcDefaultTransactionIsolationLevel
protected int jdbcDefaultTransactionIsolationLevel
-
dataSource
protected DataSource dataSource
-
commonSchemaManager
protected SchemaManager commonSchemaManager
-
schemaManager
protected SchemaManager schemaManager
-
databaseSchemaUpdate
protected String databaseSchemaUpdate
-
useLockForDatabaseSchemaUpdate
protected boolean useLockForDatabaseSchemaUpdate
Whether to use a lock when performing the database schema create or update operations.
-
xmlEncoding
protected String xmlEncoding
-
commandExecutor
protected CommandExecutor commandExecutor
-
defaultCommandInterceptors
protected Collection<? extends CommandInterceptor> defaultCommandInterceptors
-
defaultCommandConfig
protected CommandConfig defaultCommandConfig
-
schemaCommandConfig
protected CommandConfig schemaCommandConfig
-
commandContextFactory
protected CommandContextFactory commandContextFactory
-
commandInvoker
protected CommandInterceptor commandInvoker
-
agendaOperationRunner
protected AgendaOperationRunner agendaOperationRunner
-
customPreCommandInterceptors
protected List<CommandInterceptor> customPreCommandInterceptors
-
customPostCommandInterceptors
protected List<CommandInterceptor> customPostCommandInterceptors
-
commandInterceptors
protected List<CommandInterceptor> commandInterceptors
-
engineConfigurations
protected Map<String,AbstractEngineConfiguration> engineConfigurations
-
serviceConfigurations
protected Map<String,AbstractServiceConfiguration> serviceConfigurations
-
classLoader
protected ClassLoader classLoader
-
useClassForNameClassLoading
protected boolean useClassForNameClassLoading
Either use Class.forName or ClassLoader.loadClass for class loading. See http://forums.activiti.org/content/reflectutilloadclass-and-custom- classloader
-
engineLifecycleListeners
protected List<EngineLifecycleListener> engineLifecycleListeners
-
eventRegistryEventConsumers
protected Map<String,EventRegistryEventConsumer> eventRegistryEventConsumers
-
isDbHistoryUsed
protected boolean isDbHistoryUsed
-
dbSqlSessionFactory
protected DbSqlSessionFactory dbSqlSessionFactory
-
sqlSessionFactory
protected org.apache.ibatis.session.SqlSessionFactory sqlSessionFactory
-
transactionFactory
protected org.apache.ibatis.transaction.TransactionFactory transactionFactory
-
transactionContextFactory
protected TransactionContextFactory transactionContextFactory
-
isBulkInsertEnabled
protected boolean isBulkInsertEnabled
If set to true, enables bulk insert (grouping sql inserts together). Default true. For some databases (eg DB2+z/OS) needs to be set to false.
-
maxNrOfStatementsInBulkInsert
protected int maxNrOfStatementsInBulkInsert
Some databases have a limit of how many parameters one sql insert can have (eg SQL Server, 2000 params (!= insert statements) ). Tweak this parameter in case of exceptions indicating too much is being put into one bulk insert, or make it higher if your database can cope with it and there are inserts with a huge amount of data.By default: 100 (55 for mssql server as it has a hard limit of 2000 parameters in a statement)
-
DEFAULT_MAX_NR_OF_STATEMENTS_BULK_INSERT_SQL_SERVER
public int DEFAULT_MAX_NR_OF_STATEMENTS_BULK_INSERT_SQL_SERVER
-
mybatisMappingFile
protected String mybatisMappingFile
-
customMybatisInterceptors
protected List<org.apache.ibatis.plugin.Interceptor> customMybatisInterceptors
-
dependentEngineMybatisTypeAliasConfigs
protected List<MybatisTypeAliasConfigurator> dependentEngineMybatisTypeAliasConfigs
-
dependentEngineMybatisTypeHandlerConfigs
protected List<MybatisTypeHandlerConfigurator> dependentEngineMybatisTypeHandlerConfigs
-
customSessionFactories
protected List<SessionFactory> customSessionFactories
-
sessionFactories
protected Map<Class<?>,SessionFactory> sessionFactories
-
enableEventDispatcher
protected boolean enableEventDispatcher
-
eventDispatcher
protected FlowableEventDispatcher eventDispatcher
-
eventListeners
protected List<FlowableEventListener> eventListeners
-
typedEventListeners
protected Map<String,List<FlowableEventListener>> typedEventListeners
-
additionalEventDispatchActions
protected List<EventDispatchAction> additionalEventDispatchActions
-
loggingListener
protected LoggingListener loggingListener
-
transactionsExternallyManaged
protected boolean transactionsExternallyManaged
-
usingRelationalDatabase
protected boolean usingRelationalDatabase
Flag that can be set to configure or not a relational database is used. This is useful for custom implementations that do not use relational databases at all. If true (default), thegetDatabaseSchemaUpdate()value will be used to determine what needs to happen wrt the database schema. If false, no validation or schema creation will be done. That means that the database schema must have been created 'manually' before but the engine does not validate whether the schema is correct. ThegetDatabaseSchemaUpdate()value will not be used.
-
usingSchemaMgmt
protected boolean usingSchemaMgmt
Flag that can be set to configure whether or not a schema is used. This is useful for custom implementations that do not use relational databases at all. SettingusingRelationalDatabaseto true will automatically imply using a schema.
-
databaseTablePrefix
protected String databaseTablePrefix
Allows configuring a database table prefix which is used for all runtime operations of the process engine. For example, if you specify a prefix named 'PRE1.', Flowable will query for executions in a table named 'PRE1.ACT_RU_EXECUTION_'.NOTE: the prefix is not respected by automatic database schema management. If you use
DB_SCHEMA_UPDATE_CREATE_DROPorDB_SCHEMA_UPDATE_TRUE, Flowable will create the database tables using the default names, regardless of the prefix configured here.
-
databaseWildcardEscapeCharacter
protected String databaseWildcardEscapeCharacter
Escape character for doing wildcard searches. This will be added at then end of queries that include for example a LIKE clause. For example: SELECT * FROM table WHERE column LIKE '%\%%' ESCAPE '\';
-
databaseCatalog
protected String databaseCatalog
database catalog to use
-
databaseSchema
protected String 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
-
tablePrefixIsSchema
protected boolean tablePrefixIsSchema
Set to true in case the defined databaseTablePrefix is a schema-name, instead of an actual table name prefix. This is relevant for checking if Flowable-tables exist, the databaseTablePrefix will not be used here - since the schema is taken into account already, adding a prefix for the table-check will result in wrong table-names.
-
alwaysLookupLatestDefinitionVersion
protected boolean alwaysLookupLatestDefinitionVersion
Set to true if the latest version of a definition should be retrieved, ignoring a possible parent deployment id value
-
fallbackToDefaultTenant
protected boolean fallbackToDefaultTenant
Set to true if by default lookups should fallback to the default tenant (an empty string by default or a defined tenant value)
-
defaultTenantProvider
protected DefaultTenantProvider defaultTenantProvider
Default tenant provider that is executed when looking up definitions, in case the global or local fallback to default tenant value is true
-
enableLogSqlExecutionTime
protected boolean enableLogSqlExecutionTime
Enables the MyBatis plugin that logs the execution time of sql statements.
-
databaseTypeMappings
protected Properties databaseTypeMappings
-
lockPollRate
protected Duration lockPollRate
Duration between the checks when acquiring a lock.
-
schemaLockWaitTime
protected Duration schemaLockWaitTime
Duration to wait for the DB Schema lock before giving up.
-
propertyDataManager
protected PropertyDataManager propertyDataManager
-
byteArrayDataManager
protected ByteArrayDataManager byteArrayDataManager
-
tableDataManager
protected TableDataManager tableDataManager
-
propertyEntityManager
protected PropertyEntityManager propertyEntityManager
-
byteArrayEntityManager
protected ByteArrayEntityManager byteArrayEntityManager
-
customPreDeployers
protected List<EngineDeployer> customPreDeployers
-
customPostDeployers
protected List<EngineDeployer> customPostDeployers
-
deployers
protected List<EngineDeployer> deployers
-
enableConfiguratorServiceLoader
protected boolean enableConfiguratorServiceLoader
-
configurators
protected List<EngineConfigurator> configurators
-
allConfigurators
protected List<EngineConfigurator> allConfigurators
-
idmEngineConfigurator
protected EngineConfigurator idmEngineConfigurator
-
eventRegistryConfigurator
protected EngineConfigurator eventRegistryConfigurator
-
PRODUCT_NAME_POSTGRES
public static final String PRODUCT_NAME_POSTGRES
- See Also:
- Constant Field Values
-
PRODUCT_NAME_CRDB
public static final String PRODUCT_NAME_CRDB
- See Also:
- Constant Field Values
-
DATABASE_TYPE_H2
public static final String DATABASE_TYPE_H2
- See Also:
- Constant Field Values
-
DATABASE_TYPE_HSQL
public static final String DATABASE_TYPE_HSQL
- See Also:
- Constant Field Values
-
DATABASE_TYPE_MYSQL
public static final String DATABASE_TYPE_MYSQL
- See Also:
- Constant Field Values
-
DATABASE_TYPE_ORACLE
public static final String DATABASE_TYPE_ORACLE
- See Also:
- Constant Field Values
-
DATABASE_TYPE_POSTGRES
public static final String DATABASE_TYPE_POSTGRES
- See Also:
- Constant Field Values
-
DATABASE_TYPE_MSSQL
public static final String DATABASE_TYPE_MSSQL
- See Also:
- Constant Field Values
-
DATABASE_TYPE_DB2
public static final String DATABASE_TYPE_DB2
- See Also:
- Constant Field Values
-
DATABASE_TYPE_COCKROACHDB
public static final String DATABASE_TYPE_COCKROACHDB
- See Also:
- Constant Field Values
-
idGenerator
protected IdGenerator idGenerator
-
usePrefixId
protected boolean usePrefixId
-
clock
protected Clock clock
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
DEFAULT_GENERIC_MAX_LENGTH_STRING
public static final int DEFAULT_GENERIC_MAX_LENGTH_STRING
- See Also:
- Constant Field Values
-
DEFAULT_ORACLE_MAX_LENGTH_STRING
public static final int DEFAULT_ORACLE_MAX_LENGTH_STRING
- See Also:
- Constant Field Values
-
maxLengthStringVariableType
protected int maxLengthStringVariableType
Define a max length for storing String variable types in the database. Mainly used for the Oracle NVARCHAR2 limit of 2000 characters
-
-
Method Detail
-
getDefaultDatabaseTypeMappings
public static Properties getDefaultDatabaseTypeMappings()
-
initEngineConfigurations
protected void initEngineConfigurations()
-
initDataSource
protected void initDataSource()
-
initDatabaseType
public void initDatabaseType()
-
initSchemaManager
public void initSchemaManager()
-
addSessionFactory
public void addSessionFactory(SessionFactory sessionFactory)
-
initCommandContextFactory
public void initCommandContextFactory()
-
initTransactionContextFactory
public void initTransactionContextFactory()
-
initCommandExecutors
public void initCommandExecutors()
-
initDefaultCommandConfig
public void initDefaultCommandConfig()
-
initSchemaCommandConfig
public void initSchemaCommandConfig()
-
initCommandInvoker
public void initCommandInvoker()
-
initCommandInterceptors
public void initCommandInterceptors()
-
getDefaultCommandInterceptors
public Collection<? extends CommandInterceptor> getDefaultCommandInterceptors()
-
getEngineCfgKey
public abstract String getEngineCfgKey()
-
getEngineScopeType
public abstract String getEngineScopeType()
-
getAdditionalDefaultCommandInterceptors
public List<CommandInterceptor> getAdditionalDefaultCommandInterceptors()
-
initCommandExecutor
public void initCommandExecutor()
-
initInterceptorChain
public CommandInterceptor initInterceptorChain(List<CommandInterceptor> chain)
-
createTransactionInterceptor
public abstract CommandInterceptor createTransactionInterceptor()
-
initBeans
public void initBeans()
-
initIdGenerator
public void initIdGenerator()
-
initObjectMapper
public void initObjectMapper()
-
initClock
public void initClock()
-
initDataManagers
public void initDataManagers()
-
initEntityManagers
public void initEntityManagers()
-
initService
protected void initService(Object service)
-
initSessionFactories
public void initSessionFactories()
-
initDbSqlSessionFactory
public void initDbSqlSessionFactory()
-
createDbSqlSessionFactory
public DbSqlSessionFactory createDbSqlSessionFactory()
-
initDbSqlSessionFactoryEntitySettings
protected abstract void initDbSqlSessionFactoryEntitySettings()
-
defaultInitDbSqlSessionFactoryEntitySettings
protected void defaultInitDbSqlSessionFactoryEntitySettings(List<Class<? extends Entity>> insertOrder, List<Class<? extends Entity>> deleteOrder)
-
initTransactionFactory
public void initTransactionFactory()
-
initSqlSessionFactory
public void initSqlSessionFactory()
-
pathToEngineDbProperties
public String pathToEngineDbProperties()
-
initMybatisConfiguration
public org.apache.ibatis.session.Configuration initMybatisConfiguration(org.apache.ibatis.mapping.Environment environment, Reader reader, Properties properties)
-
initCustomMybatisMappers
public void initCustomMybatisMappers(org.apache.ibatis.session.Configuration configuration)
-
initMybatisTypeHandlers
public void initMybatisTypeHandlers(org.apache.ibatis.session.Configuration configuration)
-
initCustomMybatisInterceptors
public void initCustomMybatisInterceptors(org.apache.ibatis.session.Configuration configuration)
-
initMyBatisLogSqlExecutionTimePlugin
public void initMyBatisLogSqlExecutionTimePlugin(org.apache.ibatis.session.Configuration configuration)
-
parseMybatisConfiguration
public org.apache.ibatis.session.Configuration parseMybatisConfiguration(org.apache.ibatis.builder.xml.XMLConfigBuilder parser)
-
applyCustomMybatisCustomizations
protected void applyCustomMybatisCustomizations(org.apache.ibatis.session.Configuration configuration)
-
parseCustomMybatisXMLMappers
public void parseCustomMybatisXMLMappers(org.apache.ibatis.session.Configuration configuration)
-
parseDependentEngineMybatisXMLMappers
public void parseDependentEngineMybatisXMLMappers(org.apache.ibatis.session.Configuration configuration)
-
parseMybatisXmlMapping
protected void parseMybatisXmlMapping(org.apache.ibatis.session.Configuration configuration, String resource)
-
getResourceAsStream
protected InputStream getResourceAsStream(String resource)
-
setMybatisMappingFile
public void setMybatisMappingFile(String file)
-
getMybatisMappingFile
public String getMybatisMappingFile()
-
getMyBatisXmlConfigurationStream
public abstract InputStream getMyBatisXmlConfigurationStream()
-
initConfigurators
public void initConfigurators()
-
close
public void close()
-
getEngineSpecificEngineConfigurators
protected List<EngineConfigurator> getEngineSpecificEngineConfigurators()
-
configuratorsBeforeInit
public void configuratorsBeforeInit()
-
configuratorsAfterInit
public void configuratorsAfterInit()
-
getLockManager
public LockManager getLockManager(String lockName)
-
getEngineName
public abstract String getEngineName()
-
getClassLoader
public ClassLoader getClassLoader()
-
setClassLoader
public AbstractEngineConfiguration setClassLoader(ClassLoader classLoader)
-
isUseClassForNameClassLoading
public boolean isUseClassForNameClassLoading()
-
setUseClassForNameClassLoading
public AbstractEngineConfiguration setUseClassForNameClassLoading(boolean useClassForNameClassLoading)
-
addEngineLifecycleListener
public void addEngineLifecycleListener(EngineLifecycleListener engineLifecycleListener)
-
getEngineLifecycleListeners
public List<EngineLifecycleListener> getEngineLifecycleListeners()
-
setEngineLifecycleListeners
public AbstractEngineConfiguration setEngineLifecycleListeners(List<EngineLifecycleListener> engineLifecycleListeners)
-
getDatabaseType
public String getDatabaseType()
-
setDatabaseType
public AbstractEngineConfiguration setDatabaseType(String databaseType)
-
getDataSource
public DataSource getDataSource()
-
setDataSource
public AbstractEngineConfiguration setDataSource(DataSource dataSource)
-
getSchemaManager
public SchemaManager getSchemaManager()
-
setSchemaManager
public AbstractEngineConfiguration setSchemaManager(SchemaManager schemaManager)
-
getCommonSchemaManager
public SchemaManager getCommonSchemaManager()
-
setCommonSchemaManager
public AbstractEngineConfiguration setCommonSchemaManager(SchemaManager commonSchemaManager)
-
setSchemaManagementCmd
public AbstractEngineConfiguration setSchemaManagementCmd(Command<Void> schemaManagementCmd)
-
getJdbcDriver
public String getJdbcDriver()
-
setJdbcDriver
public AbstractEngineConfiguration setJdbcDriver(String jdbcDriver)
-
getJdbcUrl
public String getJdbcUrl()
-
setJdbcUrl
public AbstractEngineConfiguration setJdbcUrl(String jdbcUrl)
-
getJdbcUsername
public String getJdbcUsername()
-
setJdbcUsername
public AbstractEngineConfiguration setJdbcUsername(String jdbcUsername)
-
getJdbcPassword
public String getJdbcPassword()
-
setJdbcPassword
public AbstractEngineConfiguration setJdbcPassword(String jdbcPassword)
-
getJdbcMaxActiveConnections
public int getJdbcMaxActiveConnections()
-
setJdbcMaxActiveConnections
public AbstractEngineConfiguration setJdbcMaxActiveConnections(int jdbcMaxActiveConnections)
-
getJdbcMaxIdleConnections
public int getJdbcMaxIdleConnections()
-
setJdbcMaxIdleConnections
public AbstractEngineConfiguration setJdbcMaxIdleConnections(int jdbcMaxIdleConnections)
-
getJdbcMaxCheckoutTime
public int getJdbcMaxCheckoutTime()
-
setJdbcMaxCheckoutTime
public AbstractEngineConfiguration setJdbcMaxCheckoutTime(int jdbcMaxCheckoutTime)
-
getJdbcMaxWaitTime
public int getJdbcMaxWaitTime()
-
setJdbcMaxWaitTime
public AbstractEngineConfiguration setJdbcMaxWaitTime(int jdbcMaxWaitTime)
-
isJdbcPingEnabled
public boolean isJdbcPingEnabled()
-
setJdbcPingEnabled
public AbstractEngineConfiguration setJdbcPingEnabled(boolean jdbcPingEnabled)
-
getJdbcPingConnectionNotUsedFor
public int getJdbcPingConnectionNotUsedFor()
-
setJdbcPingConnectionNotUsedFor
public AbstractEngineConfiguration setJdbcPingConnectionNotUsedFor(int jdbcPingConnectionNotUsedFor)
-
getJdbcDefaultTransactionIsolationLevel
public int getJdbcDefaultTransactionIsolationLevel()
-
setJdbcDefaultTransactionIsolationLevel
public AbstractEngineConfiguration setJdbcDefaultTransactionIsolationLevel(int jdbcDefaultTransactionIsolationLevel)
-
getJdbcPingQuery
public String getJdbcPingQuery()
-
setJdbcPingQuery
public AbstractEngineConfiguration setJdbcPingQuery(String jdbcPingQuery)
-
getDataSourceJndiName
public String getDataSourceJndiName()
-
setDataSourceJndiName
public AbstractEngineConfiguration setDataSourceJndiName(String dataSourceJndiName)
-
getSchemaCommandConfig
public CommandConfig getSchemaCommandConfig()
-
setSchemaCommandConfig
public AbstractEngineConfiguration setSchemaCommandConfig(CommandConfig schemaCommandConfig)
-
isTransactionsExternallyManaged
public boolean isTransactionsExternallyManaged()
-
setTransactionsExternallyManaged
public AbstractEngineConfiguration setTransactionsExternallyManaged(boolean transactionsExternallyManaged)
-
setBeans
public AbstractEngineConfiguration setBeans(Map<Object,Object> beans)
-
getIdGenerator
public IdGenerator getIdGenerator()
-
setIdGenerator
public AbstractEngineConfiguration setIdGenerator(IdGenerator idGenerator)
-
isUsePrefixId
public boolean isUsePrefixId()
-
setUsePrefixId
public AbstractEngineConfiguration setUsePrefixId(boolean usePrefixId)
-
getXmlEncoding
public String getXmlEncoding()
-
setXmlEncoding
public AbstractEngineConfiguration setXmlEncoding(String xmlEncoding)
-
getDefaultCommandConfig
public CommandConfig getDefaultCommandConfig()
-
setDefaultCommandConfig
public AbstractEngineConfiguration setDefaultCommandConfig(CommandConfig defaultCommandConfig)
-
getCommandExecutor
public CommandExecutor getCommandExecutor()
-
setCommandExecutor
public AbstractEngineConfiguration setCommandExecutor(CommandExecutor commandExecutor)
-
getCommandContextFactory
public CommandContextFactory getCommandContextFactory()
-
setCommandContextFactory
public AbstractEngineConfiguration setCommandContextFactory(CommandContextFactory commandContextFactory)
-
getCommandInvoker
public CommandInterceptor getCommandInvoker()
-
setCommandInvoker
public AbstractEngineConfiguration setCommandInvoker(CommandInterceptor commandInvoker)
-
getAgendaOperationRunner
public AgendaOperationRunner getAgendaOperationRunner()
-
setAgendaOperationRunner
public AbstractEngineConfiguration setAgendaOperationRunner(AgendaOperationRunner agendaOperationRunner)
-
getCustomPreCommandInterceptors
public List<CommandInterceptor> getCustomPreCommandInterceptors()
-
setCustomPreCommandInterceptors
public AbstractEngineConfiguration setCustomPreCommandInterceptors(List<CommandInterceptor> customPreCommandInterceptors)
-
getCustomPostCommandInterceptors
public List<CommandInterceptor> getCustomPostCommandInterceptors()
-
setCustomPostCommandInterceptors
public AbstractEngineConfiguration setCustomPostCommandInterceptors(List<CommandInterceptor> customPostCommandInterceptors)
-
getCommandInterceptors
public List<CommandInterceptor> getCommandInterceptors()
-
setCommandInterceptors
public AbstractEngineConfiguration setCommandInterceptors(List<CommandInterceptor> commandInterceptors)
-
getEngineConfigurations
public Map<String,AbstractEngineConfiguration> getEngineConfigurations()
-
setEngineConfigurations
public AbstractEngineConfiguration setEngineConfigurations(Map<String,AbstractEngineConfiguration> engineConfigurations)
-
addEngineConfiguration
public void addEngineConfiguration(String key, String scopeType, AbstractEngineConfiguration engineConfiguration)
-
getServiceConfigurations
public Map<String,AbstractServiceConfiguration> getServiceConfigurations()
-
setServiceConfigurations
public AbstractEngineConfiguration setServiceConfigurations(Map<String,AbstractServiceConfiguration> serviceConfigurations)
-
addServiceConfiguration
public void addServiceConfiguration(String key, AbstractServiceConfiguration serviceConfiguration)
-
getEventRegistryEventConsumers
public Map<String,EventRegistryEventConsumer> getEventRegistryEventConsumers()
-
setEventRegistryEventConsumers
public AbstractEngineConfiguration setEventRegistryEventConsumers(Map<String,EventRegistryEventConsumer> eventRegistryEventConsumers)
-
addEventRegistryEventConsumer
public void addEventRegistryEventConsumer(String key, EventRegistryEventConsumer eventRegistryEventConsumer)
-
setDefaultCommandInterceptors
public AbstractEngineConfiguration setDefaultCommandInterceptors(Collection<? extends CommandInterceptor> defaultCommandInterceptors)
-
getSqlSessionFactory
public org.apache.ibatis.session.SqlSessionFactory getSqlSessionFactory()
-
setSqlSessionFactory
public AbstractEngineConfiguration setSqlSessionFactory(org.apache.ibatis.session.SqlSessionFactory sqlSessionFactory)
-
isDbHistoryUsed
public boolean isDbHistoryUsed()
-
setDbHistoryUsed
public AbstractEngineConfiguration setDbHistoryUsed(boolean isDbHistoryUsed)
-
getDbSqlSessionFactory
public DbSqlSessionFactory getDbSqlSessionFactory()
-
setDbSqlSessionFactory
public AbstractEngineConfiguration setDbSqlSessionFactory(DbSqlSessionFactory dbSqlSessionFactory)
-
getTransactionFactory
public org.apache.ibatis.transaction.TransactionFactory getTransactionFactory()
-
setTransactionFactory
public AbstractEngineConfiguration setTransactionFactory(org.apache.ibatis.transaction.TransactionFactory transactionFactory)
-
getTransactionContextFactory
public TransactionContextFactory getTransactionContextFactory()
-
setTransactionContextFactory
public AbstractEngineConfiguration setTransactionContextFactory(TransactionContextFactory transactionContextFactory)
-
getMaxNrOfStatementsInBulkInsert
public int getMaxNrOfStatementsInBulkInsert()
-
setMaxNrOfStatementsInBulkInsert
public AbstractEngineConfiguration setMaxNrOfStatementsInBulkInsert(int maxNrOfStatementsInBulkInsert)
-
isBulkInsertEnabled
public boolean isBulkInsertEnabled()
-
setBulkInsertEnabled
public AbstractEngineConfiguration setBulkInsertEnabled(boolean isBulkInsertEnabled)
-
setCustomMybatisMappers
public AbstractEngineConfiguration setCustomMybatisMappers(Set<Class<?>> customMybatisMappers)
-
setCustomMybatisXMLMappers
public AbstractEngineConfiguration setCustomMybatisXMLMappers(Set<String> customMybatisXMLMappers)
-
setCustomMybatisInterceptors
public AbstractEngineConfiguration setCustomMybatisInterceptors(List<org.apache.ibatis.plugin.Interceptor> customMybatisInterceptors)
-
getCustomMybatisInterceptors
public List<org.apache.ibatis.plugin.Interceptor> getCustomMybatisInterceptors()
-
setDependentEngineMyBatisXmlMappers
public AbstractEngineConfiguration setDependentEngineMyBatisXmlMappers(Set<String> dependentEngineMyBatisXmlMappers)
-
getDependentEngineMybatisTypeAliasConfigs
public List<MybatisTypeAliasConfigurator> getDependentEngineMybatisTypeAliasConfigs()
-
setDependentEngineMybatisTypeAliasConfigs
public AbstractEngineConfiguration setDependentEngineMybatisTypeAliasConfigs(List<MybatisTypeAliasConfigurator> dependentEngineMybatisTypeAliasConfigs)
-
getDependentEngineMybatisTypeHandlerConfigs
public List<MybatisTypeHandlerConfigurator> getDependentEngineMybatisTypeHandlerConfigs()
-
setDependentEngineMybatisTypeHandlerConfigs
public AbstractEngineConfiguration setDependentEngineMybatisTypeHandlerConfigs(List<MybatisTypeHandlerConfigurator> dependentEngineMybatisTypeHandlerConfigs)
-
getCustomSessionFactories
public List<SessionFactory> getCustomSessionFactories()
-
addCustomSessionFactory
public AbstractEngineConfiguration addCustomSessionFactory(SessionFactory sessionFactory)
-
setCustomSessionFactories
public AbstractEngineConfiguration setCustomSessionFactories(List<SessionFactory> customSessionFactories)
-
isUsingRelationalDatabase
public boolean isUsingRelationalDatabase()
-
setUsingRelationalDatabase
public AbstractEngineConfiguration setUsingRelationalDatabase(boolean usingRelationalDatabase)
-
isUsingSchemaMgmt
public boolean isUsingSchemaMgmt()
-
setUsingSchemaMgmt
public AbstractEngineConfiguration setUsingSchemaMgmt(boolean usingSchema)
-
getDatabaseTablePrefix
public String getDatabaseTablePrefix()
-
setDatabaseTablePrefix
public AbstractEngineConfiguration setDatabaseTablePrefix(String databaseTablePrefix)
-
getDatabaseWildcardEscapeCharacter
public String getDatabaseWildcardEscapeCharacter()
-
setDatabaseWildcardEscapeCharacter
public AbstractEngineConfiguration setDatabaseWildcardEscapeCharacter(String databaseWildcardEscapeCharacter)
-
getDatabaseCatalog
public String getDatabaseCatalog()
-
setDatabaseCatalog
public AbstractEngineConfiguration setDatabaseCatalog(String databaseCatalog)
-
getDatabaseSchema
public String getDatabaseSchema()
-
setDatabaseSchema
public AbstractEngineConfiguration setDatabaseSchema(String databaseSchema)
-
isTablePrefixIsSchema
public boolean isTablePrefixIsSchema()
-
setTablePrefixIsSchema
public AbstractEngineConfiguration setTablePrefixIsSchema(boolean tablePrefixIsSchema)
-
isAlwaysLookupLatestDefinitionVersion
public boolean isAlwaysLookupLatestDefinitionVersion()
-
setAlwaysLookupLatestDefinitionVersion
public AbstractEngineConfiguration setAlwaysLookupLatestDefinitionVersion(boolean alwaysLookupLatestDefinitionVersion)
-
isFallbackToDefaultTenant
public boolean isFallbackToDefaultTenant()
-
setFallbackToDefaultTenant
public AbstractEngineConfiguration setFallbackToDefaultTenant(boolean fallbackToDefaultTenant)
-
getDefaultTenantValue
@Deprecated public String getDefaultTenantValue()
Deprecated.usegetDefaultTenantProvider()instead- Returns:
- name of the default tenant
-
setDefaultTenantValue
public AbstractEngineConfiguration setDefaultTenantValue(String defaultTenantValue)
-
getDefaultTenantProvider
public DefaultTenantProvider getDefaultTenantProvider()
-
setDefaultTenantProvider
public AbstractEngineConfiguration setDefaultTenantProvider(DefaultTenantProvider defaultTenantProvider)
-
isEnableLogSqlExecutionTime
public boolean isEnableLogSqlExecutionTime()
-
setEnableLogSqlExecutionTime
public void setEnableLogSqlExecutionTime(boolean enableLogSqlExecutionTime)
-
getSessionFactories
public Map<Class<?>,SessionFactory> getSessionFactories()
-
setSessionFactories
public AbstractEngineConfiguration setSessionFactories(Map<Class<?>,SessionFactory> sessionFactories)
-
getDatabaseSchemaUpdate
public String getDatabaseSchemaUpdate()
-
setDatabaseSchemaUpdate
public AbstractEngineConfiguration setDatabaseSchemaUpdate(String databaseSchemaUpdate)
-
isUseLockForDatabaseSchemaUpdate
public boolean isUseLockForDatabaseSchemaUpdate()
-
setUseLockForDatabaseSchemaUpdate
public AbstractEngineConfiguration setUseLockForDatabaseSchemaUpdate(boolean useLockForDatabaseSchemaUpdate)
-
isEnableEventDispatcher
public boolean isEnableEventDispatcher()
-
setEnableEventDispatcher
public AbstractEngineConfiguration setEnableEventDispatcher(boolean enableEventDispatcher)
-
getEventDispatcher
public FlowableEventDispatcher getEventDispatcher()
-
setEventDispatcher
public AbstractEngineConfiguration setEventDispatcher(FlowableEventDispatcher eventDispatcher)
-
getEventListeners
public List<FlowableEventListener> getEventListeners()
-
setEventListeners
public AbstractEngineConfiguration setEventListeners(List<FlowableEventListener> eventListeners)
-
getTypedEventListeners
public Map<String,List<FlowableEventListener>> getTypedEventListeners()
-
setTypedEventListeners
public AbstractEngineConfiguration setTypedEventListeners(Map<String,List<FlowableEventListener>> typedEventListeners)
-
getAdditionalEventDispatchActions
public List<EventDispatchAction> getAdditionalEventDispatchActions()
-
setAdditionalEventDispatchActions
public AbstractEngineConfiguration setAdditionalEventDispatchActions(List<EventDispatchAction> additionalEventDispatchActions)
-
initEventDispatcher
public void initEventDispatcher()
-
initEventListeners
protected void initEventListeners()
-
initAdditionalEventDispatchActions
protected void initAdditionalEventDispatchActions()
-
initTypedEventListeners
protected void initTypedEventListeners()
-
isLoggingSessionEnabled
public boolean isLoggingSessionEnabled()
-
getLoggingListener
public LoggingListener getLoggingListener()
-
setLoggingListener
public void setLoggingListener(LoggingListener loggingListener)
-
getClock
public Clock getClock()
-
setClock
public AbstractEngineConfiguration setClock(Clock clock)
-
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-
setObjectMapper
public AbstractEngineConfiguration setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
getMaxLengthString
public int getMaxLengthString()
-
getMaxLengthStringVariableType
public int getMaxLengthStringVariableType()
-
setMaxLengthStringVariableType
public AbstractEngineConfiguration setMaxLengthStringVariableType(int maxLengthStringVariableType)
-
getPropertyDataManager
public PropertyDataManager getPropertyDataManager()
-
getLockPollRate
public Duration getLockPollRate()
-
setLockPollRate
public AbstractEngineConfiguration setLockPollRate(Duration lockPollRate)
-
getSchemaLockWaitTime
public Duration getSchemaLockWaitTime()
-
setSchemaLockWaitTime
public void setSchemaLockWaitTime(Duration schemaLockWaitTime)
-
setPropertyDataManager
public AbstractEngineConfiguration setPropertyDataManager(PropertyDataManager propertyDataManager)
-
getPropertyEntityManager
public PropertyEntityManager getPropertyEntityManager()
-
setPropertyEntityManager
public AbstractEngineConfiguration setPropertyEntityManager(PropertyEntityManager propertyEntityManager)
-
getByteArrayDataManager
public ByteArrayDataManager getByteArrayDataManager()
-
setByteArrayDataManager
public AbstractEngineConfiguration setByteArrayDataManager(ByteArrayDataManager byteArrayDataManager)
-
getByteArrayEntityManager
public ByteArrayEntityManager getByteArrayEntityManager()
-
setByteArrayEntityManager
public AbstractEngineConfiguration setByteArrayEntityManager(ByteArrayEntityManager byteArrayEntityManager)
-
getTableDataManager
public TableDataManager getTableDataManager()
-
setTableDataManager
public AbstractEngineConfiguration setTableDataManager(TableDataManager tableDataManager)
-
getDeployers
public List<EngineDeployer> getDeployers()
-
setDeployers
public AbstractEngineConfiguration setDeployers(List<EngineDeployer> deployers)
-
getCustomPreDeployers
public List<EngineDeployer> getCustomPreDeployers()
-
setCustomPreDeployers
public AbstractEngineConfiguration setCustomPreDeployers(List<EngineDeployer> customPreDeployers)
-
getCustomPostDeployers
public List<EngineDeployer> getCustomPostDeployers()
-
setCustomPostDeployers
public AbstractEngineConfiguration setCustomPostDeployers(List<EngineDeployer> customPostDeployers)
-
isEnableConfiguratorServiceLoader
public boolean isEnableConfiguratorServiceLoader()
-
setEnableConfiguratorServiceLoader
public AbstractEngineConfiguration setEnableConfiguratorServiceLoader(boolean enableConfiguratorServiceLoader)
-
getConfigurators
public List<EngineConfigurator> getConfigurators()
-
addConfigurator
public AbstractEngineConfiguration addConfigurator(EngineConfigurator configurator)
-
getAllConfigurators
public List<EngineConfigurator> getAllConfigurators()
- Returns:
- All
EngineConfiguratorinstances. Will only contain values after init of the engine. Use thegetConfigurators()oraddConfigurator(EngineConfigurator)methods otherwise.
-
setConfigurators
public AbstractEngineConfiguration setConfigurators(List<EngineConfigurator> configurators)
-
getIdmEngineConfigurator
public EngineConfigurator getIdmEngineConfigurator()
-
setIdmEngineConfigurator
public AbstractEngineConfiguration setIdmEngineConfigurator(EngineConfigurator idmEngineConfigurator)
-
getEventRegistryConfigurator
public EngineConfigurator getEventRegistryConfigurator()
-
setEventRegistryConfigurator
public AbstractEngineConfiguration setEventRegistryConfigurator(EngineConfigurator eventRegistryConfigurator)
-
setForceCloseMybatisConnectionPool
public AbstractEngineConfiguration setForceCloseMybatisConnectionPool(boolean forceCloseMybatisConnectionPool)
-
isForceCloseMybatisConnectionPool
public boolean isForceCloseMybatisConnectionPool()
-
-