Interface SqmDynamicInstantiationTarget<T>
-
- All Superinterfaces:
BindableType<T>,SqmExpressible<T>
public interface SqmDynamicInstantiationTarget<T> extends SqmExpressible<T>
Represents the thing-to-be-instantiated in a dynamic instantiation expression. Hibernate supports 3 "natures" of dynamic instantiation target; seeDynamicInstantiationNaturefor further details.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ClassgetJavaType()ForDynamicInstantiationNature.CLASSthis will return the Class to be instantiated.DynamicInstantiationNaturegetNature()Retrieves the enum describing the nature of this target.JavaType<T>getTargetTypeDescriptor()-
Methods inherited from interface org.hibernate.query.BindableType
getBindableJavaType
-
Methods inherited from interface org.hibernate.query.sqm.SqmExpressible
getExpressibleJavaType, getRelationalJavaType, getSqmType, isInstance, resolveExpressible
-
-
-
-
Method Detail
-
getNature
DynamicInstantiationNature getNature()
Retrieves the enum describing the nature of this target.- Returns:
- The nature of this target.
-
getJavaType
default Class getJavaType()
ForDynamicInstantiationNature.CLASSthis will return the Class to be instantiated. ForDynamicInstantiationNature.MAPandDynamicInstantiationNature.LISTthis will returnMap.classandList.classrespectively.- Returns:
- The type to be instantiated.
-
-