Class MockSessionFactory
- java.lang.Object
-
- org.hibernate.processor.validation.MockSessionFactory
-
- All Implemented Interfaces:
EntityManagerFactory,Closeable,Serializable,AutoCloseable,Referenceable,FunctionContributions,BootstrapContext,MetadataBuildingContext,MetadataBuildingOptions,SessionFactoryOptions,Mapping,SessionFactoryImplementor,RuntimeModelCreationContext,PersisterCreationContext,QueryEngine,QueryEngineOptions,QueryParameterBindingTypeResolver,SqmCreationContext,SessionFactory,SqlAstCreationContext,JdbcTypeIndicators
- Direct Known Subclasses:
ProcessorSessionFactory
public abstract class MockSessionFactory extends Object implements SessionFactoryImplementor, QueryEngine, RuntimeModelCreationContext, MetadataBuildingOptions, BootstrapContext, MetadataBuildingContext, FunctionContributions, SessionFactoryOptions, JdbcTypeIndicators
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.engine.spi.SessionFactoryImplementor
SessionFactoryImplementor.DeserializationResolver<T extends SessionFactoryImplementor>
-
-
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 MockSessionFactory()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.boot.spi.BootstrapContext
getArchiveDescriptorFactory, getAttributeConverters, getAuxiliaryDatabaseObjectList, getCacheRegionDefinitions, getClassLoaderAccess, getClassmateContext, getCustomTypeProducer, getJandexView, getJpaTempClassLoader, getMetadataBuildingOptions, getReflectionManager, getRepresentationStrategySelector, getScanEnvironment, getScanner, getScanOptions, getSqlFunctions, isJpaBootstrap, markAsJpaBootstrap, registerAdHocBasicType, release, resolveAdHocBasicType
-
Methods inherited from interface jakarta.persistence.EntityManagerFactory
addNamedEntityGraph, addNamedQuery, createEntityManager, createEntityManager, createEntityManager, createEntityManager, getPersistenceUnitUtil, getProperties, isOpen, unwrap
-
Methods inherited from interface org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators
getColumnLength, getColumnPrecision, getColumnScale, getDefaultZonedTimeSqlType, getDefaultZonedTimestampSqlType, getEnumeratedType, getExplicitJdbcTypeCode, getJdbcType, getTemporalPrecision, isLob, isNationalized, resolveJdbcTypeCode
-
Methods inherited from interface org.hibernate.boot.spi.MetadataBuildingContext
getCurrentContributorName, getMetadataCollector, getObjectNameNormalizer, getTypeDefinitionRegistry
-
Methods inherited from interface org.hibernate.boot.spi.MetadataBuildingOptions
createImplicitDiscriminatorsForJoinedInheritance, disallowExtensionsInCdi, getBasicTypeRegistrations, getColumnOrderingStrategy, getCompositeUserTypes, getDefaultTimeZoneStorage, getImplicitCacheAccessType, getManagedTypeRepresentationResolver, getPersistentCollectionRepresentationResolver, getSchemaCharset, getSharedCacheMode, getSourceProcessOrdering, getTimeZoneSupport, getWrapperArrayHandling, ignoreExplicitDiscriminatorsForJoinedInheritance, isAllowExtensionsInCdi, isMultiTenancyEnabled, isNoConstraintByDefault, isSpecjProprietarySyntaxEnabled, 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
-
Methods inherited from interface javax.naming.Referenceable
getReference
-
Methods inherited from interface org.hibernate.metamodel.spi.RuntimeModelCreationContext
getJavaTypeRegistry, getMetadata
-
Methods inherited from interface org.hibernate.SessionFactory
containsFetchProfileDefinition, findEntityGraphsByType, fromSession, fromStatelessSession, fromStatelessTransaction, fromTransaction, getCurrentSession, getDefinedFetchProfileNames, getSchemaManager, inSession, inStatelessSession, inStatelessTransaction, inTransaction, openStatelessSession, openStatelessSession, withStatelessOptions
-
Methods inherited from interface org.hibernate.engine.spi.SessionFactoryImplementor
bestGuessEntityName, getAutoEnabledFilters, getDeserializationResolver, getEventEngine, getFetchProfile, getFilterDefinition, getGenerator, getIdentifierGenerator, getWrapperOptions, openSession, openTemporarySession, resolveParameterBindType, resolveParameterBindType, withOptions
-
Methods inherited from interface org.hibernate.boot.spi.SessionFactoryOptions
areJPACallbacksEnabled, doesConnectionProviderDisableAutoCommit, getBaselineSessionEventsListenerBuilder, getBeanManagerReference, getCacheRegionPrefix, getCriteriaValueHandlingMode, getDefaultBatchFetchSize, getDefaultCatalog, getDefaultNullPrecedence, getDefaultSchema, getDefaultTenantIdentifierJavaType, getImmutableEntityUpdateQueryHandlingMode, getInterceptor, getJdbcBatchSize, getJdbcFetchSize, getJdbcTimeZone, getJsonFormatMapper, getNativeJdbcParametersIgnored, getPhysicalConnectionHandlingMode, getQueryCacheLayout, getQueryStatisticsMaxSize, getSchemaAutoTooling, getStatelessInterceptorImplementorSupplier, getStatementInspector, getTempTableDdlTransactionHandling, getTimestampsCacheFactory, getValidatorFactoryReference, getXmlFormatMapper, inClauseParameterPaddingEnabled, isAllowOutOfTransactionUpdateOperations, isAllowRefreshDetachedEntity, isAutoCloseSessionEnabled, isAutoEvictCollectionCache, isCheckNullability, isCollectionsInDefaultFetchGroupEnabled, isCommentsEnabled, isCriteriaCopyTreeEnabled, isDirectReferenceCacheEntriesEnabled, isFailOnPaginationOverCollectionFetchEnabled, isFlushBeforeCompletionEnabled, isGetGeneratedKeysEnabled, isIdentifierRollbackEnabled, isInitializeLazyStateOutsideTransactionsEnabled, isJdbcBatchVersionedData, isJpaBootstrap, isJtaTrackByThread, isJtaTransactionAccessEnabled, isMinimalPutsEnabled, isMultiTenancyEnabled, isNamedQueryStartupCheckingEnabled, isOrderInsertsEnabled, isOrderUpdatesEnabled, isPassProcedureParameterNames, isPortableIntegerDivisionEnabled, isPreferUserTransaction, isQueryCacheEnabled, isReleaseResourcesOnCloseEnabled, isScrollableResultSetsEnabled, isSecondLevelCacheEnabled, isSessionFactoryNameAlsoJndiName, isStatisticsEnabled, isStructuredCacheEntriesEnabled, isSubselectFetchEnabled, isUnownedAssociationTransientCheck, isUseOfJdbcNamedParametersEnabled
-
Methods inherited from interface org.hibernate.query.sqm.spi.SqmCreationContext
getNodeBuilder
-
-
-
-
Method Detail
-
getTypeConfiguration
public TypeConfiguration getTypeConfiguration()
Description copied from interface:BootstrapContextTheTypeConfigurationbelonging to thisBootstrapContext.- Specified by:
getTypeConfigurationin interfaceBootstrapContext- Specified by:
getTypeConfigurationin interfaceFunctionContributions- Specified by:
getTypeConfigurationin interfaceJdbcTypeIndicators- Specified by:
getTypeConfigurationin interfaceMetadataBuildingOptions- Specified by:
getTypeConfigurationin interfacePersisterCreationContext- Specified by:
getTypeConfigurationin interfaceQueryEngine- Specified by:
getTypeConfigurationin interfaceQueryParameterBindingTypeResolver- Specified by:
getTypeConfigurationin interfaceRuntimeModelCreationContext- Specified by:
getTypeConfigurationin interfaceSessionFactoryImplementor- Specified by:
getTypeConfigurationin interfaceSqmCreationContext- Returns:
- the
TypeConfigurationbelonging to theBootstrapContext - See Also:
TypeConfiguration
-
addObserver
public void addObserver(SessionFactoryObserver observer)
- Specified by:
addObserverin interfaceSessionFactoryImplementor
-
getBuildingOptions
public MetadataBuildingOptions getBuildingOptions()
Description copied from interface:MetadataBuildingContextAccess to the options specified by theMetadataBuilder- Specified by:
getBuildingOptionsin interfaceMetadataBuildingContext- Returns:
- The options
-
getPhysicalNamingStrategy
public PhysicalNamingStrategy getPhysicalNamingStrategy()
- Specified by:
getPhysicalNamingStrategyin interfaceMetadataBuildingOptions- See Also:
MappingSettings.PHYSICAL_NAMING_STRATEGY
-
getImplicitNamingStrategy
public ImplicitNamingStrategy getImplicitNamingStrategy()
- Specified by:
getImplicitNamingStrategyin interfaceMetadataBuildingOptions- See Also:
MappingSettings.IMPLICIT_NAMING_STRATEGY
-
getIdentifierType
public Type getIdentifierType(String className) throws MappingException
- Specified by:
getIdentifierTypein interfaceMapping- Throws:
MappingException
-
getVersionType
public BasicType<?> getVersionType(String className) throws MappingException
- Throws:
MappingException
-
getIdentifierPropertyName
public String getIdentifierPropertyName(String className) throws MappingException
- Specified by:
getIdentifierPropertyNamein interfaceMapping- Throws:
MappingException
-
getReferencedPropertyType
public Type getReferencedPropertyType(String className, String propertyName) throws MappingException
- Specified by:
getReferencedPropertyTypein interfaceMapping- Throws:
MappingException
-
getMetamodel
public MetamodelImplementor getMetamodel()
- Specified by:
getMetamodelin interfaceEntityManagerFactory- Specified by:
getMetamodelin interfaceSessionFactoryImplementor
-
getServiceRegistry
public StandardServiceRegistryImpl getServiceRegistry()
Description copied from interface:SessionFactoryImplementorAccess to the ServiceRegistry for this SessionFactory.- Specified by:
getServiceRegistryin interfaceBootstrapContext- Specified by:
getServiceRegistryin interfaceFunctionContributions- Specified by:
getServiceRegistryin interfaceMetadataBuildingOptions- Specified by:
getServiceRegistryin interfaceRuntimeModelCreationContext- Specified by:
getServiceRegistryin interfaceSessionFactoryImplementor- Specified by:
getServiceRegistryin interfaceSessionFactoryOptions- Specified by:
getServiceRegistryin interfaceSqlAstCreationContext- Specified by:
getServiceRegistryin interfaceSqmCreationContext- Returns:
- The factory's ServiceRegistry
-
getJdbcServices
public JdbcServices getJdbcServices()
Description copied from interface:SessionFactoryImplementorGet the JdbcServices.- Specified by:
getJdbcServicesin interfaceRuntimeModelCreationContext- Specified by:
getJdbcServicesin interfaceSessionFactoryImplementor- Returns:
- the JdbcServices
-
getName
public String getName()
Description copied from interface:SessionFactoryImplementorAccess to the name (if one) assigned to the SessionFactory- Specified by:
getNamein interfaceSessionFactoryImplementor- Returns:
- The name for the SessionFactory
-
getSessionFactoryOptions
public SessionFactoryOptions getSessionFactoryOptions()
Description copied from interface:SessionFactoryGet the options used to build this factory.- Specified by:
getSessionFactoryOptionsin interfaceRuntimeModelCreationContext- Specified by:
getSessionFactoryOptionsin interfaceSessionFactory- Specified by:
getSessionFactoryOptionsin interfaceSessionFactoryImplementor- Returns:
- The special options used to build the factory.
-
getDefinedFilterNames
public Set<String> getDefinedFilterNames()
Description copied from interface:SessionFactoryObtain the set of names of alldefined filters.- Specified by:
getDefinedFilterNamesin interfaceSessionFactory- Returns:
- The set of filter names given by
FilterDefannotations
-
getCache
public CacheImplementor getCache()
Description copied from interface:SessionFactoryObtain direct access to the underlying cache regions.- Specified by:
getCachein interfaceEntityManagerFactory- Specified by:
getCachein interfaceRuntimeModelCreationContext- Specified by:
getCachein interfaceSessionFactory- Specified by:
getCachein interfaceSessionFactoryImplementor- Returns:
- The direct cache access API.
-
getEntityNotFoundDelegate
public EntityNotFoundDelegate getEntityNotFoundDelegate()
Description copied from interface:SessionFactoryOptionsGet the delegate for handling entity-not-found exception conditions.- Specified by:
getEntityNotFoundDelegatein interfaceSessionFactoryImplementor- Specified by:
getEntityNotFoundDelegatein interfaceSessionFactoryOptions- Returns:
- The specific EntityNotFoundDelegate to use, May be
null
-
getCustomEntityDirtinessStrategy
public CustomEntityDirtinessStrategy getCustomEntityDirtinessStrategy()
- Specified by:
getCustomEntityDirtinessStrategyin interfaceSessionFactoryImplementor- Specified by:
getCustomEntityDirtinessStrategyin interfaceSessionFactoryOptions
-
getCurrentTenantIdentifierResolver
public CurrentTenantIdentifierResolver<Object> getCurrentTenantIdentifierResolver()
- Specified by:
getCurrentTenantIdentifierResolverin interfaceSessionFactoryImplementor- Specified by:
getCurrentTenantIdentifierResolverin interfaceSessionFactoryOptions
-
getTenantIdentifierJavaType
public JavaType<Object> getTenantIdentifierJavaType()
Description copied from interface:SessionFactoryImplementorThe java type to use for a tenant identifier.- Specified by:
getTenantIdentifierJavaTypein interfaceSessionFactoryImplementor
-
isPreferJavaTimeJdbcTypesEnabled
public boolean isPreferJavaTimeJdbcTypesEnabled()
- Specified by:
isPreferJavaTimeJdbcTypesEnabledin interfaceJdbcTypeIndicators- Specified by:
isPreferJavaTimeJdbcTypesEnabledin interfaceMetadataBuildingContext- Specified by:
isPreferJavaTimeJdbcTypesEnabledin interfaceSessionFactoryOptions- See Also:
MappingSettings.JAVA_TIME_USE_DIRECT_JDBC
-
isPreferNativeEnumTypesEnabled
public boolean isPreferNativeEnumTypesEnabled()
- Specified by:
isPreferNativeEnumTypesEnabledin interfaceJdbcTypeIndicators- Specified by:
isPreferNativeEnumTypesEnabledin interfaceMetadataBuildingContext- Specified by:
isPreferNativeEnumTypesEnabledin interfaceSessionFactoryOptions- See Also:
MappingSettings.PREFER_NATIVE_ENUM_TYPES
-
getFastSessionServices
public FastSessionServices getFastSessionServices()
- Specified by:
getFastSessionServicesin interfaceSessionFactoryImplementor- Returns:
- the FastSessionServices instance associated with this SessionFactory
-
close
public void close()
Description copied from interface:SessionFactoryDestroy thisSessionFactoryand release all its resources, including caches and connection pools.It is the responsibility of the application to ensure that there are no open sessions before calling this method as the impact on those sessions is indeterminate.
No-ops if already closed.
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceEntityManagerFactory- Specified by:
closein interfaceQueryEngine- Specified by:
closein interfaceSessionFactory
-
findEntityGraphByName
public RootGraphImplementor<?> findEntityGraphByName(String s)
Description copied from interface:SessionFactoryReturn the rootEntityGraphwith the given name, ornullif there is no graph with the given name.- Specified by:
findEntityGraphByNamein interfaceSessionFactory- Specified by:
findEntityGraphByNamein interfaceSessionFactoryImplementor- Parameters:
s- the name given to someNamedEntityGraph- Returns:
- an instance of
RootGraph - See Also:
EntityManagerFactory.addNamedEntityGraph(java.lang.String, jakarta.persistence.EntityGraph<T>)
-
getNativeQueryInterpreter
public NativeQueryInterpreter getNativeQueryInterpreter()
- Specified by:
getNativeQueryInterpreterin interfaceQueryEngine
-
getInterpretationCache
public QueryInterpretationCache getInterpretationCache()
- Specified by:
getInterpretationCachein interfaceQueryEngine
-
getStatistics
public StatisticsImplementor getStatistics()
Description copied from interface:SessionFactoryRetrieve the statistics for this factory.- Specified by:
getStatisticsin interfaceSessionFactory- Specified by:
getStatisticsin interfaceSessionFactoryImplementor- Returns:
- The statistics.
-
getSqmFunctionRegistry
public SqmFunctionRegistry getSqmFunctionRegistry()
- Specified by:
getSqmFunctionRegistryin interfaceQueryEngine
-
getCriteriaBuilder
public NodeBuilder getCriteriaBuilder()
Description copied from interface:SessionFactory- Specified by:
getCriteriaBuilderin interfaceEntityManagerFactory- Specified by:
getCriteriaBuilderin interfaceQueryEngine- Specified by:
getCriteriaBuilderin interfaceSessionFactory- Specified by:
getCriteriaBuilderin interfaceSessionFactoryImplementor- See Also:
SharedSessionContract.getCriteriaBuilder()
-
validateNamedQueries
public void validateNamedQueries()
- Specified by:
validateNamedQueriesin interfaceQueryEngine
-
getNamedObjectRepository
public NamedObjectRepository getNamedObjectRepository()
- Specified by:
getNamedObjectRepositoryin interfaceQueryEngine
-
getHqlTranslator
public HqlTranslator getHqlTranslator()
- Specified by:
getHqlTranslatorin interfaceQueryEngine
-
getSqmTranslatorFactory
public SqmTranslatorFactory getSqmTranslatorFactory()
- Specified by:
getSqmTranslatorFactoryin interfaceQueryEngine
-
getQueryEngine
public QueryEngine getQueryEngine()
- Specified by:
getQueryEnginein interfaceSessionFactoryImplementor- Specified by:
getQueryEnginein interfaceSqmCreationContext
-
getJpaMetamodel
public JpaMetamodelImplementor getJpaMetamodel()
Description copied from interface:SqmCreationContextAccess to the domain model metadata- Specified by:
getJpaMetamodelin interfaceSqmCreationContext
-
getMappingMetamodel
public MappingMetamodelImplementor getMappingMetamodel()
Description copied from interface:SqlAstCreationContextThe runtime MappingMetamodelImplementor- Specified by:
getMappingMetamodelin interfaceQueryParameterBindingTypeResolver- Specified by:
getMappingMetamodelin interfaceSessionFactoryImplementor- Specified by:
getMappingMetamodelin interfaceSqlAstCreationContext
-
getRuntimeMetamodels
public RuntimeMetamodelsImplementor getRuntimeMetamodels()
- Specified by:
getRuntimeMetamodelsin interfaceSessionFactoryImplementor
-
isClosed
public boolean isClosed()
Description copied from interface:SessionFactoryIs this factory already closed?- Specified by:
isClosedin interfaceSessionFactory- Returns:
- True if this factory is already closed; false otherwise.
-
getJpaCompliance
public MutableJpaCompliance getJpaCompliance()
Description copied from interface:BootstrapContextIn-flight form ofJpaCompliance- Specified by:
getJpaCompliancein interfaceBootstrapContext- Specified by:
getJpaCompliancein interfaceQueryEngineOptions- Specified by:
getJpaCompliancein interfaceSessionFactoryOptions
-
getSessionFactoryName
public String getSessionFactoryName()
Description copied from interface:SessionFactoryOptionsThe name to be used for the SessionFactory. This is used both in:- in-VM serialization
- JNDI binding, depending on
SessionFactoryOptions.isSessionFactoryNameAlsoJndiName()
- Specified by:
getSessionFactoryNamein interfaceSessionFactoryOptions- Returns:
- The SessionFactory name
-
getUuid
public String getUuid()
Description copied from interface:SessionFactoryImplementorGet the UUID for this SessionFactory.The value is generated as a
UUID, but kept as a String.- Specified by:
getUuidin interfaceSessionFactoryImplementor- Specified by:
getUuidin interfaceSessionFactoryOptions- Returns:
- The UUID for this SessionFactory.
- See Also:
SessionFactoryRegistry.getSessionFactory(java.lang.String)
-
getSessionFactoryObservers
public SessionFactoryObserver[] getSessionFactoryObservers()
- Specified by:
getSessionFactoryObserversin interfaceSessionFactoryOptions
-
getEntityNameResolvers
public EntityNameResolver[] getEntityNameResolvers()
- Specified by:
getEntityNameResolversin interfaceSessionFactoryOptions
-
getBatchFetchStyle
public BatchFetchStyle getBatchFetchStyle()
- Specified by:
getBatchFetchStylein interfaceSessionFactoryOptions
-
isDelayBatchFetchLoaderCreationsEnabled
public boolean isDelayBatchFetchLoaderCreationsEnabled()
- Specified by:
isDelayBatchFetchLoaderCreationsEnabledin interfaceSessionFactoryOptions
-
getMaximumFetchDepth
public Integer getMaximumFetchDepth()
Description copied from interface:SqlAstCreationContextWhen creatingFetchreferences, defines a limit to how deep we should join for fetches.- Specified by:
getMaximumFetchDepthin interfaceSessionFactoryOptions- Specified by:
getMaximumFetchDepthin interfaceSqlAstCreationContext
-
setCheckNullability
public void setCheckNullability(boolean enabled)
- Specified by:
setCheckNullabilityin interfaceSessionFactoryOptions
-
getDialect
public Dialect getDialect()
Description copied from interface:FunctionContributionsThe SQL Dialect.- Specified by:
getDialectin interfaceFunctionContributions- Specified by:
getDialectin interfaceJdbcTypeIndicators- Specified by:
getDialectin interfaceRuntimeModelCreationContext
-
getPreferredSqlTypeCodeForBoolean
public int getPreferredSqlTypeCodeForBoolean()
Description copied from interface:JdbcTypeIndicatorsWhen mapping a boolean type to the database what is the preferred SQL type code to use?Returns a key into the
JdbcTypeRegistry.- Specified by:
getPreferredSqlTypeCodeForBooleanin interfaceJdbcTypeIndicators- Specified by:
getPreferredSqlTypeCodeForBooleanin interfaceMetadataBuildingContext- Specified by:
getPreferredSqlTypeCodeForBooleanin interfaceSessionFactoryOptions- See Also:
MappingSettings.PREFERRED_BOOLEAN_JDBC_TYPE,Dialect.getPreferredSqlTypeCodeForBoolean()
-
getPreferredSqlTypeCodeForDuration
public int getPreferredSqlTypeCodeForDuration()
Description copied from interface:JdbcTypeIndicatorsWhen mapping a duration type to the database what is the preferred SQL type code to use?Returns a key into the
JdbcTypeRegistry.- Specified by:
getPreferredSqlTypeCodeForDurationin interfaceJdbcTypeIndicators- Specified by:
getPreferredSqlTypeCodeForDurationin interfaceMetadataBuildingContext- Specified by:
getPreferredSqlTypeCodeForDurationin interfaceSessionFactoryOptions- See Also:
MappingSettings.PREFERRED_DURATION_JDBC_TYPE
-
getPreferredSqlTypeCodeForUuid
public int getPreferredSqlTypeCodeForUuid()
Description copied from interface:JdbcTypeIndicatorsWhen mapping an uuid type to the database what is the preferred SQL type code to use?Returns a key into the
JdbcTypeRegistry.- Specified by:
getPreferredSqlTypeCodeForUuidin interfaceJdbcTypeIndicators- Specified by:
getPreferredSqlTypeCodeForUuidin interfaceMetadataBuildingContext- Specified by:
getPreferredSqlTypeCodeForUuidin interfaceSessionFactoryOptions- See Also:
MappingSettings.PREFERRED_UUID_JDBC_TYPE
-
getPreferredSqlTypeCodeForInstant
public int getPreferredSqlTypeCodeForInstant()
Description copied from interface:JdbcTypeIndicatorsWhen mapping an instant type to the database what is the preferred SQL type code to use?Returns a key into the
JdbcTypeRegistry.- Specified by:
getPreferredSqlTypeCodeForInstantin interfaceJdbcTypeIndicators- Specified by:
getPreferredSqlTypeCodeForInstantin interfaceMetadataBuildingContext- Specified by:
getPreferredSqlTypeCodeForInstantin interfaceSessionFactoryOptions- See Also:
MappingSettings.PREFERRED_INSTANT_JDBC_TYPE
-
getPreferredSqlTypeCodeForArray
public int getPreferredSqlTypeCodeForArray()
Description copied from interface:JdbcTypeIndicatorsWhen mapping a basic array or collection type to the database what is the preferred SQL type code to use?Returns a key into the
JdbcTypeRegistry.- Specified by:
getPreferredSqlTypeCodeForArrayin interfaceJdbcTypeIndicators- Specified by:
getPreferredSqlTypeCodeForArrayin interfaceMetadataBuildingContext- Specified by:
getPreferredSqlTypeCodeForArrayin interfaceSessionFactoryOptions- See Also:
Dialect.getPreferredSqlTypeCodeForArray()
-
getSessionFactory
public SessionFactoryImplementor getSessionFactory()
Description copied from interface:SqlAstCreationContextThe SessionFactory- Specified by:
getSessionFactoryin interfacePersisterCreationContext- Specified by:
getSessionFactoryin interfaceRuntimeModelCreationContext- Specified by:
getSessionFactoryin interfaceSessionFactoryImplementor- Specified by:
getSessionFactoryin interfaceSqlAstCreationContext
-
getBootstrapContext
public BootstrapContext getBootstrapContext()
- Specified by:
getBootstrapContextin interfaceMetadataBuildingContext- Specified by:
getBootstrapContextin interfacePersisterCreationContext- Specified by:
getBootstrapContextin interfaceRuntimeModelCreationContext
-
getBootModel
public MetadataImplementor getBootModel()
- Specified by:
getBootModelin interfaceRuntimeModelCreationContext
-
getDomainModel
public MappingMetamodelImplementor getDomainModel()
- Specified by:
getDomainModelin interfaceRuntimeModelCreationContext
-
getFunctionRegistry
public SqmFunctionRegistry getFunctionRegistry()
Description copied from interface:BootstrapContextTheSqmFunctionRegistrybelonging to thisBootstrapContext.- Specified by:
getFunctionRegistryin interfaceBootstrapContext- Specified by:
getFunctionRegistryin interfaceFunctionContributions- Specified by:
getFunctionRegistryin interfaceRuntimeModelCreationContext- See Also:
SqmFunctionRegistry
-
getSettings
public Map<String,Object> getSettings()
- Specified by:
getSettingsin interfaceRuntimeModelCreationContext
-
getSqlStringGenerationContext
public SqlStringGenerationContext getSqlStringGenerationContext()
- Specified by:
getSqlStringGenerationContextin interfaceRuntimeModelCreationContext- Specified by:
getSqlStringGenerationContextin interfaceSessionFactoryImplementor
-
getIdentifierGeneratorFactory
public IdentifierGeneratorFactory getIdentifierGeneratorFactory()
Description copied from interface:MetadataBuildingOptionsThe service implementingIdentifierGeneratorFactory.- Specified by:
getIdentifierGeneratorFactoryin interfaceBootstrapContext- Specified by:
getIdentifierGeneratorFactoryin interfaceMetadataBuildingOptions
-
getMappingDefaults
public MappingDefaults getMappingDefaults()
Description copied from interface:MetadataBuildingOptionsAccess to theMappingDefaults.- Specified by:
getMappingDefaultsin interfaceMetadataBuildingContext- Specified by:
getMappingDefaultsin interfaceMetadataBuildingOptions- Returns:
- The mapping defaults.
-
getDefaultTimeZoneStorageStrategy
public TimeZoneStorageStrategy getDefaultTimeZoneStorageStrategy()
Description copied from interface:JdbcTypeIndicatorsThe defaultTimeZoneStorageStrategy.- Specified by:
getDefaultTimeZoneStorageStrategyin interfaceJdbcTypeIndicators- Specified by:
getDefaultTimeZoneStorageStrategyin interfaceSessionFactoryOptions- See Also:
MappingSettings.TIMEZONE_DEFAULT_STORAGE,Dialect.getTimeZoneSupport()
-
-