Class HibernateSearchPropertyHelper

java.lang.Object
org.infinispan.query.objectfilter.impl.syntax.parser.ObjectPropertyHelper<Class<?>>
org.infinispan.query.objectfilter.impl.syntax.parser.ReflectionPropertyHelper
org.infinispan.query.dsl.embedded.impl.HibernateSearchPropertyHelper

public final class HibernateSearchPropertyHelper extends org.infinispan.query.objectfilter.impl.syntax.parser.ReflectionPropertyHelper
  • Field Details

  • Constructor Details

    • HibernateSearchPropertyHelper

      public HibernateSearchPropertyHelper(SearchMapping searchMapping, org.infinispan.query.objectfilter.impl.syntax.parser.EntityNameResolver<Class<?>> entityNameResolver)
  • Method Details

    • convertToPropertyType

      public Object convertToPropertyType(Class<?> entityType, String[] propertyPath, String value)
      Description copied from class: org.infinispan.query.objectfilter.impl.syntax.parser.ObjectPropertyHelper
      Returns the given value converted into the type of the given property as determined via the field bridge of the property.
      Overrides:
      convertToPropertyType in class org.infinispan.query.objectfilter.impl.syntax.parser.ObjectPropertyHelper<Class<?>>
      Parameters:
      entityType - the type hosting the property
      propertyPath - the name of the property
      value - the value to convert
      Returns:
      the given value converted into the type of the given property
    • getPrimitivePropertyType

      public Class<?> getPrimitivePropertyType(Class<?> entityType, String[] propertyPath)
      Description copied from class: org.infinispan.query.objectfilter.impl.syntax.parser.ObjectPropertyHelper
      Returns the type of the primitive property.
      Overrides:
      getPrimitivePropertyType in class org.infinispan.query.objectfilter.impl.syntax.parser.ReflectionPropertyHelper
      Parameters:
      entityType - the TypeMetadata of the entity
      propertyPath - the path of the property
      Returns:
      the Class or null if not present or not a primitive property
    • getIndexedPropertyType

      public Class<?> getIndexedPropertyType(Class<?> entityType, String[] propertyPath)
      Overrides:
      getIndexedPropertyType in class org.infinispan.query.objectfilter.impl.syntax.parser.ObjectPropertyHelper<Class<?>>
    • isNestedIndexStructure

      public boolean isNestedIndexStructure(Class<?> entityType, String[] propertyPath)
      Overrides:
      isNestedIndexStructure in class org.infinispan.query.objectfilter.impl.syntax.parser.ObjectPropertyHelper<Class<?>>
    • isRepeatedProperty

      public boolean isRepeatedProperty(Class<?> entityType, String[] propertyPath)
      Description copied from class: org.infinispan.query.objectfilter.impl.syntax.parser.ObjectPropertyHelper
      Tests if the attribute path contains repeated (collection/array) attributes.
      Overrides:
      isRepeatedProperty in class org.infinispan.query.objectfilter.impl.syntax.parser.ReflectionPropertyHelper
    • hasEmbeddedProperty

      public boolean hasEmbeddedProperty(Class<?> entityType, String[] propertyPath)
      Overrides:
      hasEmbeddedProperty in class org.infinispan.query.objectfilter.impl.syntax.parser.ReflectionPropertyHelper
    • hasProperty

      public boolean hasProperty(Class<?> entityType, String[] propertyPath)
      Overrides:
      hasProperty in class org.infinispan.query.objectfilter.impl.syntax.parser.ReflectionPropertyHelper
    • getIndexedFieldProvider

      public org.infinispan.query.objectfilter.impl.syntax.IndexedFieldProvider<Class<?>> getIndexedFieldProvider()
      Overrides:
      getIndexedFieldProvider in class org.infinispan.query.objectfilter.impl.syntax.parser.ReflectionPropertyHelper