Top Description Methods
org.hibernate.query.sqm.tree.select

public Interface SqmDynamicInstantiationTarget<T>

extends SqmExpressible<T>
Known Direct Implementers
org.hibernate.query.sqm.tree.select.SqmDynamicInstantiation.DynamicInstantiationTargetImpl
Imports
org.hibernate.query.sqm.DynamicInstantiationNature, .SqmExpressible, org.hibernate.type.descriptor.java.JavaType

Represents the thing-to-be-instantiated in a dynamic instantiation expression. Hibernate supports 3 "natures" of dynamic instantiation target; see DynamicInstantiationNature for further details.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public default Class<T>

Returns:

The type to be instantiated.
getJavaType
()

For DynamicInstantiationNature#CLASS this will return the Class to be instantiated.

public DynamicInstantiationNature

Returns:

The nature of this target.
getNature
()

Retrieves the enum describing the nature of this target.

public JavaType<T>
Inherited from org.hibernate.query.sqm.SqmExpressible:
getExpressibleJavaTypegetRelationalJavaTypegetSqmTypegetTypeNameisInstanceresolveExpressible

Method Detail

getJavaTypeback to summary
public default Class<T> getJavaType()

For DynamicInstantiationNature#CLASS this will return the Class to be instantiated. For DynamicInstantiationNature#MAP and DynamicInstantiationNature#LIST this will return Map.class and List.class respectively.

Returns:Class<T>

The type to be instantiated.

getNatureback to summary
public DynamicInstantiationNature getNature()

Retrieves the enum describing the nature of this target.

Returns:DynamicInstantiationNature

The nature of this target.

getTargetTypeDescriptorback to summary
public JavaType<T> getTargetTypeDescriptor()