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:BootstrapContext
TheTypeConfiguration
belonging to thisBootstrapContext
.- Specified by:
getTypeConfiguration
in interfaceBootstrapContext
- Specified by:
getTypeConfiguration
in interfaceFunctionContributions
- Specified by:
getTypeConfiguration
in interfaceJdbcTypeIndicators
- Specified by:
getTypeConfiguration
in interfaceMetadataBuildingOptions
- Specified by:
getTypeConfiguration
in interfacePersisterCreationContext
- Specified by:
getTypeConfiguration
in interfaceQueryEngine
- Specified by:
getTypeConfiguration
in interfaceQueryParameterBindingTypeResolver
- Specified by:
getTypeConfiguration
in interfaceRuntimeModelCreationContext
- Specified by:
getTypeConfiguration
in interfaceSessionFactoryImplementor
- Specified by:
getTypeConfiguration
in interfaceSqmCreationContext
- Returns:
- the
TypeConfiguration
belonging to theBootstrapContext
- See Also:
TypeConfiguration
-
addObserver
public void addObserver(SessionFactoryObserver observer)
- Specified by:
addObserver
in interfaceSessionFactoryImplementor
-
getBuildingOptions
public MetadataBuildingOptions getBuildingOptions()
Description copied from interface:MetadataBuildingContext
Access to the options specified by theMetadataBuilder
- Specified by:
getBuildingOptions
in interfaceMetadataBuildingContext
- Returns:
- The options
-
getPhysicalNamingStrategy
public PhysicalNamingStrategy getPhysicalNamingStrategy()
- Specified by:
getPhysicalNamingStrategy
in interfaceMetadataBuildingOptions
- See Also:
MappingSettings.PHYSICAL_NAMING_STRATEGY
-
getImplicitNamingStrategy
public ImplicitNamingStrategy getImplicitNamingStrategy()
- Specified by:
getImplicitNamingStrategy
in interfaceMetadataBuildingOptions
- See Also:
MappingSettings.IMPLICIT_NAMING_STRATEGY
-
getIdentifierType
public Type getIdentifierType(String className) throws MappingException
- Specified by:
getIdentifierType
in interfaceMapping
- Throws:
MappingException
-
getIdentifierPropertyName
public String getIdentifierPropertyName(String className) throws MappingException
- Specified by:
getIdentifierPropertyName
in interfaceMapping
- Throws:
MappingException
-
getReferencedPropertyType
public Type getReferencedPropertyType(String className, String propertyName) throws MappingException
- Specified by:
getReferencedPropertyType
in interfaceMapping
- Throws:
MappingException
-
getMetamodel
public MetamodelImplementor getMetamodel()
- Specified by:
getMetamodel
in interfaceEntityManagerFactory
- Specified by:
getMetamodel
in interfaceSessionFactoryImplementor
-
getServiceRegistry
public StandardServiceRegistryImpl getServiceRegistry()
Description copied from interface:SessionFactoryImplementor
Access to the ServiceRegistry for this SessionFactory.- Specified by:
getServiceRegistry
in interfaceBootstrapContext
- Specified by:
getServiceRegistry
in interfaceFunctionContributions
- Specified by:
getServiceRegistry
in interfaceMetadataBuildingOptions
- Specified by:
getServiceRegistry
in interfaceRuntimeModelCreationContext
- Specified by:
getServiceRegistry
in interfaceSessionFactoryImplementor
- Specified by:
getServiceRegistry
in interfaceSessionFactoryOptions
- Specified by:
getServiceRegistry
in interfaceSqlAstCreationContext
- Specified by:
getServiceRegistry
in interfaceSqmCreationContext
- Returns:
- The factory's ServiceRegistry
-
getJdbcServices
public JdbcServices getJdbcServices()
Description copied from interface:SessionFactoryImplementor
Get the JdbcServices.- Specified by:
getJdbcServices
in interfaceRuntimeModelCreationContext
- Specified by:
getJdbcServices
in interfaceSessionFactoryImplementor
- Returns:
- the JdbcServices
-
getName
public String getName()
Description copied from interface:SessionFactoryImplementor
Access to the name (if one) assigned to the SessionFactory- Specified by:
getName
in interfaceSessionFactoryImplementor
- Returns:
- The name for the SessionFactory
-
getSessionFactoryOptions
public SessionFactoryOptions getSessionFactoryOptions()
Description copied from interface:SessionFactory
Get the options used to build this factory.- Specified by:
getSessionFactoryOptions
in interfaceRuntimeModelCreationContext
- Specified by:
getSessionFactoryOptions
in interfaceSessionFactory
- Specified by:
getSessionFactoryOptions
in interfaceSessionFactoryImplementor
- Returns:
- The special options used to build the factory.
-
getDefinedFilterNames
public Set<String> getDefinedFilterNames()
Description copied from interface:SessionFactory
Obtain the set of names of alldefined filters
.- Specified by:
getDefinedFilterNames
in interfaceSessionFactory
- Returns:
- The set of filter names given by
FilterDef
annotations
-
getCache
public CacheImplementor getCache()
Description copied from interface:SessionFactory
Obtain direct access to the underlying cache regions.- Specified by:
getCache
in interfaceEntityManagerFactory
- Specified by:
getCache
in interfaceRuntimeModelCreationContext
- Specified by:
getCache
in interfaceSessionFactory
- Specified by:
getCache
in interfaceSessionFactoryImplementor
- Returns:
- The direct cache access API.
-
getEntityNotFoundDelegate
public EntityNotFoundDelegate getEntityNotFoundDelegate()
Description copied from interface:SessionFactoryOptions
Get the delegate for handling entity-not-found exception conditions.- Specified by:
getEntityNotFoundDelegate
in interfaceSessionFactoryImplementor
- Specified by:
getEntityNotFoundDelegate
in interfaceSessionFactoryOptions
- Returns:
- The specific EntityNotFoundDelegate to use, May be
null
-
getCustomEntityDirtinessStrategy
public CustomEntityDirtinessStrategy getCustomEntityDirtinessStrategy()
- Specified by:
getCustomEntityDirtinessStrategy
in interfaceSessionFactoryImplementor
- Specified by:
getCustomEntityDirtinessStrategy
in interfaceSessionFactoryOptions
-
getCurrentTenantIdentifierResolver
public CurrentTenantIdentifierResolver<Object> getCurrentTenantIdentifierResolver()
- Specified by:
getCurrentTenantIdentifierResolver
in interfaceSessionFactoryImplementor
- Specified by:
getCurrentTenantIdentifierResolver
in interfaceSessionFactoryOptions
-
getTenantIdentifierJavaType
public JavaType<Object> getTenantIdentifierJavaType()
Description copied from interface:SessionFactoryImplementor
The java type to use for a tenant identifier.- Specified by:
getTenantIdentifierJavaType
in interfaceSessionFactoryImplementor
-
isPreferJavaTimeJdbcTypesEnabled
public boolean isPreferJavaTimeJdbcTypesEnabled()
- Specified by:
isPreferJavaTimeJdbcTypesEnabled
in interfaceJdbcTypeIndicators
- Specified by:
isPreferJavaTimeJdbcTypesEnabled
in interfaceMetadataBuildingContext
- Specified by:
isPreferJavaTimeJdbcTypesEnabled
in interfaceSessionFactoryOptions
- See Also:
MappingSettings.JAVA_TIME_USE_DIRECT_JDBC
-
isPreferNativeEnumTypesEnabled
public boolean isPreferNativeEnumTypesEnabled()
- Specified by:
isPreferNativeEnumTypesEnabled
in interfaceJdbcTypeIndicators
- Specified by:
isPreferNativeEnumTypesEnabled
in interfaceMetadataBuildingContext
- Specified by:
isPreferNativeEnumTypesEnabled
in interfaceSessionFactoryOptions
- See Also:
MappingSettings.PREFER_NATIVE_ENUM_TYPES
-
getFastSessionServices
public FastSessionServices getFastSessionServices()
- Specified by:
getFastSessionServices
in interfaceSessionFactoryImplementor
- Returns:
- the FastSessionServices instance associated with this SessionFactory
-
close
public void close()
Description copied from interface:SessionFactory
Destroy thisSessionFactory
and 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceEntityManagerFactory
- Specified by:
close
in interfaceQueryEngine
- Specified by:
close
in interfaceSessionFactory
-
findEntityGraphByName
public RootGraphImplementor<?> findEntityGraphByName(String s)
Description copied from interface:SessionFactory
Return the rootEntityGraph
with the given name, ornull
if there is no graph with the given name.- Specified by:
findEntityGraphByName
in interfaceSessionFactory
- Specified by:
findEntityGraphByName
in 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:
getNativeQueryInterpreter
in interfaceQueryEngine
-
getInterpretationCache
public QueryInterpretationCache getInterpretationCache()
- Specified by:
getInterpretationCache
in interfaceQueryEngine
-
getStatistics
public StatisticsImplementor getStatistics()
Description copied from interface:SessionFactory
Retrieve the statistics for this factory.- Specified by:
getStatistics
in interfaceSessionFactory
- Specified by:
getStatistics
in interfaceSessionFactoryImplementor
- Returns:
- The statistics.
-
getSqmFunctionRegistry
public SqmFunctionRegistry getSqmFunctionRegistry()
- Specified by:
getSqmFunctionRegistry
in interfaceQueryEngine
-
getCriteriaBuilder
public NodeBuilder getCriteriaBuilder()
Description copied from interface:SessionFactory
- Specified by:
getCriteriaBuilder
in interfaceEntityManagerFactory
- Specified by:
getCriteriaBuilder
in interfaceQueryEngine
- Specified by:
getCriteriaBuilder
in interfaceSessionFactory
- Specified by:
getCriteriaBuilder
in interfaceSessionFactoryImplementor
- See Also:
SharedSessionContract.getCriteriaBuilder()
-
validateNamedQueries
public void validateNamedQueries()
- Specified by:
validateNamedQueries
in interfaceQueryEngine
-
getNamedObjectRepository
public NamedObjectRepository getNamedObjectRepository()
- Specified by:
getNamedObjectRepository
in interfaceQueryEngine
-
getHqlTranslator
public HqlTranslator getHqlTranslator()
- Specified by:
getHqlTranslator
in interfaceQueryEngine
-
getSqmTranslatorFactory
public SqmTranslatorFactory getSqmTranslatorFactory()
- Specified by:
getSqmTranslatorFactory
in interfaceQueryEngine
-
getQueryEngine
public QueryEngine getQueryEngine()
- Specified by:
getQueryEngine
in interfaceSessionFactoryImplementor
- Specified by:
getQueryEngine
in interfaceSqmCreationContext
-
getJpaMetamodel
public JpaMetamodelImplementor getJpaMetamodel()
Description copied from interface:SqmCreationContext
Access to the domain model metadata- Specified by:
getJpaMetamodel
in interfaceSqmCreationContext
-
getMappingMetamodel
public MappingMetamodelImplementor getMappingMetamodel()
Description copied from interface:SqlAstCreationContext
The runtime MappingMetamodelImplementor- Specified by:
getMappingMetamodel
in interfaceQueryParameterBindingTypeResolver
- Specified by:
getMappingMetamodel
in interfaceSessionFactoryImplementor
- Specified by:
getMappingMetamodel
in interfaceSqlAstCreationContext
-
getRuntimeMetamodels
public RuntimeMetamodelsImplementor getRuntimeMetamodels()
- Specified by:
getRuntimeMetamodels
in interfaceSessionFactoryImplementor
-
isClosed
public boolean isClosed()
Description copied from interface:SessionFactory
Is this factory already closed?- Specified by:
isClosed
in interfaceSessionFactory
- Returns:
- True if this factory is already closed; false otherwise.
-
getJpaCompliance
public MutableJpaCompliance getJpaCompliance()
Description copied from interface:BootstrapContext
In-flight form ofJpaCompliance
- Specified by:
getJpaCompliance
in interfaceBootstrapContext
- Specified by:
getJpaCompliance
in interfaceQueryEngineOptions
- Specified by:
getJpaCompliance
in interfaceSessionFactoryOptions
-
getSessionFactoryName
public String getSessionFactoryName()
Description copied from interface:SessionFactoryOptions
The name to be used for the SessionFactory. This is used both in:- in-VM serialization
- JNDI binding, depending on
SessionFactoryOptions.isSessionFactoryNameAlsoJndiName()
- Specified by:
getSessionFactoryName
in interfaceSessionFactoryOptions
- Returns:
- The SessionFactory name
-
getUuid
public String getUuid()
Description copied from interface:SessionFactoryImplementor
Get the UUID for this SessionFactory.The value is generated as a
UUID
, but kept as a String.- Specified by:
getUuid
in interfaceSessionFactoryImplementor
- Specified by:
getUuid
in interfaceSessionFactoryOptions
- Returns:
- The UUID for this SessionFactory.
- See Also:
SessionFactoryRegistry.getSessionFactory(java.lang.String)
-
getSessionFactoryObservers
public SessionFactoryObserver[] getSessionFactoryObservers()
- Specified by:
getSessionFactoryObservers
in interfaceSessionFactoryOptions
-
getEntityNameResolvers
public EntityNameResolver[] getEntityNameResolvers()
- Specified by:
getEntityNameResolvers
in interfaceSessionFactoryOptions
-
getBatchFetchStyle
public BatchFetchStyle getBatchFetchStyle()
- Specified by:
getBatchFetchStyle
in interfaceSessionFactoryOptions
-
isDelayBatchFetchLoaderCreationsEnabled
public boolean isDelayBatchFetchLoaderCreationsEnabled()
- Specified by:
isDelayBatchFetchLoaderCreationsEnabled
in interfaceSessionFactoryOptions
-
getMaximumFetchDepth
public Integer getMaximumFetchDepth()
Description copied from interface:SqlAstCreationContext
When creatingFetch
references, defines a limit to how deep we should join for fetches.- Specified by:
getMaximumFetchDepth
in interfaceSessionFactoryOptions
- Specified by:
getMaximumFetchDepth
in interfaceSqlAstCreationContext
-
setCheckNullability
public void setCheckNullability(boolean enabled)
- Specified by:
setCheckNullability
in interfaceSessionFactoryOptions
-
getDialect
public Dialect getDialect()
Description copied from interface:FunctionContributions
The SQL Dialect.- Specified by:
getDialect
in interfaceFunctionContributions
- Specified by:
getDialect
in interfaceJdbcTypeIndicators
- Specified by:
getDialect
in interfaceRuntimeModelCreationContext
-
getPreferredSqlTypeCodeForBoolean
public int getPreferredSqlTypeCodeForBoolean()
Description copied from interface:JdbcTypeIndicators
When mapping a boolean type to the database what is the preferred SQL type code to use?Returns a key into the
JdbcTypeRegistry
.- Specified by:
getPreferredSqlTypeCodeForBoolean
in interfaceJdbcTypeIndicators
- Specified by:
getPreferredSqlTypeCodeForBoolean
in interfaceMetadataBuildingContext
- Specified by:
getPreferredSqlTypeCodeForBoolean
in interfaceSessionFactoryOptions
- See Also:
MappingSettings.PREFERRED_BOOLEAN_JDBC_TYPE
,Dialect.getPreferredSqlTypeCodeForBoolean()
-
getPreferredSqlTypeCodeForDuration
public int getPreferredSqlTypeCodeForDuration()
Description copied from interface:JdbcTypeIndicators
When mapping a duration type to the database what is the preferred SQL type code to use?Returns a key into the
JdbcTypeRegistry
.- Specified by:
getPreferredSqlTypeCodeForDuration
in interfaceJdbcTypeIndicators
- Specified by:
getPreferredSqlTypeCodeForDuration
in interfaceMetadataBuildingContext
- Specified by:
getPreferredSqlTypeCodeForDuration
in interfaceSessionFactoryOptions
- See Also:
MappingSettings.PREFERRED_DURATION_JDBC_TYPE
-
getPreferredSqlTypeCodeForUuid
public int getPreferredSqlTypeCodeForUuid()
Description copied from interface:JdbcTypeIndicators
When mapping an uuid type to the database what is the preferred SQL type code to use?Returns a key into the
JdbcTypeRegistry
.- Specified by:
getPreferredSqlTypeCodeForUuid
in interfaceJdbcTypeIndicators
- Specified by:
getPreferredSqlTypeCodeForUuid
in interfaceMetadataBuildingContext
- Specified by:
getPreferredSqlTypeCodeForUuid
in interfaceSessionFactoryOptions
- See Also:
MappingSettings.PREFERRED_UUID_JDBC_TYPE
-
getPreferredSqlTypeCodeForInstant
public int getPreferredSqlTypeCodeForInstant()
Description copied from interface:JdbcTypeIndicators
When mapping an instant type to the database what is the preferred SQL type code to use?Returns a key into the
JdbcTypeRegistry
.- Specified by:
getPreferredSqlTypeCodeForInstant
in interfaceJdbcTypeIndicators
- Specified by:
getPreferredSqlTypeCodeForInstant
in interfaceMetadataBuildingContext
- Specified by:
getPreferredSqlTypeCodeForInstant
in interfaceSessionFactoryOptions
- See Also:
MappingSettings.PREFERRED_INSTANT_JDBC_TYPE
-
getPreferredSqlTypeCodeForArray
public int getPreferredSqlTypeCodeForArray()
Description copied from interface:JdbcTypeIndicators
When 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:
getPreferredSqlTypeCodeForArray
in interfaceJdbcTypeIndicators
- Specified by:
getPreferredSqlTypeCodeForArray
in interfaceMetadataBuildingContext
- Specified by:
getPreferredSqlTypeCodeForArray
in interfaceSessionFactoryOptions
- See Also:
Dialect.getPreferredSqlTypeCodeForArray()
-
getSessionFactory
public SessionFactoryImplementor getSessionFactory()
Description copied from interface:SqlAstCreationContext
The SessionFactory- Specified by:
getSessionFactory
in interfacePersisterCreationContext
- Specified by:
getSessionFactory
in interfaceRuntimeModelCreationContext
- Specified by:
getSessionFactory
in interfaceSessionFactoryImplementor
- Specified by:
getSessionFactory
in interfaceSqlAstCreationContext
-
getBootstrapContext
public BootstrapContext getBootstrapContext()
- Specified by:
getBootstrapContext
in interfaceMetadataBuildingContext
- Specified by:
getBootstrapContext
in interfacePersisterCreationContext
- Specified by:
getBootstrapContext
in interfaceRuntimeModelCreationContext
-
getBootModel
public MetadataImplementor getBootModel()
- Specified by:
getBootModel
in interfaceRuntimeModelCreationContext
-
getDomainModel
public MappingMetamodelImplementor getDomainModel()
- Specified by:
getDomainModel
in interfaceRuntimeModelCreationContext
-
getFunctionRegistry
public SqmFunctionRegistry getFunctionRegistry()
Description copied from interface:BootstrapContext
TheSqmFunctionRegistry
belonging to thisBootstrapContext
.- Specified by:
getFunctionRegistry
in interfaceBootstrapContext
- Specified by:
getFunctionRegistry
in interfaceFunctionContributions
- Specified by:
getFunctionRegistry
in interfaceRuntimeModelCreationContext
- See Also:
SqmFunctionRegistry
-
getSettings
public Map<String,Object> getSettings()
- Specified by:
getSettings
in interfaceRuntimeModelCreationContext
-
getSqlStringGenerationContext
public SqlStringGenerationContext getSqlStringGenerationContext()
- Specified by:
getSqlStringGenerationContext
in interfaceRuntimeModelCreationContext
- Specified by:
getSqlStringGenerationContext
in interfaceSessionFactoryImplementor
-
getIdentifierGeneratorFactory
public IdentifierGeneratorFactory getIdentifierGeneratorFactory()
Description copied from interface:MetadataBuildingOptions
The service implementingIdentifierGeneratorFactory
.- Specified by:
getIdentifierGeneratorFactory
in interfaceBootstrapContext
- Specified by:
getIdentifierGeneratorFactory
in interfaceMetadataBuildingOptions
-
getMappingDefaults
public MappingDefaults getMappingDefaults()
Description copied from interface:MetadataBuildingOptions
Access to theMappingDefaults
.- Specified by:
getMappingDefaults
in interfaceMetadataBuildingContext
- Specified by:
getMappingDefaults
in interfaceMetadataBuildingOptions
- Returns:
- The mapping defaults.
-
getDefaultTimeZoneStorageStrategy
public TimeZoneStorageStrategy getDefaultTimeZoneStorageStrategy()
Description copied from interface:JdbcTypeIndicators
The defaultTimeZoneStorageStrategy
.- Specified by:
getDefaultTimeZoneStorageStrategy
in interfaceJdbcTypeIndicators
- Specified by:
getDefaultTimeZoneStorageStrategy
in interfaceSessionFactoryOptions
- See Also:
MappingSettings.TIMEZONE_DEFAULT_STORAGE
,Dialect.getTimeZoneSupport()
-
-