Class EntityAssembler
- java.lang.Object
-
- org.hibernate.sql.results.graph.entity.internal.EntityAssembler
-
- All Implemented Interfaces:
DomainResultAssembler
public class EntityAssembler extends Object implements DomainResultAssembler
-
-
Constructor Summary
Constructors Constructor Description EntityAssembler(JavaType javaType, EntityInitializer<?> initializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
assemble(RowProcessingState rowProcessingState)
The main "assembly" contract.void
forEachResultAssembler(BiConsumer consumer, Object arg)
Invokes the consumer with every initializer part of this assembler that returnstrue
forInitializer.isResultInitializer()
.JavaType
getAssembledJavaType()
The JavaType describing the Java type that this assembler assembles.EntityInitializer<?>
getInitializer()
void
resolveState(RowProcessingState rowProcessingState)
This method is used to resolve the assembler's state, i.e.
-
-
-
Constructor Detail
-
EntityAssembler
public EntityAssembler(JavaType javaType, EntityInitializer<?> initializer)
-
-
Method Detail
-
getAssembledJavaType
public JavaType getAssembledJavaType()
Description copied from interface:DomainResultAssembler
The JavaType describing the Java type that this assembler assembles.- Specified by:
getAssembledJavaType
in interfaceDomainResultAssembler
-
assemble
public Object assemble(RowProcessingState rowProcessingState)
Description copied from interface:DomainResultAssembler
The main "assembly" contract. Assemble the result and return it.- Specified by:
assemble
in interfaceDomainResultAssembler
-
resolveState
public void resolveState(RowProcessingState rowProcessingState)
Description copied from interface:DomainResultAssembler
This method is used to resolve the assembler's state, i.e. reading the result values, with some performance optimization when we don't need the result object itself- Specified by:
resolveState
in interfaceDomainResultAssembler
-
getInitializer
public EntityInitializer<?> getInitializer()
- Specified by:
getInitializer
in interfaceDomainResultAssembler
-
forEachResultAssembler
public void forEachResultAssembler(BiConsumer consumer, Object arg)
Description copied from interface:DomainResultAssembler
Invokes the consumer with every initializer part of this assembler that returnstrue
forInitializer.isResultInitializer()
.- Specified by:
forEachResultAssembler
in interfaceDomainResultAssembler
-
-