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 JpaMetamodel
TheJpaMetamodel
.default MappingMetamodel
TheMappingMetamodel
.default NodeBuilder
TheNodeBuilder
.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 final
constants or toenum
values.- API Note:
- Avoid calling this method, since
Class
objects 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:
getMappingMetamodel
in interfaceBindingContext
-
getJpaMetamodel
TheJpaMetamodel
.- Specified by:
getJpaMetamodel
in interfaceBindingContext
-