Interface SqmDynamicInstantiationTarget<T>
- All Superinterfaces:
BindableType<T>,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.- Author:
- Steve Ebersole
-
Method Summary
Modifier and TypeMethodDescriptiondefault ClassForDynamicInstantiationNature.CLASSthis will return the Class to be instantiated.Retrieves the enum describing the nature of this target.Methods inherited from interface org.hibernate.query.BindableType
getBindableJavaTypeMethods inherited from interface org.hibernate.query.sqm.SqmExpressible
getExpressibleJavaType, getRelationalJavaType, getSqmType, getTypeName, isInstance, resolveExpressible
-
Method Details
-
getNature
DynamicInstantiationNature getNature()Retrieves the enum describing the nature of this target.- Returns:
- The nature of this target.
-
getTargetTypeDescriptor
-
getJavaType
ForDynamicInstantiationNature.CLASSthis will return the Class to be instantiated. ForDynamicInstantiationNature.MAPandDynamicInstantiationNature.LISTthis will returnMap.classandList.classrespectively.- Returns:
- The type to be instantiated.
-