MetadataBuilderImplementor.
| Modifier and Type | Field and Description |
|---|---|
| private final SessionFactoryBuilder |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public T | addEntityNameResolver(EntityNameResolver...
The entityNameResolvers to add entityNameResolvers)Implements org. |
| public T | addSessionFactoryObservers(SessionFactoryObserver...
The observers to add observers)Implements org. |
| public T | |
| public T | applyAutoClosing(boolean
true indicates they should be auto-closed; false indicates not.Implements org. org.s should be automatically
closed at the end of the transaction.
|
| public T | applyAutoFlushing(boolean
true indicates they should be auto-flushed; false indicates not.Implements org. org.s should be automatically
flushed at the end of the transaction.
|
| public T | applyAutomaticEvictionOfCollectionCaches(boolean
true indicates that these collection caches should be evicted automatically.Implements org. |
| public T | applyBatchFetchStyle(BatchFetchStyle
The style to use style)Implements org.
Deprecated
as a consequence of
What style of batching should be used?
BatchFetchStyle being deprecated.
|
| public T | applyBeanManager(Object
The CDI beanManager)BeanManager to useImplements org. jakarta..
|
| public T | applyCacheRegionPrefix(String
The prefix. prefix)Implements org. |
| public SessionFactoryBuilder | applyCollectionsInDefaultFetchGroup(boolean
true collections should be included, false they should not.
Default is true.Implements org. |
| public T | applyConnectionHandlingMode(PhysicalConnectionHandlingMode
The handling mode to apply connectionHandlingMode)Implements org. |
| public SessionFactoryBuilder | applyConnectionProviderDisablesAutoCommit(boolean providerDisablesAutoCommit)
Implements org. |
| public T | applyCurrentTenantIdentifierResolver(CurrentTenantIdentifierResolver<?>
The resolution strategy to use. resolver)Implements org. CurrentTenantIdentifierResolver that is responsible for
resolving the current tenant identifier.
|
| public T | applyCustomEntityDirtinessStrategy(CustomEntityDirtinessStrategy
The custom strategy to be used. strategy)Implements org. CustomEntityDirtinessStrategy.
|
| public T | applyDefaultBatchFetchSize(int
The size to use for batch fetching for entities/collections which
do not specify an explicit batch fetch size. size)Implements org. |
| public T | applyDefaultNullPrecedence(NullPrecedence
The default null precedence to use. nullPrecedence)Implements org. NULLS FIRST or NULLS LAST,
to order by clauses rendered in SQL queries.
|
| public SessionFactoryBuilder | applyDelayedEntityLoaderCreations(boolean delay)
Implements org. |
| public T | applyDirectReferenceCaching(boolean
true indicates that applicable entities will be stored into the
second-level cache directly by reference; false indicates that all entities will be stored
via the extraction approach.Implements org. |
| public T | applyEntityNotFoundDelegate(EntityNotFoundDelegate
The delegate/strategy to use. entityNotFoundDelegate)Implements org. EntityNotFoundDelegate.
|
| public T | applyGetGeneratedKeysSupport(boolean
true indicates we should use JDBC getGeneratedKeys support; false
indicates we should not.Implements org. java. feature be used for
retrieval of *insert-generated* ids?
|
| public T | applyIdentifierRollbackSupport(boolean
true indicates identifiers should be unset; false indicates not.Implements org. |
| public T | applyInterceptor(Interceptor
The interceptor interceptor)Implements org. Interceptor associated with the SessionFactory,
which will be used by all sessions unless an interceptor is explicitly
specified using org..
|
| public T | applyJdbcBatchingForVersionedEntities(boolean
The batch size to use. enabled)Implements org. |
| public T | applyJdbcBatchSize(int
The batch size to use. size)Implements org. |
| public T | applyJdbcFetchSize(int
The fetch size to be passed to the driver. size)Implements org. |
| public SessionFactoryBuilder | applyJsonFormatMapper(FormatMapper
The jsonFormatMapper)FormatMapper to use.Implements org. format mapper to use for serialization/deserialization of JSON properties.
|
| public T | applyJtaTrackingByThread(boolean
true indicates we should track by thread; false indicates notImplements org. org. or
org.,
should it track JTA transactions by thread in an attempt to detect timeouts?
|
| public T | applyLazyInitializationOutsideTransaction(boolean
true indicates initialization outside the transaction
should be allowed; false indicates it should not.Implements org. |
| public T | applyMaximumFetchDepth(int
The depth for limiting joins. depth)Implements org. |
| public T | applyMinimalPutsForCaching(boolean
true indicates Hibernate should first check whether data exists and only
push to the cache if it does not already exist. false indicates to perform the default
behavior.Implements org. |
| public T | applyMultiTenancy(boolean
True if multi-tenancy in use. enabled)Implements org. |
| public T | applyName(String
The name to use sessionFactoryName)Implements org. SessionFactory.
|
| public T | applyNameAsJndiName(boolean
true indicates that the name specified in
applyName will be used for binding the SessionFactory into JNDI.Implements org. SessionFactory should be registered in JNDI,
under the name specified using applyName(String).
|
| public T | applyNamedQueryCheckingOnStartup(boolean
true indicates that they should; false indicates they should not.Implements org. |
| public T | applyNullabilityChecking(boolean
true indicates that Hibernate should perform nullness checking; false indicates
it should not.Implements org. |
| public T | applyOrderingOfInserts(boolean
true indicates that ordering should be enabled; false indicates notImplements org. |
| public T | applyOrderingOfUpdates(boolean
true indicates that ordering should be enabled; false indicates notImplements org. |
| public T | applyPreferUserTransactions(boolean
true indicates we should prefer
jakarta.; false indicates we
should prefer jakarta.Implements org. org. or
org.,
should it prefer to use jakarta. in
preference to jakarta.?
|
| public T | applyQueryCacheSupport(boolean
true indicates we should enable the use of second level query
caching; false indicates we should disable the use of second level query caching.Implements org. |
| public T | applyScrollableResultsSupport(boolean
true to enable this support, false to disable itImplements org. |
| public T | applySecondLevelCacheSupport(boolean
true indicates we should enable the use of second level caching;
false indicates we should disable the use of second level caching.Implements org. |
| public T | applySqlComments(boolean
true indicates comments should be applied; false indicates not.Implements org. |
| public T | applySqlFunction(String
The function name to register it under registrationName, SqmFunctionDescriptor sqlFunction)Implements org. SQL function with the underlying
org..
|
| public T | applyStatelessInterceptor(Supplier<? extends Interceptor>
Supplier instance which is used to retrieve the interceptorImplements org. Supplier associated with the
SessionFactory, which is used to obtain an interceptor for
each session, unless an interceptor is explicitly specified using
org..
|
| public T | applyStatelessInterceptor(Class<? extends Interceptor>
The interceptor class statelessInterceptorClass)Implements org. Class associated with the
SessionFactory, which is used to instantiate a new interceptor
for each session, unless an interceptor is explicitly specified using
org..
|
| public T | applyStatementInspector(StatementInspector
The StatementInspector statementInspector)Implements org. StatementInspector associated with the
SessionFactory, which will be used by all sessions unless a
statement inspector is explicitly specified using
org.
|
| public T | applyStatisticsSupport(boolean
true indicates that statistics gathering should be enabled; false indicates not.Implements org. |
| public T | applyStructuredCacheEntries(boolean
true indicates that structured (human-readable) cache entries should be used;
false indicates that the native entry structure should be used.Implements org. |
| public SessionFactoryBuilder | applySubselectFetchEnabled(boolean
true indicates that subselect fetching is enabledImplements org. |
| public T | |
| public SessionFactoryBuilder | |
| public T | applyValidatorFactory(Object
The Bean Validation validatorFactory)ValidatorFactory to useImplements org. jakarta..
|
| public SessionFactoryBuilder | applyXmlFormatMapper(FormatMapper
The xmlFormatMapper)FormatMapper to use.Implements org. format mapper to use for serialization/deserialization of XML properties.
|
| public SessionFactory | build()
Implements org. |
| protected SessionFactoryBuilder | |
| public SessionFactoryBuilder | enableJpaClosedCompliance(boolean enabled)
Implements org. |
| public SessionFactoryBuilder | enableJpaListCompliance(boolean enabled)
Implements org. |
| public SessionFactoryBuilder | enableJpaOrderByMappingCompliance(boolean enabled)
Implements org. |
| public SessionFactoryBuilder | enableJpaQueryCompliance(boolean enabled)
Implements org. |
| public SessionFactoryBuilder | enableJpaTransactionCompliance(boolean enabled)
Implements org. |
| public T | enableReleaseResourcesOnCloseEnabled(boolean enable)
Implements org. jakarta. be
released immediately on close?
|
| protected abstract T |