Class DatabaseGenericInstanceQuery

java.lang.Object
org.flowable.common.engine.impl.db.ListQueryParameterObject
com.flowable.serviceregistry.engine.impl.invoker.db.DatabaseGenericInstanceQuery

public class DatabaseGenericInstanceQuery extends ListQueryParameterObject
Author:
Filip Hrisafov
  • Field Details

    • tableName

      protected String tableName
    • lookupIdColumnName

      protected String lookupIdColumnName
    • scopeType

      protected String scopeType
    • whereClauseComponents

      protected Collection<com.flowable.serviceregistry.engine.impl.invoker.db.WhereClauseComponent> whereClauseComponents
    • accessibleByUser

      protected String accessibleByUser
    • accessibleByGroups

      protected Collection<String> accessibleByGroups
    • safeAccessibleByGroups

      protected Collection<? extends Collection<String>> safeAccessibleByGroups
    • identityLinkType

      protected String identityLinkType
    • joinTables

      protected Collection<JoinTableConfig> joinTables
    • selectColumnNames

      protected Collection<String> selectColumnNames
  • Constructor Details

    • DatabaseGenericInstanceQuery

      public DatabaseGenericInstanceQuery()
  • Method Details

    • addOrder

      public void addOrder(OrderParameter orderParameter)
    • getTableName

      public String getTableName()
    • setTableName

      public void setTableName(String tableName)
    • getLookupIdColumnName

      public String getLookupIdColumnName()
    • setLookupIdColumnName

      public void setLookupIdColumnName(String lookupIdColumnName)
    • getScopeType

      public String getScopeType()
    • setScopeType

      public void setScopeType(String scopeType)
    • getWhereClauseComponents

      public Collection<com.flowable.serviceregistry.engine.impl.invoker.db.WhereClauseComponent> getWhereClauseComponents()
    • setWhereClauseComponents

      public void setWhereClauseComponents(Collection<com.flowable.serviceregistry.engine.impl.invoker.db.WhereClauseComponent> whereClauseComponents)
    • getAccessibleByUser

      public String getAccessibleByUser()
    • setAccessibleByUser

      public void setAccessibleByUser(String accessibleByUser)
    • getAccessibleByGroups

      public Collection<String> getAccessibleByGroups()
    • setAccessibleByGroups

      public void setAccessibleByGroups(Collection<String> accessibleByGroups)
    • getSafeAccessibleByGroups

      public Collection<? extends Collection<String>> getSafeAccessibleByGroups()
    • setSafeAccessibleByGroups

      public void setSafeAccessibleByGroups(Collection<? extends Collection<String>> safeAccessibleByGroups)
    • getIdentityLinkType

      public String getIdentityLinkType()
    • setIdentityLinkType

      public void setIdentityLinkType(String identityLinkType)
    • getJoinTables

      public Collection<JoinTableConfig> getJoinTables()
    • setJoinTables

      public void setJoinTables(Collection<JoinTableConfig> joinTables)
    • getSelectColumnNames

      public Collection<String> getSelectColumnNames()
    • setSelectColumnNames

      public void setSelectColumnNames(Collection<String> selectColumnNames)
    • buildOrderBy

      protected String buildOrderBy()
      Overrides:
      buildOrderBy in class ListQueryParameterObject
    • getQuery

      public DatabaseGenericInstanceQuery getQuery()
    • createWhereClause

      public static Collection<com.flowable.serviceregistry.engine.impl.invoker.db.WhereClauseComponent> createWhereClause(FilterDefinitionMember filterDefinitionMember, Function<QueryColumnMapping,QueryParameter> queryParameterProducer)
      Recursively flattens the tree of FilterDefinitionMembers into a flat list of 'components' which can be set to a DatabaseGenericInstanceQuery to be used in the sqlmap to dynamically generate the where clause. Generates bracket literals for nested parameters and takes care of producing the correct sequence of brackets and logical operators and clauses.

      This approach is used, because mybatis does not allow to recursively create sql snippets in the sqlmap. Therefor we do the recursion here to create a sequence of components which can be iterated0 in the sqlmap.