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 int
DEFAULT_QUERY_PLAN_MAX_COUNT
The default soft reference count.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
static QueryEngine
from(SessionFactoryImplementor sessionFactory, MetadataImplementor metadata)
SqmCriteriaNodeBuilder
getCriteriaBuilder()
HqlTranslator
getHqlTranslator()
QueryInterpretationCache
getInterpretationCache()
NamedObjectRepository
getNamedObjectRepository()
NativeQueryInterpreter
getNativeQueryInterpreter()
SqmFunctionRegistry
getSqmFunctionRegistry()
SqmTranslatorFactory
getSqmTranslatorFactory()
TypeConfiguration
getTypeConfiguration()
void
prepare(SessionFactoryImplementor sessionFactory, Metadata bootMetamodel)
void
validateNamedQueries()
-
-
-
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()
-
-