Class PojoModelPath.Builder
java.lang.Object
org.hibernate.search.mapper.pojo.model.path.PojoModelPath.Builder
- Enclosing class:
PojoModelPath
-
Method Summary
Modifier and TypeMethodDescriptionAppend to the path an access the property with the given name.Append to the path a value extraction using the given container extractor.value
(ContainerExtractorPath extractorPath) Append to the path a value extraction using the given container extractor path.Append to the path a value extraction using the default container extractors.Append to the path a direct value extraction, not using any container extractors.
-
Method Details
-
property
Append to the path an access the property with the given name.- Parameters:
propertyName
- The name of the property to access.- Returns:
this
, for method chaining.- Throws:
SearchException
- If no property name was previously given.
-
value
Append to the path a value extraction using the given container extractor path.- Parameters:
extractorPath
- The container extractors to apply, as aContainerExtractorPath
.- Returns:
this
, for method chaining.- Throws:
SearchException
- If no property name was previously given.
-
value
Append to the path a value extraction using the given container extractor.Multiple
value(String)
calls can be chained to apply multiple extractors.- Parameters:
extractorName
- The name of the container extractor to apply.- Returns:
this
, for method chaining.- Throws:
SearchException
- If no property name was previously given.- See Also:
-
valueWithoutExtractors
Append to the path a direct value extraction, not using any container extractors.- Returns:
this
, for method chaining.- Throws:
SearchException
- If no property name was previously given.
-
valueWithDefaultExtractors
Append to the path a value extraction using the default container extractors.- Returns:
this
, for method chaining.- Throws:
SearchException
- If no property name was previously given.
-
toPropertyPath
- Returns:
- A
PojoModelPathPropertyNode
built from the given components. - Throws:
SearchException
- If no initial property name was given.
-
toPropertyPathOrNull
- Returns:
- A
PojoModelPathPropertyNode
built from the given components, ornull
if no information was added to this builder.
-
toValuePath
- Returns:
- A
PojoModelPathValueNode
built from the given components. - Throws:
SearchException
- If no initial property name was given.
-
toValuePathOrNull
- Returns:
- A
PojoModelPathValueNode
built from the given components, ornull
if no information was added to this builder.
-