Class MockSessionFactory

java.lang.Object
org.hibernate.processor.validation.MockSessionFactory
All Implemented Interfaces:
EntityManagerFactory, Serializable, AutoCloseable, Referenceable, org.hibernate.boot.model.FunctionContributions, org.hibernate.boot.spi.BootstrapContext, org.hibernate.boot.spi.MetadataBuildingContext, org.hibernate.boot.spi.MetadataBuildingOptions, org.hibernate.boot.spi.SessionFactoryOptions, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.metamodel.RuntimeMetamodels, org.hibernate.metamodel.spi.RuntimeMetamodelsImplementor, org.hibernate.metamodel.spi.RuntimeModelCreationContext, org.hibernate.query.spi.QueryEngine, org.hibernate.query.spi.QueryEngineOptions, org.hibernate.SessionFactory, org.hibernate.type.BindingContext, org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators, org.hibernate.type.MappingContext
Direct Known Subclasses:
ProcessorSessionFactory

public abstract class MockSessionFactory extends Object implements org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.boot.spi.SessionFactoryOptions, org.hibernate.query.spi.QueryEngine, org.hibernate.boot.model.FunctionContributions, org.hibernate.boot.spi.MetadataBuildingOptions, org.hibernate.boot.spi.MetadataBuildingContext, org.hibernate.metamodel.spi.RuntimeModelCreationContext, org.hibernate.boot.spi.BootstrapContext, org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators, org.hibernate.metamodel.spi.RuntimeMetamodelsImplementor
See Also:
  • Field Summary

    Fields inherited from interface org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators

    NO_COLUMN_LENGTH, NO_COLUMN_PRECISION, NO_COLUMN_SCALE

    Fields inherited from interface org.hibernate.query.spi.QueryEngine

    DEFAULT_QUERY_PLAN_MAX_COUNT
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addObserver(org.hibernate.SessionFactoryObserver observer)
     
    boolean
     
    void
     
    org.hibernate.graph.spi.RootGraphImplementor<?>
     
    org.hibernate.audit.AuditStrategy
     
    org.hibernate.boot.spi.MetadataImplementor
     
    org.hibernate.boot.spi.BootstrapContext
     
    org.hibernate.boot.spi.MetadataBuildingOptions
     
    org.hibernate.cache.spi.CacheImplementor
     
    org.hibernate.boot.registry.classloading.spi.ClassLoaderService
     
    org.hibernate.query.sqm.NodeBuilder
     
    org.hibernate.query.criteria.ValueHandlingMode
     
    org.hibernate.context.spi.CurrentTenantIdentifierResolver<Object>
     
    org.hibernate.CustomEntityDirtinessStrategy
     
    org.hibernate.type.TimeZoneStorageStrategy
     
     
    org.hibernate.dialect.Dialect
     
    org.hibernate.metamodel.spi.MappingMetamodelImplementor
     
    org.hibernate.boot.spi.EffectiveMappingDefaults
     
    org.hibernate.EntityNameResolver[]
     
    org.hibernate.proxy.EntityNotFoundDelegate
     
    org.hibernate.query.sqm.function.SqmFunctionRegistry
     
    org.hibernate.query.hql.HqlTranslator
     
     
    org.hibernate.type.Type
     
    org.hibernate.query.spi.ImmutableEntityUpdateQueryHandlingMode
     
    org.hibernate.boot.model.naming.ImplicitNamingStrategy
     
    org.hibernate.query.spi.QueryInterpretationCache
     
    org.hibernate.engine.jdbc.spi.JdbcServices
     
    org.hibernate.jpa.spi.MutableJpaCompliance
     
    protected abstract String
     
    org.hibernate.metamodel.model.domain.spi.JpaMetamodelImplementor
     
    org.hibernate.boot.spi.MappingDefaults
     
    org.hibernate.metamodel.spi.MappingMetamodelImplementor
     
     
    org.hibernate.metamodel.spi.MappingMetamodelImplementor
     
     
    org.hibernate.query.named.NamedObjectRepository
     
    org.hibernate.engine.query.spi.NativeQueryInterpreter
     
    org.hibernate.boot.model.naming.PhysicalNamingStrategy
     
    int
     
    int
     
    int
     
    int
     
    int
     
    org.hibernate.query.spi.QueryEngine
     
    org.hibernate.type.Type
    getReferencedPropertyType(String className, String propertyName)
     
    org.hibernate.metamodel.spi.RuntimeMetamodelsImplementor
     
    org.hibernate.boot.registry.internal.StandardServiceRegistryImpl
     
    org.hibernate.engine.spi.SessionFactoryImplementor
     
     
    org.hibernate.SessionFactoryObserver[]
     
    org.hibernate.boot.spi.SessionFactoryOptions
     
     
    org.hibernate.boot.model.relational.SqlStringGenerationContext
     
    org.hibernate.query.sql.spi.SqlTranslationEngine
     
    org.hibernate.query.sqm.function.SqmFunctionRegistry
     
    org.hibernate.query.sqm.sql.SqmTranslatorFactory
     
    org.hibernate.stat.spi.StatisticsImplementor
     
    protected abstract String
    getSupertype(String entityName)
     
    org.hibernate.temporal.TemporalTableStrategy
     
    org.hibernate.type.descriptor.java.JavaType<Object>
     
    org.hibernate.type.spi.TypeConfiguration
     
     
    org.hibernate.type.BasicType<?>
     
    boolean
     
    boolean
     
    protected abstract boolean
    isEntity(String entityName)
     
    boolean
     
    boolean
     
    boolean
     
    protected abstract boolean
    isSubtype(String entityName, String subtypeEntityName)
     
    boolean
     
    void
    setCheckNullability(boolean enabled)
     
    void
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.hibernate.type.BindingContext

    resolveExpressible

    Methods inherited from interface org.hibernate.boot.spi.BootstrapContext

    findAdHocBasicType, getArchiveDescriptorFactory, getAttributeConverters, getAuxiliaryDatabaseObjectList, getCacheRegionDefinitions, getClassLoaderAccess, getConfigurationService, getCustomTypeProducer, getJandexView, getJpaTempClassLoader, getManagedBeanRegistry, getMetadataBuildingOptions, getModelsContext, getRepresentationStrategySelector, getScanEnvironment, getScanner, getScanOptions, getSqlFunctions, isJpaBootstrap, markAsJpaBootstrap, registerAdHocBasicType, release, resolveAdHocBasicType

    Methods inherited from interface org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators

    getColumnLength, getColumnPrecision, getColumnScale, getDefaultZonedTimeSqlType, getDefaultZonedTimestampSqlType, getEnumeratedType, getExplicitJdbcTypeCode, getJdbcType, getPreferredSqlTypeCodeForArray, getTemporalPrecision, isLob, isNationalized, preferJdbcDatetimeTypes, resolveJdbcTypeCode

    Methods inherited from interface org.hibernate.boot.spi.MetadataBuildingContext

    getCurrentContributorName, getMetadataCollector, getObjectNameNormalizer, getTypeDefinitionRegistry

    Methods inherited from interface org.hibernate.boot.spi.MetadataBuildingOptions

    createImplicitDiscriminatorsForJoinedInheritance, getBasicTypeRegistrations, getColumnOrderingStrategy, getCompositeUserTypes, getDefaultTimeZoneStorage, getImplicitCacheAccessType, getManagedTypeRepresentationResolver, getPersistentCollectionRepresentationResolver, getSchemaCharset, getSharedCacheMode, getTimeZoneSupport, getWrapperArrayHandling, ignoreExplicitDiscriminatorsForJoinedInheritance, isAllowExtensionsInCdi, isMultiTenancyEnabled, isNoConstraintByDefault, isXmlMappingEnabled, shouldImplicitlyForceDiscriminatorInSelect, useNationalizedCharacterData

    Methods inherited from interface org.hibernate.query.spi.QueryEngine

    interpretHql

    Methods inherited from interface org.hibernate.query.spi.QueryEngineOptions

    getCustomHqlTranslator, getCustomSqlFunctionMap, getCustomSqmFunctionRegistry, getCustomSqmMultiTableInsertStrategy, getCustomSqmMultiTableMutationStrategy, getCustomSqmTranslatorFactory, isJsonFunctionsEnabled, isPortableIntegerDivisionEnabled, isXmlFunctionsEnabled, resolveCustomSqmMultiTableInsertStrategy, resolveCustomSqmMultiTableMutationStrategy

    Methods inherited from interface Referenceable

    getReference

    Methods inherited from interface org.hibernate.metamodel.RuntimeMetamodels

    getEntityMappingType, getEntityMappingType, getImportedName, getPluralAttributeMapping

    Methods inherited from interface org.hibernate.metamodel.spi.RuntimeModelCreationContext

    getGenerators, getGeneratorSettings, getJavaTypeRegistry, getMetadata, getOrCreateIdGenerator

    Methods inherited from interface org.hibernate.SessionFactory

    addNamedQuery, containsFetchProfileDefinition, createEntityManager, createEntityManager, createEntityManager, createEntityManager, findEntityGraphsByType, fromSession, fromStatelessSession, fromStatelessTransaction, fromTransaction, getCurrentSession, getDefinedFetchProfileNames, getJndiName, getSchemaManager, inSession, inStatelessSession, inStatelessTransaction, inTransaction, openStatelessSession, openStatelessSession, withStatelessOptions

    Methods inherited from interface org.hibernate.engine.spi.SessionFactoryImplementor

    bestGuessEntityName, createEntityGraph, createGraphForDynamicEntity, getAutoEnabledFilters, getChangesetCoordinator, getEntityCopyObserver, getEventEngine, getEventListenerGroups, getEventListenerRegistry, getFetchProfile, getFilterDefinition, getGenerator, getJdbcSelectWithActionsBuilder, getJdbcValuesMappingProducerProvider, getManagedBeanRegistry, getParameterMarkerStrategy, getWrapperOptions, openSession, openTemporarySession, parseEntityGraph, parseEntityGraph, parseEntityGraph, resolveTenantIdentifier, withOptions

    Methods inherited from interface org.hibernate.boot.spi.SessionFactoryOptions

    areJPACallbacksEnabled, buildSessionEventListeners, doesConnectionProviderDisableAutoCommit, getBaselineSessionEventsListenerBuilder, getBeanManagerReference, getCacheRegionPrefix, getCacheRetrieveMode, getCacheStoreMode, getDefaultBatchFetchSize, getDefaultCatalog, getDefaultLockOptions, getDefaultNullPrecedence, getDefaultSchema, getDefaultSessionProperties, getDefaultTenantIdentifierJavaType, getGraphParserMode, getInitialSessionCacheMode, getInitialSessionFlushMode, getInterceptor, getJdbcBatchSize, getJdbcFetchSize, getJdbcTimeZone, getJsonFormatMapper, getNativeJdbcParametersIgnored, getPhysicalConnectionHandlingMode, getQueryCacheLayout, getQueryStatisticsMaxSize, getSchemaAutoTooling, getStatelessInterceptorImplementorSupplier, getStatementInspector, getTempTableDdlTransactionHandling, getTenantCredentialsMapper, getTenantSchemaMapper, getTimestampsCacheFactory, getValidatorFactoryReference, getXmlFormatMapper, inClauseParameterPaddingEnabled, isAllowOutOfTransactionUpdateOperations, isAllowRefreshDetachedEntity, isAutoCloseSessionEnabled, isAutoEvictCollectionCache, isCheckNullability, isCollectionsInDefaultFetchGroupEnabled, isCommentsEnabled, isCriteriaCopyTreeEnabled, isCriteriaPlanCacheEnabled, isDirectReferenceCacheEntriesEnabled, isFailOnPaginationOverCollectionFetchEnabled, isFlushBeforeCompletionEnabled, isGetGeneratedKeysEnabled, isIdentifierRollbackEnabled, isInitializeLazyStateOutsideTransactionsEnabled, isJpaBootstrap, isJtaTrackByThread, isJtaTransactionAccessEnabled, isMinimalPutsEnabled, isMultiTenancyEnabled, isNamedQueryStartupCheckingEnabled, isOrderInsertsEnabled, isOrderUpdatesEnabled, isPassProcedureParameterNames, isPreferJdbcDatetimeTypesInNativeQueriesEnabled, isPreferUserTransaction, isQueryCacheEnabled, isReleaseResourcesOnCloseEnabled, isScrollableResultSetsEnabled, isSecondLevelCacheEnabled, isSessionFactoryNameAlsoJndiName, isStatisticsEnabled, isStructuredCacheEntriesEnabled, isSubselectFetchEnabled, isUnownedAssociationTransientCheck, isUseOfJdbcNamedParametersEnabled
  • Constructor Details

    • MockSessionFactory

      public MockSessionFactory()
  • Method Details

    • getTypeConfiguration

      public org.hibernate.type.spi.TypeConfiguration getTypeConfiguration()
      Specified by:
      getTypeConfiguration in interface org.hibernate.type.BindingContext
      Specified by:
      getTypeConfiguration in interface org.hibernate.boot.spi.BootstrapContext
      Specified by:
      getTypeConfiguration in interface org.hibernate.boot.model.FunctionContributions
      Specified by:
      getTypeConfiguration in interface org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators
      Specified by:
      getTypeConfiguration in interface org.hibernate.boot.spi.MetadataBuildingOptions
      Specified by:
      getTypeConfiguration in interface org.hibernate.metamodel.spi.RuntimeModelCreationContext
      Specified by:
      getTypeConfiguration in interface org.hibernate.engine.spi.SessionFactoryImplementor
    • getClassLoaderService

      public org.hibernate.boot.registry.classloading.spi.ClassLoaderService getClassLoaderService()
      Specified by:
      getClassLoaderService in interface org.hibernate.boot.spi.BootstrapContext
      Specified by:
      getClassLoaderService in interface org.hibernate.query.spi.QueryEngine
      Specified by:
      getClassLoaderService in interface org.hibernate.engine.spi.SessionFactoryImplementor
    • getTemporalTableStrategy

      public org.hibernate.temporal.TemporalTableStrategy getTemporalTableStrategy()
      Specified by:
      getTemporalTableStrategy in interface org.hibernate.boot.spi.MetadataBuildingContext
      Specified by:
      getTemporalTableStrategy in interface org.hibernate.boot.spi.SessionFactoryOptions
    • getAuditStrategy

      public org.hibernate.audit.AuditStrategy getAuditStrategy()
      Specified by:
      getAuditStrategy in interface org.hibernate.boot.spi.MetadataBuildingContext
      Specified by:
      getAuditStrategy in interface org.hibernate.boot.spi.SessionFactoryOptions
    • addObserver

      public void addObserver(org.hibernate.SessionFactoryObserver observer)
      Specified by:
      addObserver in interface org.hibernate.engine.spi.SessionFactoryImplementor
    • getBuildingOptions

      public org.hibernate.boot.spi.MetadataBuildingOptions getBuildingOptions()
      Specified by:
      getBuildingOptions in interface org.hibernate.boot.spi.MetadataBuildingContext
    • getPhysicalNamingStrategy

      public org.hibernate.boot.model.naming.PhysicalNamingStrategy getPhysicalNamingStrategy()
      Specified by:
      getPhysicalNamingStrategy in interface org.hibernate.boot.spi.MetadataBuildingOptions
    • getImplicitNamingStrategy

      public org.hibernate.boot.model.naming.ImplicitNamingStrategy getImplicitNamingStrategy()
      Specified by:
      getImplicitNamingStrategy in interface org.hibernate.boot.spi.MetadataBuildingOptions
    • isEntity

      protected abstract boolean isEntity(String entityName)
    • isSubtype

      protected abstract boolean isSubtype(String entityName, String subtypeEntityName)
    • getSupertype

      protected abstract String getSupertype(String entityName)
    • getIdentifierType

      public org.hibernate.type.Type getIdentifierType(String className) throws org.hibernate.MappingException
      Specified by:
      getIdentifierType in interface org.hibernate.type.MappingContext
      Throws:
      org.hibernate.MappingException
    • getVersionType

      public org.hibernate.type.BasicType<?> getVersionType(String className) throws org.hibernate.MappingException
      Throws:
      org.hibernate.MappingException
    • getIdentifierPropertyName

      public String getIdentifierPropertyName(String className) throws org.hibernate.MappingException
      Specified by:
      getIdentifierPropertyName in interface org.hibernate.type.MappingContext
      Throws:
      org.hibernate.MappingException
    • getReferencedPropertyType

      public org.hibernate.type.Type getReferencedPropertyType(String className, String propertyName) throws org.hibernate.MappingException
      Specified by:
      getReferencedPropertyType in interface org.hibernate.type.MappingContext
      Throws:
      org.hibernate.MappingException
    • getMetamodel

      public org.hibernate.metamodel.spi.MappingMetamodelImplementor getMetamodel()
      Specified by:
      getMetamodel in interface EntityManagerFactory
    • getServiceRegistry

      public org.hibernate.boot.registry.internal.StandardServiceRegistryImpl getServiceRegistry()
      Specified by:
      getServiceRegistry in interface org.hibernate.boot.spi.BootstrapContext
      Specified by:
      getServiceRegistry in interface org.hibernate.boot.model.FunctionContributions
      Specified by:
      getServiceRegistry in interface org.hibernate.boot.spi.MetadataBuildingOptions
      Specified by:
      getServiceRegistry in interface org.hibernate.metamodel.spi.RuntimeModelCreationContext
      Specified by:
      getServiceRegistry in interface org.hibernate.engine.spi.SessionFactoryImplementor
      Specified by:
      getServiceRegistry in interface org.hibernate.boot.spi.SessionFactoryOptions
    • getJdbcServices

      public org.hibernate.engine.jdbc.spi.JdbcServices getJdbcServices()
      Specified by:
      getJdbcServices in interface org.hibernate.metamodel.spi.RuntimeModelCreationContext
      Specified by:
      getJdbcServices in interface org.hibernate.engine.spi.SessionFactoryImplementor
    • getName

      public String getName()
      Specified by:
      getName in interface EntityManagerFactory
      Specified by:
      getName in interface org.hibernate.SessionFactory
    • getSessionFactoryOptions

      public org.hibernate.boot.spi.SessionFactoryOptions getSessionFactoryOptions()
      Specified by:
      getSessionFactoryOptions in interface org.hibernate.metamodel.spi.RuntimeModelCreationContext
      Specified by:
      getSessionFactoryOptions in interface org.hibernate.SessionFactory
      Specified by:
      getSessionFactoryOptions in interface org.hibernate.engine.spi.SessionFactoryImplementor
    • getDefinedFilterNames

      public Set<String> getDefinedFilterNames()
      Specified by:
      getDefinedFilterNames in interface org.hibernate.SessionFactory
    • getCache

      public org.hibernate.cache.spi.CacheImplementor getCache()
      Specified by:
      getCache in interface EntityManagerFactory
      Specified by:
      getCache in interface org.hibernate.metamodel.spi.RuntimeModelCreationContext
      Specified by:
      getCache in interface org.hibernate.SessionFactory
      Specified by:
      getCache in interface org.hibernate.engine.spi.SessionFactoryImplementor
    • getEntityNotFoundDelegate

      public org.hibernate.proxy.EntityNotFoundDelegate getEntityNotFoundDelegate()
      Specified by:
      getEntityNotFoundDelegate in interface org.hibernate.engine.spi.SessionFactoryImplementor
      Specified by:
      getEntityNotFoundDelegate in interface org.hibernate.boot.spi.SessionFactoryOptions
    • getCustomEntityDirtinessStrategy

      public org.hibernate.CustomEntityDirtinessStrategy getCustomEntityDirtinessStrategy()
      Specified by:
      getCustomEntityDirtinessStrategy in interface org.hibernate.engine.spi.SessionFactoryImplementor
      Specified by:
      getCustomEntityDirtinessStrategy in interface org.hibernate.boot.spi.SessionFactoryOptions
    • getCurrentTenantIdentifierResolver

      public org.hibernate.context.spi.CurrentTenantIdentifierResolver<Object> getCurrentTenantIdentifierResolver()
      Specified by:
      getCurrentTenantIdentifierResolver in interface org.hibernate.engine.spi.SessionFactoryImplementor
      Specified by:
      getCurrentTenantIdentifierResolver in interface org.hibernate.boot.spi.SessionFactoryOptions
    • getTenantIdentifierJavaType

      public org.hibernate.type.descriptor.java.JavaType<Object> getTenantIdentifierJavaType()
      Specified by:
      getTenantIdentifierJavaType in interface org.hibernate.engine.spi.SessionFactoryImplementor
    • isPreferJavaTimeJdbcTypesEnabled

      public boolean isPreferJavaTimeJdbcTypesEnabled()
      Specified by:
      isPreferJavaTimeJdbcTypesEnabled in interface org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators
      Specified by:
      isPreferJavaTimeJdbcTypesEnabled in interface org.hibernate.boot.spi.MetadataBuildingContext
      Specified by:
      isPreferJavaTimeJdbcTypesEnabled in interface org.hibernate.boot.spi.SessionFactoryOptions
    • isPreferNativeEnumTypesEnabled

      public boolean isPreferNativeEnumTypesEnabled()
      Specified by:
      isPreferNativeEnumTypesEnabled in interface org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators
      Specified by:
      isPreferNativeEnumTypesEnabled in interface org.hibernate.boot.spi.MetadataBuildingContext
      Specified by:
      isPreferNativeEnumTypesEnabled in interface org.hibernate.boot.spi.SessionFactoryOptions
    • isPreferLocaleLanguageTagEnabled

      public boolean isPreferLocaleLanguageTagEnabled()
      Specified by:
      isPreferLocaleLanguageTagEnabled in interface org.hibernate.boot.spi.MetadataBuildingContext
      Specified by:
      isPreferLocaleLanguageTagEnabled in interface org.hibernate.boot.spi.SessionFactoryOptions
    • isXmlFormatMapperLegacyFormatEnabled

      public boolean isXmlFormatMapperLegacyFormatEnabled()
      Specified by:
      isXmlFormatMapperLegacyFormatEnabled in interface org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators
      Specified by:
      isXmlFormatMapperLegacyFormatEnabled in interface org.hibernate.boot.spi.MetadataBuildingOptions
      Specified by:
      isXmlFormatMapperLegacyFormatEnabled in interface org.hibernate.boot.spi.SessionFactoryOptions
    • getCriteriaValueHandlingMode

      public org.hibernate.query.criteria.ValueHandlingMode getCriteriaValueHandlingMode()
      Specified by:
      getCriteriaValueHandlingMode in interface org.hibernate.query.spi.QueryEngineOptions
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface EntityManagerFactory
      Specified by:
      close in interface org.hibernate.query.spi.QueryEngine
      Specified by:
      close in interface org.hibernate.SessionFactory
    • findEntityGraphByName

      public org.hibernate.graph.spi.RootGraphImplementor<?> findEntityGraphByName(String s)
      Specified by:
      findEntityGraphByName in interface org.hibernate.SessionFactory
      Specified by:
      findEntityGraphByName in interface org.hibernate.engine.spi.SessionFactoryImplementor
    • getNativeQueryInterpreter

      public org.hibernate.engine.query.spi.NativeQueryInterpreter getNativeQueryInterpreter()
      Specified by:
      getNativeQueryInterpreter in interface org.hibernate.query.spi.QueryEngine
    • getInterpretationCache

      public org.hibernate.query.spi.QueryInterpretationCache getInterpretationCache()
      Specified by:
      getInterpretationCache in interface org.hibernate.query.spi.QueryEngine
    • getStatistics

      public org.hibernate.stat.spi.StatisticsImplementor getStatistics()
      Specified by:
      getStatistics in interface org.hibernate.SessionFactory
      Specified by:
      getStatistics in interface org.hibernate.engine.spi.SessionFactoryImplementor
    • getSqmFunctionRegistry

      public org.hibernate.query.sqm.function.SqmFunctionRegistry getSqmFunctionRegistry()
      Specified by:
      getSqmFunctionRegistry in interface org.hibernate.query.spi.QueryEngine
    • getCriteriaBuilder

      public org.hibernate.query.sqm.NodeBuilder getCriteriaBuilder()
      Specified by:
      getCriteriaBuilder in interface EntityManagerFactory
      Specified by:
      getCriteriaBuilder in interface org.hibernate.query.spi.QueryEngine
      Specified by:
      getCriteriaBuilder in interface org.hibernate.SessionFactory
    • validateNamedQueries

      public void validateNamedQueries()
      Specified by:
      validateNamedQueries in interface org.hibernate.query.spi.QueryEngine
    • getNamedObjectRepository

      public org.hibernate.query.named.NamedObjectRepository getNamedObjectRepository()
      Specified by:
      getNamedObjectRepository in interface org.hibernate.query.spi.QueryEngine
    • getHqlTranslator

      public org.hibernate.query.hql.HqlTranslator getHqlTranslator()
      Specified by:
      getHqlTranslator in interface org.hibernate.query.spi.QueryEngine
    • getSqmTranslatorFactory

      public org.hibernate.query.sqm.sql.SqmTranslatorFactory getSqmTranslatorFactory()
      Specified by:
      getSqmTranslatorFactory in interface org.hibernate.query.spi.QueryEngine
    • getQueryEngine

      public org.hibernate.query.spi.QueryEngine getQueryEngine()
      Specified by:
      getQueryEngine in interface org.hibernate.engine.spi.SessionFactoryImplementor
    • getSqlTranslationEngine

      public org.hibernate.query.sql.spi.SqlTranslationEngine getSqlTranslationEngine()
      Specified by:
      getSqlTranslationEngine in interface org.hibernate.engine.spi.SessionFactoryImplementor
    • getJpaMetamodel

      public org.hibernate.metamodel.model.domain.spi.JpaMetamodelImplementor getJpaMetamodel()
      Specified by:
      getJpaMetamodel in interface org.hibernate.type.BindingContext
      Specified by:
      getJpaMetamodel in interface org.hibernate.metamodel.RuntimeMetamodels
      Specified by:
      getJpaMetamodel in interface org.hibernate.metamodel.spi.RuntimeMetamodelsImplementor
      Specified by:
      getJpaMetamodel in interface org.hibernate.engine.spi.SessionFactoryImplementor
    • getMappingMetamodel

      public org.hibernate.metamodel.spi.MappingMetamodelImplementor getMappingMetamodel()
      Specified by:
      getMappingMetamodel in interface org.hibernate.type.BindingContext
      Specified by:
      getMappingMetamodel in interface org.hibernate.metamodel.RuntimeMetamodels
      Specified by:
      getMappingMetamodel in interface org.hibernate.metamodel.spi.RuntimeMetamodelsImplementor
      Specified by:
      getMappingMetamodel in interface org.hibernate.engine.spi.SessionFactoryImplementor
    • getRuntimeMetamodels

      public org.hibernate.metamodel.spi.RuntimeMetamodelsImplementor getRuntimeMetamodels()
      Specified by:
      getRuntimeMetamodels in interface org.hibernate.engine.spi.SessionFactoryImplementor
    • isClosed

      public boolean isClosed()
      Specified by:
      isClosed in interface org.hibernate.SessionFactory
    • getJpaCompliance

      public org.hibernate.jpa.spi.MutableJpaCompliance getJpaCompliance()
      Specified by:
      getJpaCompliance in interface org.hibernate.boot.spi.BootstrapContext
      Specified by:
      getJpaCompliance in interface org.hibernate.query.spi.QueryEngineOptions
      Specified by:
      getJpaCompliance in interface org.hibernate.boot.spi.SessionFactoryOptions
    • getSessionFactoryName

      public String getSessionFactoryName()
      Specified by:
      getSessionFactoryName in interface org.hibernate.query.spi.QueryEngineOptions
      Specified by:
      getSessionFactoryName in interface org.hibernate.boot.spi.SessionFactoryOptions
    • getUuid

      public String getUuid()
      Specified by:
      getUuid in interface org.hibernate.query.spi.QueryEngineOptions
      Specified by:
      getUuid in interface org.hibernate.engine.spi.SessionFactoryImplementor
      Specified by:
      getUuid in interface org.hibernate.boot.spi.SessionFactoryOptions
    • getSessionFactoryObservers

      public org.hibernate.SessionFactoryObserver[] getSessionFactoryObservers()
      Specified by:
      getSessionFactoryObservers in interface org.hibernate.boot.spi.SessionFactoryOptions
    • getEntityNameResolvers

      public org.hibernate.EntityNameResolver[] getEntityNameResolvers()
      Specified by:
      getEntityNameResolvers in interface org.hibernate.boot.spi.SessionFactoryOptions
    • isDelayBatchFetchLoaderCreationsEnabled

      public boolean isDelayBatchFetchLoaderCreationsEnabled()
      Specified by:
      isDelayBatchFetchLoaderCreationsEnabled in interface org.hibernate.boot.spi.SessionFactoryOptions
    • getMaximumFetchDepth

      public Integer getMaximumFetchDepth()
      Specified by:
      getMaximumFetchDepth in interface org.hibernate.boot.spi.SessionFactoryOptions
    • allowImmutableEntityUpdate

      public boolean allowImmutableEntityUpdate()
      Specified by:
      allowImmutableEntityUpdate in interface org.hibernate.query.spi.QueryEngineOptions
    • getImmutableEntityUpdateQueryHandlingMode

      public org.hibernate.query.spi.ImmutableEntityUpdateQueryHandlingMode getImmutableEntityUpdateQueryHandlingMode()
      Specified by:
      getImmutableEntityUpdateQueryHandlingMode in interface org.hibernate.query.spi.QueryEngineOptions
    • setCheckNullability

      public void setCheckNullability(boolean enabled)
      Specified by:
      setCheckNullability in interface org.hibernate.boot.spi.SessionFactoryOptions
    • getDialect

      public org.hibernate.dialect.Dialect getDialect()
      Specified by:
      getDialect in interface org.hibernate.boot.model.FunctionContributions
      Specified by:
      getDialect in interface org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators
      Specified by:
      getDialect in interface org.hibernate.query.spi.QueryEngine
      Specified by:
      getDialect in interface org.hibernate.metamodel.spi.RuntimeModelCreationContext
    • getPreferredSqlTypeCodeForBoolean

      public int getPreferredSqlTypeCodeForBoolean()
      Specified by:
      getPreferredSqlTypeCodeForBoolean in interface org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators
      Specified by:
      getPreferredSqlTypeCodeForBoolean in interface org.hibernate.boot.spi.MetadataBuildingContext
      Specified by:
      getPreferredSqlTypeCodeForBoolean in interface org.hibernate.boot.spi.SessionFactoryOptions
    • getPreferredSqlTypeCodeForDuration

      public int getPreferredSqlTypeCodeForDuration()
      Specified by:
      getPreferredSqlTypeCodeForDuration in interface org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators
      Specified by:
      getPreferredSqlTypeCodeForDuration in interface org.hibernate.boot.spi.MetadataBuildingContext
      Specified by:
      getPreferredSqlTypeCodeForDuration in interface org.hibernate.boot.spi.SessionFactoryOptions
    • getPreferredSqlTypeCodeForUuid

      public int getPreferredSqlTypeCodeForUuid()
      Specified by:
      getPreferredSqlTypeCodeForUuid in interface org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators
      Specified by:
      getPreferredSqlTypeCodeForUuid in interface org.hibernate.boot.spi.MetadataBuildingContext
      Specified by:
      getPreferredSqlTypeCodeForUuid in interface org.hibernate.boot.spi.SessionFactoryOptions
    • getPreferredSqlTypeCodeForInstant

      public int getPreferredSqlTypeCodeForInstant()
      Specified by:
      getPreferredSqlTypeCodeForInstant in interface org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators
      Specified by:
      getPreferredSqlTypeCodeForInstant in interface org.hibernate.boot.spi.MetadataBuildingContext
      Specified by:
      getPreferredSqlTypeCodeForInstant in interface org.hibernate.boot.spi.SessionFactoryOptions
    • getPreferredSqlTypeCodeForArray

      public int getPreferredSqlTypeCodeForArray()
      Specified by:
      getPreferredSqlTypeCodeForArray in interface org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators
      Specified by:
      getPreferredSqlTypeCodeForArray in interface org.hibernate.boot.spi.MetadataBuildingContext
      Specified by:
      getPreferredSqlTypeCodeForArray in interface org.hibernate.boot.spi.SessionFactoryOptions
    • getSessionFactory

      public org.hibernate.engine.spi.SessionFactoryImplementor getSessionFactory()
      Specified by:
      getSessionFactory in interface org.hibernate.metamodel.spi.RuntimeModelCreationContext
    • getBootstrapContext

      public org.hibernate.boot.spi.BootstrapContext getBootstrapContext()
      Specified by:
      getBootstrapContext in interface org.hibernate.boot.spi.MetadataBuildingContext
      Specified by:
      getBootstrapContext in interface org.hibernate.metamodel.spi.RuntimeModelCreationContext
    • getBootModel

      public org.hibernate.boot.spi.MetadataImplementor getBootModel()
      Specified by:
      getBootModel in interface org.hibernate.metamodel.spi.RuntimeModelCreationContext
    • getDomainModel

      public org.hibernate.metamodel.spi.MappingMetamodelImplementor getDomainModel()
      Specified by:
      getDomainModel in interface org.hibernate.metamodel.spi.RuntimeModelCreationContext
    • getFunctionRegistry

      public org.hibernate.query.sqm.function.SqmFunctionRegistry getFunctionRegistry()
      Specified by:
      getFunctionRegistry in interface org.hibernate.boot.spi.BootstrapContext
      Specified by:
      getFunctionRegistry in interface org.hibernate.boot.model.FunctionContributions
      Specified by:
      getFunctionRegistry in interface org.hibernate.metamodel.spi.RuntimeModelCreationContext
    • getSettings

      public Map<String,Object> getSettings()
      Specified by:
      getSettings in interface org.hibernate.metamodel.spi.RuntimeModelCreationContext
    • getSqlStringGenerationContext

      public org.hibernate.boot.model.relational.SqlStringGenerationContext getSqlStringGenerationContext()
      Specified by:
      getSqlStringGenerationContext in interface org.hibernate.metamodel.spi.RuntimeModelCreationContext
      Specified by:
      getSqlStringGenerationContext in interface org.hibernate.engine.spi.SessionFactoryImplementor
    • getMappingDefaults

      public org.hibernate.boot.spi.MappingDefaults getMappingDefaults()
      Specified by:
      getMappingDefaults in interface org.hibernate.boot.spi.MetadataBuildingOptions
    • getEffectiveDefaults

      public org.hibernate.boot.spi.EffectiveMappingDefaults getEffectiveDefaults()
      Specified by:
      getEffectiveDefaults in interface org.hibernate.boot.spi.MetadataBuildingContext
    • getDefaultTimeZoneStorageStrategy

      public org.hibernate.type.TimeZoneStorageStrategy getDefaultTimeZoneStorageStrategy()
      Specified by:
      getDefaultTimeZoneStorageStrategy in interface org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators
      Specified by:
      getDefaultTimeZoneStorageStrategy in interface org.hibernate.boot.spi.SessionFactoryOptions
    • getJpaEntityName

      protected abstract String getJpaEntityName(String typeName)