Class DatabaseSchemaDataObjectJdbcTemplate
java.lang.Object
com.flowable.serviceregistry.engine.impl.invoker.db.DatabaseSchemaDataObjectJdbcTemplate
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateLinkedObject
(Map<String, Object> result, JoinTableConfig relation, String linkedId) protected DatabaseGenericInstanceQuery
protected void
createRelation
(DbSqlSession dbSqlSession, ColumnMappingRelation relation, Object lookupIdValue, Object value) int
delete
(ServiceDefinitionModel serviceDefinitionModel, DatabaseGenericInstanceQuery query) protected int
deleteRelation
(DbSqlSession dbSqlSession, ColumnMappingRelation relation, List<String> instanceIds) protected String
protected void
handleListRelation
(Map<String, Object> object, Map<String, Object> result, JoinTableConfig relation, Map<String, List<JoinTableConfig>> tablesByRelation) protected void
handleObjectRelation
(Map<String, Object> object, Map<String, Object> result, JoinTableConfig relation, Map<String, List<JoinTableConfig>> tablesByRelation) protected void
handleRelations
(Map<String, Object> object, Map<String, Object> result, String joinTableName, Map<String, List<JoinTableConfig>> tablesByRelation) insert
(ServiceInvocationVariablesContainer variableContainer, ServiceDefinitionModel serviceDefinitionModel, Map<String, List<DbColumnMapping>> insertColumnsByName, BiFunction<String, ServiceDefinitionModel, ColumnMapping> columnMappingProvider) protected int
insertRelations
(DbSqlSession dbSqlSession, ColumnMappingRelation relation, List<?> instanceIds, List<?> referenceIds) selectListWithJoinTables
(DbSqlSession dbSqlSession, DatabaseGenericInstanceQuery query) selectListWithoutJoinTables
(DbSqlSession dbSqlSession, DatabaseGenericInstanceQuery query) protected DatabaseServiceInvocationResponse
protected DatabaseServiceInvocationResponse
protected boolean
shouldAutoGenerateId
(ServiceInvocationVariablesContainer variableContainer, String lookupIdName) int
update
(ServiceInvocationVariablesContainer variablesContainer, DatabaseGenericInstanceQuery query, Map<String, List<DbColumnMapping>> updateColumnsByName, Function<String, ColumnMapping> columnMappingProvider)
-
Field Details
-
LOGGER
protected static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
DatabaseSchemaDataObjectJdbcTemplate
public DatabaseSchemaDataObjectJdbcTemplate()
-
-
Method Details
-
createQuery
-
getLookupIdColumnName
-
selectSingle
-
selectMulti
-
selectList
-
selectListWithoutJoinTables
protected List<Map<String,Object>> selectListWithoutJoinTables(DbSqlSession dbSqlSession, DatabaseGenericInstanceQuery query) -
selectListWithJoinTables
protected List<Map<String,Object>> selectListWithJoinTables(DbSqlSession dbSqlSession, DatabaseGenericInstanceQuery query) -
handleRelations
-
handleListRelation
-
handleObjectRelation
-
createLinkedObject
-
insert
public Map<String,Object> insert(ServiceInvocationVariablesContainer variableContainer, ServiceDefinitionModel serviceDefinitionModel, Map<String, List<DbColumnMapping>> insertColumnsByName, BiFunction<String, ServiceDefinitionModel, ColumnMapping> columnMappingProvider) -
shouldAutoGenerateId
protected boolean shouldAutoGenerateId(ServiceInvocationVariablesContainer variableContainer, String lookupIdName) -
update
public int update(ServiceInvocationVariablesContainer variablesContainer, DatabaseGenericInstanceQuery query, Map<String, List<DbColumnMapping>> updateColumnsByName, Function<String, ColumnMapping> columnMappingProvider) -
delete
public int delete(ServiceDefinitionModel serviceDefinitionModel, DatabaseGenericInstanceQuery query) -
createRelation
protected void createRelation(DbSqlSession dbSqlSession, ColumnMappingRelation relation, Object lookupIdValue, Object value) -
deleteRelation
protected int deleteRelation(DbSqlSession dbSqlSession, ColumnMappingRelation relation, List<String> instanceIds) -
insertRelations
protected int insertRelations(DbSqlSession dbSqlSession, ColumnMappingRelation relation, List<?> instanceIds, List<?> referenceIds)
-