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; seeDynamicInstantiationNature
for further details.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Class
getJavaType()
ForDynamicInstantiationNature.CLASS
this will return the Class to be instantiated.DynamicInstantiationNature
getNature()
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, getTypeName, 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.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.
-
-