Package org.hibernate.query.spi
Class QueryEngine
- java.lang.Object
-
- org.hibernate.query.spi.QueryEngine
-
@Incubating public class QueryEngine extends Object
Aggregation and encapsulation of the components Hibernate uses to execute queries (HQL, Criteria and native)
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_QUERY_PLAN_MAX_COUNTThe default soft reference count.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static QueryEnginefrom(SessionFactoryImplementor sessionFactory, MetadataImplementor metadata)SqmCriteriaNodeBuildergetCriteriaBuilder()HqlTranslatorgetHqlTranslator()QueryInterpretationCachegetInterpretationCache()NamedObjectRepositorygetNamedObjectRepository()NativeQueryInterpretergetNativeQueryInterpreter()SqmFunctionRegistrygetSqmFunctionRegistry()SqmTranslatorFactorygetSqmTranslatorFactory()TypeConfigurationgetTypeConfiguration()voidprepare(SessionFactoryImplementor sessionFactory, Metadata bootMetamodel)voidvalidateNamedQueries()
-
-
-
Field Detail
-
DEFAULT_QUERY_PLAN_MAX_COUNT
public static final int DEFAULT_QUERY_PLAN_MAX_COUNT
The default soft reference count.- See Also:
- Constant Field Values
-
-
Method Detail
-
from
public static QueryEngine from(SessionFactoryImplementor sessionFactory, MetadataImplementor metadata)
-
prepare
public void prepare(SessionFactoryImplementor sessionFactory, Metadata bootMetamodel)
-
validateNamedQueries
public void validateNamedQueries()
-
getNamedObjectRepository
public NamedObjectRepository getNamedObjectRepository()
-
getCriteriaBuilder
public SqmCriteriaNodeBuilder getCriteriaBuilder()
-
getHqlTranslator
public HqlTranslator getHqlTranslator()
-
getSqmTranslatorFactory
public SqmTranslatorFactory getSqmTranslatorFactory()
-
getNativeQueryInterpreter
public NativeQueryInterpreter getNativeQueryInterpreter()
-
getInterpretationCache
public QueryInterpretationCache getInterpretationCache()
-
getSqmFunctionRegistry
public SqmFunctionRegistry getSqmFunctionRegistry()
-
getTypeConfiguration
public TypeConfiguration getTypeConfiguration()
-
close
public void close()
-
-