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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.infinispan.query.objectfilter.impl.syntax.parser.ReflectionPropertyHelper
CLASS_NO_INDEXINGFields inherited from class org.infinispan.query.objectfilter.impl.syntax.parser.ObjectPropertyHelper
primitives -
Constructor Summary
ConstructorsConstructorDescriptionHibernateSearchPropertyHelper(SearchMapping searchMapping, org.infinispan.query.objectfilter.impl.syntax.parser.EntityNameResolver<Class<?>> entityNameResolver) -
Method Summary
Modifier and TypeMethodDescriptionconvertToPropertyType(Class<?> entityType, String[] propertyPath, String value) Returns the given value converted into the type of the given property as determined via the field bridge of the property.org.infinispan.query.objectfilter.impl.syntax.IndexedFieldProvider<Class<?>> Class<?> getIndexedPropertyType(Class<?> entityType, String[] propertyPath) Class<?> getPrimitivePropertyType(Class<?> entityType, String[] propertyPath) Returns the type of the primitive property.booleanhasEmbeddedProperty(Class<?> entityType, String[] propertyPath) booleanhasProperty(Class<?> entityType, String[] propertyPath) booleanisNestedIndexStructure(Class<?> entityType, String[] propertyPath) booleanisRepeatedProperty(Class<?> entityType, String[] propertyPath) Tests if the attribute path contains repeated (collection/array) attributes.Methods inherited from class org.infinispan.query.objectfilter.impl.syntax.parser.ReflectionPropertyHelper
getEntityMetadata, mapPropertyNamePathToFieldIdPathMethods inherited from class org.infinispan.query.objectfilter.impl.syntax.parser.ObjectPropertyHelper
convertToBackendType, convertToPropertyType
-
Field Details
-
KEY
- See Also:
-
VALUE
- See Also:
-
VERSION
- See Also:
-
SCORE
- See Also:
-
-
Constructor Details
-
HibernateSearchPropertyHelper
public HibernateSearchPropertyHelper(SearchMapping searchMapping, org.infinispan.query.objectfilter.impl.syntax.parser.EntityNameResolver<Class<?>> entityNameResolver)
-
-
Method Details
-
convertToPropertyType
Description copied from class:org.infinispan.query.objectfilter.impl.syntax.parser.ObjectPropertyHelperReturns the given value converted into the type of the given property as determined via the field bridge of the property.- Overrides:
convertToPropertyTypein classorg.infinispan.query.objectfilter.impl.syntax.parser.ObjectPropertyHelper<Class<?>>- Parameters:
entityType- the type hosting the propertypropertyPath- the name of the propertyvalue- the value to convert- Returns:
- the given value converted into the type of the given property
-
getPrimitivePropertyType
Description copied from class:org.infinispan.query.objectfilter.impl.syntax.parser.ObjectPropertyHelperReturns the type of the primitive property.- Overrides:
getPrimitivePropertyTypein classorg.infinispan.query.objectfilter.impl.syntax.parser.ReflectionPropertyHelper- Parameters:
entityType- the TypeMetadata of the entitypropertyPath- the path of the property- Returns:
- the
Classornullif not present or not a primitive property
-
getIndexedPropertyType
-
isNestedIndexStructure
-
isRepeatedProperty
Description copied from class:org.infinispan.query.objectfilter.impl.syntax.parser.ObjectPropertyHelperTests if the attribute path contains repeated (collection/array) attributes.- Overrides:
isRepeatedPropertyin classorg.infinispan.query.objectfilter.impl.syntax.parser.ReflectionPropertyHelper
-
hasEmbeddedProperty
-
hasProperty
-
getIndexedFieldProvider
public org.infinispan.query.objectfilter.impl.syntax.IndexedFieldProvider<Class<?>> getIndexedFieldProvider()- Overrides:
getIndexedFieldProviderin classorg.infinispan.query.objectfilter.impl.syntax.parser.ReflectionPropertyHelper
-