Class MockSessionFactory
java.lang.Object
org.hibernate.processor.validation.MockSessionFactory
- All Implemented Interfaces:
EntityManagerFactory
,Serializable
,AutoCloseable
,Referenceable
,FunctionContributions
,BootstrapContext
,MetadataBuildingContext
,MetadataBuildingOptions
,SessionFactoryOptions
,SessionFactoryImplementor
,RuntimeModelCreationContext
,BindingContext
,QueryEngine
,QueryEngineOptions
,QueryParameterBindingTypeResolver
,SqmCreationContext
,SessionFactory
,SqlAstCreationContext
,JdbcTypeIndicators
,MappingContext
- Direct Known Subclasses:
ProcessorSessionFactory
public abstract class MockSessionFactory
extends Object
implements SessionFactoryImplementor, QueryEngine, RuntimeModelCreationContext, MetadataBuildingOptions, BootstrapContext, MetadataBuildingContext, FunctionContributions, SessionFactoryOptions, JdbcTypeIndicators
- 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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
addObserver
(SessionFactoryObserver observer) Class<?>
classForName
(String className) void
close()
Destroy thisSessionFactory
and release all its resources, including caches and connection pools.Return the rootEntityGraph
with the given name, ornull
if there is no graph with the given name.Access to the options specified by theMetadataBuilder
getCache()
Obtain direct access to the underlying cache regions.The defaultTimeZoneStorageStrategy
.Obtain the set of names of alldefined filters
.The SQL Dialect.Access to mapping defaults in effect for this contextGet the delegate for handling entity-not-found exception conditions.TheSqmFunctionRegistry
belonging to thisBootstrapContext
.getIdentifierPropertyName
(String className) getIdentifierType
(String className) In-flight form ofJpaCompliance
Access to theMappingDefaults
.The runtime MappingMetamodelImplementorWhen creatingFetch
references, defines a limit to how deep we should join for fetches.getName()
Access to the name (if one) assigned to theSessionFactory
int
When mapping a basic array or collection type to the database what is the preferred SQL type code to use?int
When mapping a boolean type to the database what is the preferred SQL type code to use?int
When mapping a duration type to the database what is the preferred SQL type code to use?int
When mapping an instant type to the database what is the preferred SQL type code to use?int
When mapping an uuid type to the database what is the preferred SQL type code to use?getReferencedPropertyType
(String className, String propertyName) Access to theServiceRegistry
for thisSessionFactory
.The SessionFactoryThe name to be used for the SessionFactory.Get the options used to build this factory.Retrieve the statistics for this factory.protected abstract String
getSupertype
(String entityName) The java type to use for a tenant identifier.TheTypeConfiguration
belonging to thisBootstrapContext
.getUuid()
Get the UUID for thisSessionFactory
.BasicType<?>
getVersionType
(String className) boolean
isClosed()
Is this factory already closed?boolean
boolean
boolean
protected abstract boolean
boolean
Whether to use the legacy format for serializing/deserializing XML data.void
setCheckNullability
(boolean enabled) Allows use of Bean Validation to disable null checking.void
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, getRepresentationStrategySelector, getScanEnvironment, getScanner, getScanOptions, getSqlFunctions, isJpaBootstrap, markAsJpaBootstrap, registerAdHocBasicType, release, resolveAdHocBasicType
Methods inherited from interface jakarta.persistence.EntityManagerFactory
addNamedEntityGraph, addNamedQuery, callInTransaction, getNamedEntityGraphs, getNamedQueries, getPersistenceUnitUtil, getProperties, getTransactionType, isOpen, runInTransaction, unwrap
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, 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, getImmutableEntityUpdateQueryHandlingMode
Methods inherited from interface org.hibernate.query.spi.QueryParameterBindingTypeResolver
resolveParameterBindType, resolveParameterBindType
Methods inherited from interface javax.naming.Referenceable
getReference
Methods inherited from interface org.hibernate.metamodel.spi.RuntimeModelCreationContext
createEntityMetamodel, getGenerators, getGeneratorSettings, getJavaTypeRegistry, getMetadata
Methods inherited from interface org.hibernate.SessionFactory
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, getAutoEnabledFilters, getEventEngine, getFetchProfile, getFilterDefinition, getGenerator, getWrapperOptions, openSession, openTemporarySession, withOptions
Methods inherited from interface org.hibernate.boot.spi.SessionFactoryOptions
areJPACallbacksEnabled, doesConnectionProviderDisableAutoCommit, getBaselineSessionEventsListenerBuilder, getBeanManagerReference, getCacheRegionPrefix, getCriteriaValueHandlingMode, getDefaultBatchFetchSize, getDefaultCatalog, getDefaultNullPrecedence, getDefaultSchema, getDefaultTenantIdentifierJavaType, 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, isJsonFunctionsEnabled, isJtaTrackByThread, isJtaTransactionAccessEnabled, isMinimalPutsEnabled, isMultiTenancyEnabled, isNamedQueryStartupCheckingEnabled, isOrderInsertsEnabled, isOrderUpdatesEnabled, isPassProcedureParameterNames, isPortableIntegerDivisionEnabled, isPreferJdbcDatetimeTypesInNativeQueriesEnabled, isPreferUserTransaction, isQueryCacheEnabled, isReleaseResourcesOnCloseEnabled, isScrollableResultSetsEnabled, isSecondLevelCacheEnabled, isSessionFactoryNameAlsoJndiName, isStatisticsEnabled, isStructuredCacheEntriesEnabled, isSubselectFetchEnabled, isUnownedAssociationTransientCheck, isUseOfJdbcNamedParametersEnabled, isXmlFunctionsEnabled
Methods inherited from interface org.hibernate.query.sqm.spi.SqmCreationContext
getNodeBuilder
-
Constructor Details
-
MockSessionFactory
public MockSessionFactory()
-
-
Method Details
-
getTypeConfiguration
Description copied from interface:BootstrapContext
TheTypeConfiguration
belonging to thisBootstrapContext
.- Specified by:
getTypeConfiguration
in interfaceBindingContext
- Specified by:
getTypeConfiguration
in interfaceBootstrapContext
- Specified by:
getTypeConfiguration
in interfaceFunctionContributions
- Specified by:
getTypeConfiguration
in interfaceJdbcTypeIndicators
- Specified by:
getTypeConfiguration
in interfaceMetadataBuildingOptions
- Specified by:
getTypeConfiguration
in interfaceQueryEngine
- Specified by:
getTypeConfiguration
in interfaceQueryParameterBindingTypeResolver
- Specified by:
getTypeConfiguration
in interfaceRuntimeModelCreationContext
- Specified by:
getTypeConfiguration
in interfaceSessionFactoryImplementor
- Returns:
- the
TypeConfiguration
belonging to theBootstrapContext
- See Also:
-
addObserver
- Specified by:
addObserver
in interfaceSessionFactoryImplementor
-
getBuildingOptions
Description copied from interface:MetadataBuildingContext
Access to the options specified by theMetadataBuilder
- Specified by:
getBuildingOptions
in interfaceMetadataBuildingContext
- Returns:
- The options
-
getPhysicalNamingStrategy
- Specified by:
getPhysicalNamingStrategy
in interfaceMetadataBuildingOptions
- See Also:
-
getImplicitNamingStrategy
- Specified by:
getImplicitNamingStrategy
in interfaceMetadataBuildingOptions
- See Also:
-
isSubtype
-
getSupertype
-
getIdentifierType
- Specified by:
getIdentifierType
in interfaceMappingContext
- Throws:
MappingException
-
getVersionType
- Throws:
MappingException
-
getIdentifierPropertyName
- Specified by:
getIdentifierPropertyName
in interfaceMappingContext
- Throws:
MappingException
-
getReferencedPropertyType
public Type getReferencedPropertyType(String className, String propertyName) throws MappingException - Specified by:
getReferencedPropertyType
in interfaceMappingContext
- Throws:
MappingException
-
getMetamodel
- Specified by:
getMetamodel
in interfaceEntityManagerFactory
-
getServiceRegistry
Description copied from interface:SessionFactoryImplementor
Access to theServiceRegistry
for thisSessionFactory
.- 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
- Returns:
- The factory's ServiceRegistry
-
classForName
- Specified by:
classForName
in interfaceSqmCreationContext
-
getJdbcServices
- Specified by:
getJdbcServices
in interfaceRuntimeModelCreationContext
- Specified by:
getJdbcServices
in interfaceSessionFactoryImplementor
-
getName
Description copied from interface:SessionFactoryImplementor
Access to the name (if one) assigned to theSessionFactory
- Specified by:
getName
in interfaceEntityManagerFactory
- Specified by:
getName
in interfaceSessionFactoryImplementor
- Returns:
- The name for the
SessionFactory
-
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
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
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
Description copied from interface:SessionFactoryOptions
Get the delegate for handling entity-not-found exception conditions.Returns
StandardEntityNotFoundDelegate
by default.- Specified by:
getEntityNotFoundDelegate
in interfaceSessionFactoryImplementor
- Specified by:
getEntityNotFoundDelegate
in interfaceSessionFactoryOptions
- Returns:
- The specific
EntityNotFoundDelegate
to use, May benull
-
getCustomEntityDirtinessStrategy
- Specified by:
getCustomEntityDirtinessStrategy
in interfaceSessionFactoryImplementor
- Specified by:
getCustomEntityDirtinessStrategy
in interfaceSessionFactoryOptions
- See Also:
-
getCurrentTenantIdentifierResolver
- Specified by:
getCurrentTenantIdentifierResolver
in interfaceSessionFactoryImplementor
- Specified by:
getCurrentTenantIdentifierResolver
in interfaceSessionFactoryOptions
- See Also:
-
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:
-
isPreferNativeEnumTypesEnabled
public boolean isPreferNativeEnumTypesEnabled()- Specified by:
isPreferNativeEnumTypesEnabled
in interfaceJdbcTypeIndicators
- Specified by:
isPreferNativeEnumTypesEnabled
in interfaceMetadataBuildingContext
- Specified by:
isPreferNativeEnumTypesEnabled
in interfaceSessionFactoryOptions
- See Also:
-
isXmlFormatMapperLegacyFormatEnabled
public boolean isXmlFormatMapperLegacyFormatEnabled()Description copied from interface:MetadataBuildingOptions
Whether to use the legacy format for serializing/deserializing XML data.- Specified by:
isXmlFormatMapperLegacyFormatEnabled
in interfaceJdbcTypeIndicators
- Specified by:
isXmlFormatMapperLegacyFormatEnabled
in interfaceMetadataBuildingOptions
- Specified by:
isXmlFormatMapperLegacyFormatEnabled
in interfaceSessionFactoryOptions
- See Also:
-
getFastSessionServices
- Specified by:
getFastSessionServices
in interfaceSessionFactoryImplementor
- Returns:
- the
FastSessionServices
instance associated with this factory
-
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 interfaceEntityManagerFactory
- Specified by:
close
in interfaceQueryEngine
- Specified by:
close
in interfaceSessionFactory
-
findEntityGraphByName
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:
-
getNativeQueryInterpreter
- Specified by:
getNativeQueryInterpreter
in interfaceQueryEngine
-
getInterpretationCache
- Specified by:
getInterpretationCache
in interfaceQueryEngine
-
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
- Specified by:
getSqmFunctionRegistry
in interfaceQueryEngine
-
getCriteriaBuilder
Description copied from interface:SessionFactory
- Specified by:
getCriteriaBuilder
in interfaceEntityManagerFactory
- Specified by:
getCriteriaBuilder
in interfaceQueryEngine
- Specified by:
getCriteriaBuilder
in interfaceSessionFactory
- See Also:
-
validateNamedQueries
public void validateNamedQueries()- Specified by:
validateNamedQueries
in interfaceQueryEngine
-
getNamedObjectRepository
- Specified by:
getNamedObjectRepository
in interfaceQueryEngine
-
getHqlTranslator
- Specified by:
getHqlTranslator
in interfaceQueryEngine
-
getSqmTranslatorFactory
- Specified by:
getSqmTranslatorFactory
in interfaceQueryEngine
-
getQueryEngine
- Specified by:
getQueryEngine
in interfaceSqmCreationContext
-
getJpaMetamodel
- Specified by:
getJpaMetamodel
in interfaceBindingContext
-
getMappingMetamodel
Description copied from interface:SqlAstCreationContext
The runtime MappingMetamodelImplementor- Specified by:
getMappingMetamodel
in interfaceBindingContext
- Specified by:
getMappingMetamodel
in interfaceQueryParameterBindingTypeResolver
- Specified by:
getMappingMetamodel
in interfaceSessionFactoryImplementor
- Specified by:
getMappingMetamodel
in interfaceSqlAstCreationContext
-
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
Description copied from interface:BootstrapContext
In-flight form ofJpaCompliance
- Specified by:
getJpaCompliance
in interfaceBootstrapContext
- Specified by:
getJpaCompliance
in interfaceQueryEngineOptions
- Specified by:
getJpaCompliance
in interfaceSessionFactoryOptions
- See Also:
-
getSessionFactoryName
Description copied from interface:SessionFactoryOptions
The name to be used for the SessionFactory. This is used during in-VM serialization; seeSessionFactoryRegistry
. May also be used as a JNDI name depending on "hibernate.session_factory_jndi_name" and "hibernate.session_factory_name_is_jndi".- Specified by:
getSessionFactoryName
in interfaceQueryEngineOptions
- Specified by:
getSessionFactoryName
in interfaceSessionFactoryOptions
- Returns:
- The session factory name
- See Also:
-
getUuid
Description copied from interface:SessionFactoryImplementor
Get the UUID for thisSessionFactory
.The value is generated as a
UUID
, but kept as a String.- Specified by:
getUuid
in interfaceQueryEngineOptions
- Specified by:
getUuid
in interfaceSessionFactoryImplementor
- Specified by:
getUuid
in interfaceSessionFactoryOptions
- Returns:
- The UUID for this
SessionFactory
. - See Also:
-
getSessionFactoryObservers
- Specified by:
getSessionFactoryObservers
in interfaceSessionFactoryOptions
- See Also:
-
getEntityNameResolvers
- Specified by:
getEntityNameResolvers
in interfaceSessionFactoryOptions
-
isDelayBatchFetchLoaderCreationsEnabled
public boolean isDelayBatchFetchLoaderCreationsEnabled()- Specified by:
isDelayBatchFetchLoaderCreationsEnabled
in interfaceSessionFactoryOptions
- See Also:
-
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
- See Also:
-
setCheckNullability
public void setCheckNullability(boolean enabled) Description copied from interface:SessionFactoryOptions
Allows use of Bean Validation to disable null checking.- Specified by:
setCheckNullability
in interfaceSessionFactoryOptions
-
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:
-
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:
-
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:
-
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:
-
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:
-
getSessionFactory
Description copied from interface:SqlAstCreationContext
The SessionFactory- Specified by:
getSessionFactory
in interfaceRuntimeModelCreationContext
- Specified by:
getSessionFactory
in interfaceSessionFactoryImplementor
- Specified by:
getSessionFactory
in interfaceSqlAstCreationContext
-
getBootstrapContext
- Specified by:
getBootstrapContext
in interfaceMetadataBuildingContext
- Specified by:
getBootstrapContext
in interfaceRuntimeModelCreationContext
-
getBootModel
- Specified by:
getBootModel
in interfaceRuntimeModelCreationContext
-
getDomainModel
- Specified by:
getDomainModel
in interfaceRuntimeModelCreationContext
-
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:
-
getSettings
- Specified by:
getSettings
in interfaceRuntimeModelCreationContext
-
getSqlStringGenerationContext
- Specified by:
getSqlStringGenerationContext
in interfaceRuntimeModelCreationContext
- Specified by:
getSqlStringGenerationContext
in interfaceSessionFactoryImplementor
-
getMappingDefaults
Description copied from interface:MetadataBuildingOptions
Access to theMappingDefaults
.- Specified by:
getMappingDefaults
in interfaceMetadataBuildingOptions
-
getEffectiveDefaults
Description copied from interface:MetadataBuildingContext
Access to mapping defaults in effect for this context- Specified by:
getEffectiveDefaults
in interfaceMetadataBuildingContext
- Returns:
- The mapping defaults.
-
getDefaultTimeZoneStorageStrategy
Description copied from interface:JdbcTypeIndicators
The defaultTimeZoneStorageStrategy
.- Specified by:
getDefaultTimeZoneStorageStrategy
in interfaceJdbcTypeIndicators
- Specified by:
getDefaultTimeZoneStorageStrategy
in interfaceSessionFactoryOptions
- See Also:
-