Class ObjectProjectionDefinition<P,T>
- java.lang.Object
-
- org.hibernate.search.engine.search.projection.definition.spi.AbstractProjectionDefinition<P>
-
- org.hibernate.search.engine.search.projection.definition.spi.ObjectProjectionDefinition<P,T>
-
- All Implemented Interfaces:
AutoCloseable,ProjectionDefinition<P>,ToStringTreeAppendable
- Direct Known Subclasses:
ObjectProjectionDefinition.MultiValued,ObjectProjectionDefinition.SingleValued
@Incubating public abstract class ObjectProjectionDefinition<P,T> extends AbstractProjectionDefinition<P> implements AutoCloseable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classObjectProjectionDefinition.MultiValued<T>static classObjectProjectionDefinition.SingleValued<T>
-
Field Summary
Fields Modifier and Type Field Description protected CompositeProjectionDefinition<T>delegateprotected StringfieldPath
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidappendTo(ToStringTreeAppender appender)Appends information aboutthisto the givenappender.voidclose()protected abstract booleanmulti()protected Stringtype()-
Methods inherited from class org.hibernate.search.engine.search.projection.definition.spi.AbstractProjectionDefinition
toString
-
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.ProjectionDefinition
create
-
Methods inherited from interface org.hibernate.search.util.common.spi.ToStringTreeAppendable
toStringTree
-
-
-
-
Field Detail
-
fieldPath
protected final String fieldPath
-
delegate
protected final CompositeProjectionDefinition<T> delegate
-
-
Method Detail
-
type
protected String type()
- Specified by:
typein classAbstractProjectionDefinition<P>
-
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- Overrides:
appendToin classAbstractProjectionDefinition<P>- Parameters:
appender- AToStringTreeAppender.
-
multi
protected abstract boolean multi()
-
close
public void close() throws Exception- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
-