Package org.hibernate.query.sqm.spi
Interface SqmCreationContext
- All Superinterfaces:
BindingContext
- All Known Subinterfaces:
NodeBuilder
- All Known Implementing Classes:
SqmCriteriaNodeBuilder
The context in which all SQM creations occur.
Since we need to be able to parse and type check queries completely
outside the usual lifecycle of a Hibernate SessionFactory,
it's extremely important that code which builds SQM trees does not
access the factory or other services or object not exposed by this
context object.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Class<?> classForName(String className) Obtain a Java class object with the given fully-qualified name.default JpaMetamodelTheJpaMetamodel.default MappingMetamodelTheMappingMetamodel.default NodeBuilderTheNodeBuilder.TheQueryEngine.Methods inherited from interface org.hibernate.type.BindingContext
getTypeConfiguration, resolveExpressible
-
Method Details
-
getQueryEngine
QueryEngine getQueryEngine()TheQueryEngine. -
getNodeBuilder
TheNodeBuilder. -
classForName
Obtain a Java class object with the given fully-qualified name. This method may only be used for unmanaged types, for example, forselect new, or for references tostatic finalconstants or toenumvalues.- API Note:
- Avoid calling this method, since
Classobjects are not available to the query validator in Hibernate Processor at compilation time. If you must call it, be prepared to robustly handle the case in which the class is not present, in which case this method might return something arbitrary likeObject[].class.
-
getMappingMetamodel
TheMappingMetamodel.- Specified by:
getMappingMetamodelin interfaceBindingContext
-
getJpaMetamodel
TheJpaMetamodel.- Specified by:
getJpaMetamodelin interfaceBindingContext
-