public class DataObjectEngineConfiguration extends org.flowable.common.engine.impl.AbstractEngineConfiguration implements org.flowable.common.spring.SpringEngineConfiguration, DataObjectEngineConfigurationApi, org.flowable.common.engine.impl.HasVariableTypes
additionalEventDispatchActions, allConfigurators, alwaysLookupLatestDefinitionVersion, beans, classLoader, clock, commandContextFactory, commandExecutor, commandInterceptors, commandInvoker, commonSchemaManager, configurators, customMybatisInterceptors, customMybatisMappers, customMybatisXMLMappers, customPostCommandInterceptors, customPostDeployers, customPreCommandInterceptors, customPreDeployers, customSessionFactories, DATABASE_TYPE_COCKROACHDB, DATABASE_TYPE_DB2, DATABASE_TYPE_H2, DATABASE_TYPE_HSQL, DATABASE_TYPE_MSSQL, DATABASE_TYPE_MYSQL, DATABASE_TYPE_ORACLE, DATABASE_TYPE_POSTGRES, databaseCatalog, databaseSchema, databaseSchemaUpdate, databaseTablePrefix, databaseType, databaseTypeMappings, databaseWildcardEscapeCharacter, dataSource, dataSourceJndiName, DB_SCHEMA_UPDATE_CREATE, DB_SCHEMA_UPDATE_CREATE_DROP, DB_SCHEMA_UPDATE_DROP_CREATE, DB_SCHEMA_UPDATE_FALSE, DB_SCHEMA_UPDATE_TRUE, dbSqlSessionFactory, DEFAULT_GENERIC_MAX_LENGTH_STRING, DEFAULT_MAX_NR_OF_STATEMENTS_BULK_INSERT_SQL_SERVER, DEFAULT_ORACLE_MAX_LENGTH_STRING, defaultCommandConfig, defaultCommandInterceptors, defaultTenantProvider, dependentEngineMybatisTypeAliasConfigs, dependentEngineMybatisTypeHandlerConfigs, dependentEngineMyBatisXmlMappers, deployers, enableConfiguratorServiceLoader, enableEventDispatcher, enableLogSqlExecutionTime, engineConfigurations, eventDispatcher, eventListeners, fallbackToDefaultTenant, forceCloseMybatisConnectionPool, idGenerator, idmEngineConfigurator, isBulkInsertEnabled, isDbHistoryUsed, jdbcDefaultTransactionIsolationLevel, jdbcDriver, jdbcMaxActiveConnections, jdbcMaxCheckoutTime, jdbcMaxIdleConnections, jdbcMaxWaitTime, jdbcPassword, jdbcPingConnectionNotUsedFor, jdbcPingEnabled, jdbcPingQuery, jdbcUrl, jdbcUsername, logger, maxLengthStringVariableType, maxNrOfStatementsInBulkInsert, mybatisMappingFile, NO_TENANT_ID, PRODUCT_NAME_CRDB, PRODUCT_NAME_POSTGRES, schemaCommandConfig, schemaManagementCmd, schemaManager, serviceConfigurations, sessionFactories, sqlSessionFactory, tablePrefixIsSchema, transactionContextFactory, transactionFactory, transactionsExternallyManaged, typedEventListeners, useClassForNameClassLoading, usePrefixId, usingRelationalDatabase, usingSchemaMgmt, xmlEncoding| Constructor and Description |
|---|
DataObjectEngineConfiguration() |
addConfigurator, addCustomSessionFactory, addEngineConfiguration, addServiceConfiguration, addSessionFactory, close, configuratorsAfterInit, configuratorsBeforeInit, createDbSqlSessionFactory, defaultInitDbSqlSessionFactoryEntitySettings, getAdditionalDefaultCommandInterceptors, getAdditionalEventDispatchActions, getBeans, getClassLoader, getClock, getCommandContextFactory, getCommandExecutor, getCommandInterceptors, getCommandInvoker, getCommonSchemaManager, getConfigurators, getCustomMybatisInterceptors, getCustomMybatisMappers, getCustomMybatisXMLMappers, getCustomPostCommandInterceptors, getCustomPostDeployers, getCustomPreCommandInterceptors, getCustomPreDeployers, getCustomSessionFactories, getDatabaseCatalog, getDatabaseSchema, getDatabaseSchemaUpdate, getDatabaseTablePrefix, getDatabaseType, getDatabaseWildcardEscapeCharacter, getDataSource, getDataSourceJndiName, getDbSqlSessionFactory, getDefaultCommandConfig, getDefaultCommandInterceptors, getDefaultDatabaseTypeMappings, getDefaultTenantProvider, getDefaultTenantValue, getDependentEngineMybatisTypeAliasConfigs, getDependentEngineMybatisTypeHandlerConfigs, getDependentEngineMyBatisXmlMappers, getDeployers, getEngineConfigurations, getEngineSpecificEngineConfigurators, getEventDispatcher, getEventListeners, getIdGenerator, getIdmEngineConfigurator, getJdbcDefaultTransactionIsolationLevel, getJdbcDriver, getJdbcMaxActiveConnections, getJdbcMaxCheckoutTime, getJdbcMaxIdleConnections, getJdbcMaxWaitTime, getJdbcPassword, getJdbcPingConnectionNotUsedFor, getJdbcPingQuery, getJdbcUrl, getJdbcUsername, getMaxLengthString, getMaxLengthStringVariableType, getMaxNrOfStatementsInBulkInsert, getMybatisMappingFile, getResourceAsStream, getSchemaCommandConfig, getSchemaManagementCmd, getSchemaManager, getServiceConfigurations, getSessionFactories, getSqlSessionFactory, getTransactionContextFactory, getTransactionFactory, getTypedEventListeners, getXmlEncoding, initAdditionalEventDispatchActions, initBeans, initClock, initCommandContextFactory, initCommandExecutor, initCommandExecutors, initCommandInterceptors, initCommandInvoker, initConfigurators, initCustomMybatisInterceptors, initCustomMybatisMappers, initDatabaseType, initDataSource, initDbSqlSessionFactory, initEngineConfigurations, initEventDispatcher, initEventListeners, initIdGenerator, initInterceptorChain, initMybatisConfiguration, initMyBatisLogSqlExecutionTimePlugin, initMybatisTypeHandlers, initSchemaCommandConfig, initService, initSqlSessionFactory, initTransactionFactory, initTypedEventListeners, isAlwaysLookupLatestDefinitionVersion, isBulkInsertEnabled, isDbHistoryUsed, isEnableConfiguratorServiceLoader, isEnableEventDispatcher, isEnableLogSqlExecutionTime, isFallbackToDefaultTenant, isForceCloseMybatisConnectionPool, isJdbcPingEnabled, isTablePrefixIsSchema, isTransactionsExternallyManaged, isUseClassForNameClassLoading, isUsePrefixId, isUsingRelationalDatabase, isUsingSchemaMgmt, parseCustomMybatisXMLMappers, parseDependentEngineMybatisXMLMappers, parseMybatisConfiguration, parseMybatisXmlMapping, pathToEngineDbProperties, setAdditionalEventDispatchActions, setAlwaysLookupLatestDefinitionVersion, setBeans, setBulkInsertEnabled, setClassLoader, setClock, setCommandContextFactory, setCommandExecutor, setCommandInterceptors, setCommandInvoker, setCommonSchemaManager, setConfigurators, setCustomMybatisInterceptors, setCustomMybatisMappers, setCustomMybatisXMLMappers, setCustomPostCommandInterceptors, setCustomPostDeployers, setCustomPreCommandInterceptors, setCustomPreDeployers, setCustomSessionFactories, setDatabaseCatalog, setDatabaseSchema, setDatabaseSchemaUpdate, setDatabaseTablePrefix, setDatabaseType, setDatabaseWildcardEscapeCharacter, setDataSourceJndiName, setDbHistoryUsed, setDbSqlSessionFactory, setDefaultCommandConfig, setDefaultCommandInterceptors, setDefaultTenantProvider, setDefaultTenantValue, setDependentEngineMybatisTypeAliasConfigs, setDependentEngineMybatisTypeHandlerConfigs, setDependentEngineMyBatisXmlMappers, setDeployers, setEnableConfiguratorServiceLoader, setEnableEventDispatcher, setEnableLogSqlExecutionTime, setEngineConfigurations, setEventDispatcher, setEventListeners, setFallbackToDefaultTenant, setForceCloseMybatisConnectionPool, setIdGenerator, setIdmEngineConfigurator, setJdbcDefaultTransactionIsolationLevel, setJdbcDriver, setJdbcMaxActiveConnections, setJdbcMaxCheckoutTime, setJdbcMaxIdleConnections, setJdbcMaxWaitTime, setJdbcPassword, setJdbcPingConnectionNotUsedFor, setJdbcPingEnabled, setJdbcPingQuery, setJdbcUrl, setJdbcUsername, setMaxLengthStringVariableType, setMaxNrOfStatementsInBulkInsert, setMybatisMappingFile, setSchemaCommandConfig, setSchemaManagementCmd, setSchemaManager, setServiceConfigurations, setSessionFactories, setSqlSessionFactory, setTablePrefixIsSchema, setTransactionContextFactory, setTransactionFactory, setTransactionsExternallyManaged, setTypedEventListeners, setUseClassForNameClassLoading, setUsePrefixId, setUsingRelationalDatabase, setUsingSchemaMgmt, setXmlEncodingpublic static final String DEFAULT_MYBATIS_MAPPING_FILE
public static final String DEFAULT_ENGINE_NAME
public static final String KEY_DATA_OBJECT_ENGINE_CONFIG
public static final String LIQUIBASE_CHANGELOG_PREFIX
protected String dataObjectEngineName
protected DataObjectRepositoryService dataObjectRepositoryService
protected DataObjectRuntimeService dataObjectRuntimeService
protected DatabaseSchemaDataObjectDataSource databaseSchemaDataObjectDataSource
protected Map<String,DataObjectDataSource<?,?,?,?>> dataObjectDataSources
protected final DataObjectDataManagers dataManagers
protected final DataObjectEntityManagers entityManagers
protected DatabaseSchemaDataObjectInstanceEntityManager databaseSchemaDataObjectInstanceEntityManager
protected DatabaseSchemaDataObjectJdbcOperations databaseSchemaDataObjectJdbcOperations
protected org.springframework.transaction.PlatformTransactionManager transactionManager
protected Integer transactionSynchronizationAdapterOrder
protected org.springframework.jdbc.core.namedparam.NamedParameterJdbcOperations namedParameterJdbcOperations
protected org.springframework.context.ApplicationContext applicationContext
protected volatile boolean running
protected DataObjectDefinitionDeployer dataObjectDefinitionDeployer
protected org.flowable.common.engine.impl.EngineDeployer dataObjectSchemaDefinitionDeployer
protected DataObjectDeploymentManager deploymentManager
protected DataObjectResourceConverter dataObjectResourceConverter
protected int dataObjectDefinitionCacheLimit
protected org.flowable.common.engine.impl.persistence.deploy.DeploymentCache<DataObjectDefinitionCacheEntry> dataObjectDefinitionCache
protected org.flowable.variable.api.types.VariableTypes variableTypes
protected List<org.flowable.variable.api.types.VariableType> customPreVariableTypes
protected List<org.flowable.variable.api.types.VariableType> customPostVariableTypes
protected boolean serializableVariableTypeTrackDeserializedObjects
protected String deploymentName
protected org.springframework.core.io.Resource[] deploymentResources
protected String deploymentMode
protected final Object lifeCycleMonitor
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
protected boolean autoUpdateDataObjectSchemaDefinitions
true the liquibase changelog from the DataObjectSchemaDefinition(s)
will be automatically updated during engine boot time.
This property is usually OK to be set only during development time.public String getEngineCfgKey()
getEngineCfgKey in class org.flowable.common.engine.impl.AbstractEngineConfigurationpublic org.flowable.common.engine.impl.interceptor.CommandInterceptor createTransactionInterceptor()
createTransactionInterceptor in class org.flowable.common.engine.impl.AbstractEngineConfigurationprotected void initDbSqlSessionFactoryEntitySettings()
initDbSqlSessionFactoryEntitySettings in class org.flowable.common.engine.impl.AbstractEngineConfigurationpublic void initVariableTypes()
public InputStream getMyBatisXmlConfigurationStream()
getMyBatisXmlConfigurationStream in class org.flowable.common.engine.impl.AbstractEngineConfigurationpublic String getEngineName()
getEngineName in class org.flowable.common.engine.impl.AbstractEngineConfigurationpublic void setTransactionSynchronizationAdapterOrder(Integer transactionSynchronizationAdapterOrder)
public DataObjectDataManagers getDataManagers()
public DataObjectEntityManagers getEntityManagers()
public DatabaseSchemaDataObjectInstanceEntityManager getDatabaseSchemaDataObjectInstanceEntityManager()
public void setDatabaseSchemaDataObjectInstanceEntityManager(DatabaseSchemaDataObjectInstanceEntityManager databaseSchemaDataObjectInstanceEntityManager)
public DatabaseSchemaDataObjectJdbcOperations getDatabaseSchemaDataObjectJdbcOperations()
public void setDatabaseSchemaDataObjectJdbcOperations(DatabaseSchemaDataObjectJdbcOperations databaseSchemaDataObjectJdbcOperations)
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
public void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public DataObjectEngineConfiguration setDataSource(DataSource dataSource)
setDataSource in class org.flowable.common.engine.impl.AbstractEngineConfigurationpublic DataObjectEngine buildDataObjectEngine()
protected void init()
public void initSessionFactories()
initSessionFactories in class org.flowable.common.engine.impl.AbstractEngineConfigurationprotected void initServices()
protected void initDataObjectDataSources()
public void initTransactionContextFactory()
initTransactionContextFactory in class org.flowable.common.engine.impl.AbstractEngineConfigurationpublic void initDefaultCommandConfig()
initDefaultCommandConfig in class org.flowable.common.engine.impl.AbstractEngineConfigurationpublic void initDataManagers()
public void initEntityManagers()
public void initSchemaManager()
initSchemaManager in class org.flowable.common.engine.impl.AbstractEngineConfigurationpublic void initSchemaManagementCommand()
public void initObjectMapper()
protected void initDeployers()
public Collection<? extends org.flowable.common.engine.impl.EngineDeployer> getDefaultDeployers()
protected void initDataObjectDefinitionCache()
protected void initDataObjectResourceConverter()
protected void initDeploymentManager()
public org.springframework.transaction.PlatformTransactionManager getTransactionManager()
getTransactionManager in interface org.flowable.common.spring.SpringEngineConfigurationpublic void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
setTransactionManager in interface org.flowable.common.spring.SpringEngineConfigurationpublic org.springframework.jdbc.core.namedparam.NamedParameterJdbcOperations getNamedParameterJdbcOperations()
public void setNamedParameterJdbcOperations(org.springframework.jdbc.core.namedparam.NamedParameterJdbcOperations namedParameterJdbcOperations)
public String getDeploymentName()
getDeploymentName in interface org.flowable.common.spring.SpringEngineConfigurationpublic void setDeploymentName(String deploymentName)
setDeploymentName in interface org.flowable.common.spring.SpringEngineConfigurationpublic org.springframework.core.io.Resource[] getDeploymentResources()
getDeploymentResources in interface org.flowable.common.spring.SpringEngineConfigurationpublic void setDeploymentResources(org.springframework.core.io.Resource[] deploymentResources)
setDeploymentResources in interface org.flowable.common.spring.SpringEngineConfigurationpublic org.springframework.context.ApplicationContext getApplicationContext()
getApplicationContext in interface org.flowable.common.spring.SpringEngineConfigurationpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext in interface org.flowable.common.spring.SpringEngineConfigurationsetApplicationContext in interface org.springframework.context.ApplicationContextAwarepublic String getDeploymentMode()
getDeploymentMode in interface org.flowable.common.spring.SpringEngineConfigurationpublic void setDeploymentMode(String deploymentMode)
setDeploymentMode in interface org.flowable.common.spring.SpringEngineConfigurationpublic String getDataObjectEngineName()
public DataObjectEngineConfiguration setDataObjectEngineName(String dataObjectEngineName)
public DataObjectDefinitionDeployer getDataObjectDefinitionDeployer()
public DataObjectEngineConfiguration setDataObjectDefinitionDeployer(DataObjectDefinitionDeployer dataObjectDefinitionDeployer)
public org.flowable.common.engine.impl.EngineDeployer getDataObjectSchemaDefinitionDeployer()
public void setDataObjectSchemaDefinitionDeployer(org.flowable.common.engine.impl.EngineDeployer dataObjectSchemaDefinitionDeployer)
public DataObjectDeploymentManager getDeploymentManager()
public DataObjectEngineConfiguration setDeploymentManager(DataObjectDeploymentManager deploymentManager)
public DataObjectResourceConverter getDataObjectResourceConverter()
public DataObjectEngineConfiguration setDataObjectResourceConverter(DataObjectResourceConverter dataObjectResourceConverter)
public int getDataObjectDefinitionCacheLimit()
public DataObjectEngineConfiguration setDataObjectDefinitionCacheLimit(int dataObjectDefinitionCacheLimit)
public org.flowable.common.engine.impl.persistence.deploy.DeploymentCache<DataObjectDefinitionCacheEntry> getDataObjectDefinitionCache()
public DataObjectEngineConfiguration setDataObjectDefinitionCache(org.flowable.common.engine.impl.persistence.deploy.DeploymentCache<DataObjectDefinitionCacheEntry> dataObjectDefinitionCache)
public org.flowable.variable.api.types.VariableTypes getVariableTypes()
getVariableTypes in interface org.flowable.common.engine.impl.HasVariableTypespublic DataObjectEngineConfiguration setVariableTypes(org.flowable.variable.api.types.VariableTypes variableTypes)
setVariableTypes in interface org.flowable.common.engine.impl.HasVariableTypespublic List<org.flowable.variable.api.types.VariableType> getCustomPreVariableTypes()
public DataObjectEngineConfiguration setCustomPreVariableTypes(List<org.flowable.variable.api.types.VariableType> customPreVariableTypes)
public List<org.flowable.variable.api.types.VariableType> getCustomPostVariableTypes()
public DataObjectEngineConfiguration setCustomPostVariableTypes(List<org.flowable.variable.api.types.VariableType> customPostVariableTypes)
public void start()
start in interface org.springframework.context.Lifecyclepublic void stop()
stop in interface org.springframework.context.Lifecyclepublic boolean isRunning()
isRunning in interface org.springframework.context.Lifecyclepublic int getPhase()
getPhase in interface org.flowable.common.spring.SpringEngineConfigurationgetPhase in interface org.springframework.context.PhasedgetPhase in interface org.springframework.context.SmartLifecyclepublic DataObjectRepositoryService getDataObjectRepositoryService()
getDataObjectRepositoryService in interface DataObjectEngineConfigurationApipublic void setDataObjectRepositoryService(DataObjectRepositoryService dataObjectRepositoryService)
public DataObjectRuntimeService getDataObjectRuntimeService()
getDataObjectRuntimeService in interface DataObjectEngineConfigurationApipublic void setDataObjectRuntimeService(DataObjectRuntimeService dataObjectRuntimeService)
public DatabaseSchemaDataObjectDataSource getDatabaseSchemaDataObjectDataSource()
getDatabaseSchemaDataObjectDataSource in interface DataObjectEngineConfigurationApipublic void setDatabaseSchemaDataObjectDataSource(DatabaseSchemaDataObjectDataSource databaseSchemaDataObjectDataSource)
public Map<String,DataObjectDataSource<?,?,?,?>> getDataObjectDataSources()
public void registerDataObjectDataSource(DataObjectDataSource<?,?,?,?> dataObjectDataSource)
protected void autoDeployResources(DataObjectEngine dataObjectEngine)
protected AutoDeploymentStrategy getAutoDeploymentStrategy(String mode)
AutoDeploymentStrategy for the provided mode. This method may be overridden to implement custom deployment strategies if required,
but implementors should take care not to return null.mode - the mode to get the strategy fornullpublic boolean isAutoUpdateDataObjectSchemaDefinitions()
public void setAutoUpdateDataObjectSchemaDefinitions(boolean autoUpdateDataObjectSchemaDefinitions)
Copyright © 2019. All rights reserved.