Class PropertyConditionGenerator

java.lang.Object
io.jmix.data.impl.jpql.generator.PropertyConditionGenerator
All Implemented Interfaces:
ConditionGenerator
Direct Known Subclasses:
KeyValuePropertyConditionGenerator

@Component("data_PropertyConditionGenerator") @Order(1000) public class PropertyConditionGenerator extends Object implements ConditionGenerator
  • Field Details

  • Constructor Details

    • PropertyConditionGenerator

      @Autowired public PropertyConditionGenerator(MetadataTools metadataTools, Metadata metadata)
  • Method Details

    • supports

      public boolean supports(ConditionGenerationContext context)
      Description copied from interface: ConditionGenerator
      Checks whether the condition generator supports the given context.
      Specified by:
      supports in interface ConditionGenerator
      Parameters:
      context - condition generation context
      Returns:
      true if the condition generator supports the given context, or false otherwise
    • generateJoin

      public String generateJoin(ConditionGenerationContext context)
      Description copied from interface: ConditionGenerator
      Returns a JPQL 'join' clause modified according to the given context.
      Specified by:
      generateJoin in interface ConditionGenerator
      Parameters:
      context - condition generation context
      Returns:
      a JPQL 'join' clause modified according to the given context
    • generateWhere

      public String generateWhere(ConditionGenerationContext context)
      Description copied from interface: ConditionGenerator
      Returns a JPQL 'where' clause modified according to the given context.
      Specified by:
      generateWhere in interface ConditionGenerator
      Parameters:
      context - condition generation context
      Returns:
      a JPQL 'where' clause modified according to the given context
    • generateParameterValue

      @Nullable public Object generateParameterValue(@Nullable Condition condition, @Nullable Object parameterValue, @Nullable String entityName)
      Description copied from interface: ConditionGenerator
      Returns a parameter value modified according to the given condition.
      Specified by:
      generateParameterValue in interface ConditionGenerator
      Parameters:
      condition - a condition
      parameterValue - parameter value
      entityName - entity name
      Returns:
      a modified parameter value
    • generateWhere

      protected String generateWhere(PropertyCondition propertyCondition, String entityAlias, String property)
    • getProperty

      protected String getProperty(String property, @Nullable String entityName)
    • isCrossDataStoreReference

      protected boolean isCrossDataStoreReference(String property, @Nullable String entityName)