Class PojoConstructorProjectionDefinition<T>
- java.lang.Object
-
- org.hibernate.search.mapper.pojo.search.definition.impl.PojoConstructorProjectionDefinition<T>
-
- All Implemented Interfaces:
AutoCloseable,ProjectionDefinition<T>,CompositeProjectionDefinition<T>,ToStringTreeAppendable
public final class PojoConstructorProjectionDefinition<T> extends Object implements CompositeProjectionDefinition<T>, ToStringTreeAppendable
-
-
Constructor Summary
Constructors Constructor Description PojoConstructorProjectionDefinition(PojoConstructorIdentifier constructor, ValueCreateHandle<? extends T> valueCreateHandle, List<BeanHolder<? extends ProjectionDefinition<?>>> parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendTo(ToStringTreeAppender appender)Appends information aboutthisto the givenappender.CompositeProjectionValueStep<?,T>apply(SearchProjectionFactory<?,?> projectionFactory, CompositeProjectionInnerStep initialStep, ProjectionDefinitionContext context)voidclose()Close any resource before the projection definition is discarded.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.search.engine.search.projection.definition.spi.CompositeProjectionDefinition
create
-
Methods inherited from interface org.hibernate.search.util.common.spi.ToStringTreeAppendable
toStringTree
-
-
-
-
Constructor Detail
-
PojoConstructorProjectionDefinition
public PojoConstructorProjectionDefinition(PojoConstructorIdentifier constructor, ValueCreateHandle<? extends T> valueCreateHandle, List<BeanHolder<? extends ProjectionDefinition<?>>> parameters)
-
-
Method Detail
-
appendTo
public void appendTo(ToStringTreeAppender appender)
Description copied from interface:ToStringTreeAppendableAppends information aboutthisto the givenappender.WARNING: This generally shouldn't be called directly, as
ToStringTreeAppenderwill automatically call this method forToStringTreeAppendablevalues passed toToStringTreeAppender.attribute(String, Object)/ToStringTreeAppender.value(Object).Implementations should assume that calls to
ToStringTreeAppender.startObject()/ToStringTreeAppender.endObject()forthisare handled by the caller.- Specified by:
appendToin interfaceToStringTreeAppendable- Parameters:
appender- AToStringTreeAppender.
-
close
public void close()
Description copied from interface:CompositeProjectionDefinitionClose any resource before the projection definition is discarded.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCompositeProjectionDefinition<T>
-
apply
public CompositeProjectionValueStep<?,T> apply(SearchProjectionFactory<?,?> projectionFactory, CompositeProjectionInnerStep initialStep, ProjectionDefinitionContext context)
- Specified by:
applyin interfaceCompositeProjectionDefinition<T>
-
-