Package org.hibernate.query.sql.internal
Class SqlTranslationEngineImpl
java.lang.Object
org.hibernate.query.sql.internal.SqlTranslationEngineImpl
- All Implemented Interfaces:
SqlTranslationEngine,SqlAstCreationContext,BindingContext
-
Constructor Summary
ConstructorsConstructorDescriptionSqlTranslationEngineImpl(SessionFactoryImplementor factory, TypeConfiguration typeConfiguration, Map<String, FetchProfile> fetchProfiles) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetFetchProfile(String name) Obtain the definition of a namedFetchProfile.The runtimeMappingMetamodelImplementorWhen creatingFetchreferences, defines a limit to how deep we should join for fetches.Avoid calling this method directly, as much as possible.booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.type.BindingContext
resolveExpressibleMethods inherited from interface org.hibernate.sql.ast.spi.SqlAstCreationContext
getDialect, getSqmFunctionRegistry, getWrapperOptions
-
Constructor Details
-
SqlTranslationEngineImpl
public SqlTranslationEngineImpl(SessionFactoryImplementor factory, TypeConfiguration typeConfiguration, Map<String, FetchProfile> fetchProfiles)
-
-
Method Details
-
getTypeConfiguration
- Specified by:
getTypeConfigurationin interfaceBindingContext
-
getSessionFactory
Description copied from interface:SqlAstCreationContextAvoid calling this method directly, as much as possible. SQL AST creation should not depend on the existence of a session factory, so if you need to obtain this object, there's something wrong with the design.Currently this is only called when creating a
TableGroup, but we will introduce a new sort of creation context for that, probably.- Specified by:
getSessionFactoryin interfaceSqlAstCreationContext
-
getMappingMetamodel
Description copied from interface:SqlAstCreationContextThe runtimeMappingMetamodelImplementor- Specified by:
getMappingMetamodelin interfaceBindingContext- Specified by:
getMappingMetamodelin interfaceSqlAstCreationContext
-
getMaximumFetchDepth
Description copied from interface:SqlAstCreationContextWhen creatingFetchreferences, defines a limit to how deep we should join for fetches.- Specified by:
getMaximumFetchDepthin interfaceSqlAstCreationContext
-
isJpaQueryComplianceEnabled
public boolean isJpaQueryComplianceEnabled()- Specified by:
isJpaQueryComplianceEnabledin interfaceSqlAstCreationContext- See Also:
-
getJpaMetamodel
- Specified by:
getJpaMetamodelin interfaceBindingContext
-
getFetchProfile
Description copied from interface:SqlAstCreationContextObtain the definition of a namedFetchProfile.- Specified by:
getFetchProfilein interfaceSqlAstCreationContext- Parameters:
name- The name of the fetch profile
-
containsFetchProfileDefinition
- Specified by:
containsFetchProfileDefinitionin interfaceSqlTranslationEngine
-
getDefinedFetchProfileNames
- Specified by:
getDefinedFetchProfileNamesin interfaceSqlTranslationEngine
-