Class DynamicInstantiation<T>
- java.lang.Object
-
- org.hibernate.sql.results.graph.instantiation.internal.DynamicInstantiation<T>
-
- All Implemented Interfaces:
DomainResultProducer
public class DynamicInstantiation<T> extends Object implements DomainResultProducer
Represents a dynamic-instantiation (from an SQM query) as a DomainResultProducer
-
-
Constructor Summary
Constructors Constructor Description DynamicInstantiation(DynamicInstantiationNature nature, JavaType<T> targetJavaType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addArgument(String alias, DomainResultProducer<?> argumentResultProducer, DomainResultCreationState creationState)
void
applySqlSelections(DomainResultCreationState creationState)
Used when this producer is a selection in a sub-query.void
complete()
DomainResult
createDomainResult(String resultVariable, DomainResultCreationState creationState)
Produce the domain queryList<DynamicInstantiationArgument>
getArguments()
DynamicInstantiationNature
getNature()
JavaType<T>
getTargetJavaType()
String
toString()
-
-
-
Constructor Detail
-
DynamicInstantiation
public DynamicInstantiation(DynamicInstantiationNature nature, JavaType<T> targetJavaType)
-
-
Method Detail
-
getNature
public DynamicInstantiationNature getNature()
-
addArgument
public void addArgument(String alias, DomainResultProducer<?> argumentResultProducer, DomainResultCreationState creationState)
-
complete
public void complete()
-
getArguments
public List<DynamicInstantiationArgument> getArguments()
-
createDomainResult
public DomainResult createDomainResult(String resultVariable, DomainResultCreationState creationState)
Description copied from interface:DomainResultProducer
Produce the domain query- Specified by:
createDomainResult
in interfaceDomainResultProducer<T>
-
applySqlSelections
public void applySqlSelections(DomainResultCreationState creationState)
Description copied from interface:DomainResultProducer
Used when this producer is a selection in a sub-query. The DomainResult is only needed for root query of a SELECT statement. This default impl assumes this producer is a true (Sql)Expression- Specified by:
applySqlSelections
in interfaceDomainResultProducer<T>
-
-