Package org.hibernate.query.sql.internal
Class SqlTranslationEngineImpl
java.lang.Object
org.hibernate.query.sql.internal.SqlTranslationEngineImpl
- All Implemented Interfaces:
BindingContext
,SqlTranslationEngine
,SqlAstCreationContext
-
Constructor Summary
ConstructorsConstructorDescriptionSqlTranslationEngineImpl
(SessionFactoryImplementor factory, TypeConfiguration typeConfiguration, Map<String, FetchProfile> fetchProfiles) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getFetchProfile
(String name) Obtain the definition of a namedFetchProfile
.The runtimeMappingMetamodelImplementor
When creatingFetch
references, defines a limit to how deep we should join for fetches.Avoid calling this method directly, as much as possible.boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getTypeConfiguration
in interfaceBindingContext
-
getSessionFactory
Description copied from interface:SqlAstCreationContext
Avoid 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:
getSessionFactory
in interfaceSqlAstCreationContext
-
getMappingMetamodel
Description copied from interface:SqlAstCreationContext
The runtimeMappingMetamodelImplementor
- Specified by:
getMappingMetamodel
in interfaceBindingContext
- Specified by:
getMappingMetamodel
in interfaceSqlAstCreationContext
-
getMaximumFetchDepth
Description copied from interface:SqlAstCreationContext
When creatingFetch
references, defines a limit to how deep we should join for fetches.- Specified by:
getMaximumFetchDepth
in interfaceSqlAstCreationContext
-
isJpaQueryComplianceEnabled
public boolean isJpaQueryComplianceEnabled()- Specified by:
isJpaQueryComplianceEnabled
in interfaceSqlAstCreationContext
- See Also:
-
getJpaMetamodel
- Specified by:
getJpaMetamodel
in interfaceBindingContext
-
getFetchProfile
Description copied from interface:SqlAstCreationContext
Obtain the definition of a namedFetchProfile
.- Specified by:
getFetchProfile
in interfaceSqlAstCreationContext
- Parameters:
name
- The name of the fetch profile
-
containsFetchProfileDefinition
- Specified by:
containsFetchProfileDefinition
in interfaceSqlTranslationEngine
-
getDefinedFetchProfileNames
- Specified by:
getDefinedFetchProfileNames
in interfaceSqlTranslationEngine
-