Interface SqmDynamicInstantiationTarget<T>
- All Superinterfaces:
SqmExpressible<T>
Represents the thing-to-be-instantiated in a dynamic instantiation expression. Hibernate
supports 3 "natures" of dynamic instantiation target; see
DynamicInstantiationNature
for further details.-
Method Summary
Modifier and TypeMethodDescriptiondefault Class<?>
ForDynamicInstantiationNature.CLASS
this will return the Class to be instantiated.Retrieves the enum describing the nature of this target.Methods inherited from interface org.hibernate.query.sqm.SqmExpressible
getExpressibleJavaType, getRelationalJavaType, getSqmType, getTypeName
-
Method Details
-
getNature
DynamicInstantiationNature getNature()Retrieves the enum describing the nature of this target.- Returns:
- The nature of this target.
-
getTargetTypeDescriptor
-
getJavaType
ForDynamicInstantiationNature.CLASS
this will return the Class to be instantiated. ForDynamicInstantiationNature.MAP
andDynamicInstantiationNature.LIST
this will returnMap.class
andList.class
respectively.- Returns:
- The type to be instantiated.
-