| Modifier and Type | Field and Description |
|---|---|
| private final MetadataImplementor | |
| private final SessionFactoryOptionsBuilder |
| Access | Constructor and Description |
|---|---|
| public | |
| public | SessionFactoryBuilderImpl(MetadataImplementor metadata, SessionFactoryOptionsBuilder optionsBuilder)
|
| Modifier and Type | Method and Description |
|---|---|
| public SessionFactoryBuilder | addEntityNameResolver(EntityNameResolver...
The entityNameResolvers to add entityNameResolvers)Implements org. org.
contract for more information..
|
| public SessionFactoryBuilder | addSessionFactoryObservers(SessionFactoryObserver...
The observers to add observers)Implements org. |
| public SessionFactoryBuilder | |
| public SessionFactoryBuilder | applyAutoClosing(boolean
true indicates they should be auto-closed; false indicates not.Implements org. |
| public SessionFactoryBuilder | applyAutoFlushing(boolean
true indicates they should be auto-flushed; false indicates not.Implements org. |
| public SessionFactoryBuilder | applyAutomaticEvictionOfCollectionCaches(boolean
true indicates that these collection caches should be evicted automatically.Implements org. |
| public SessionFactoryBuilder | applyBatchFetchStyle(BatchFetchStyle
The style to use style)Implements org. |
| public SessionFactoryBuilder | applyBeanManager(Object
The CDI BeanManager to use beanManager)Implements org. |
| public SessionFactoryBuilder | applyCacheRegionPrefix(String
The prefix. prefix)Implements org. |
| public SessionFactoryBuilder | applyConnectionHandlingMode(PhysicalConnectionHandlingMode
The handling mode to apply connectionHandlingMode)Implements org. |
| public SessionFactoryBuilder | applyConnectionProviderDisablesAutoCommit(boolean providerDisablesAutoCommit)
Overrides default org. |
| public SessionFactoryBuilder | applyConnectionReleaseMode(ConnectionReleaseMode
The ConnectionReleaseMode to use. connectionReleaseMode)Implements org. |
| public SessionFactoryBuilder | applyCurrentTenantIdentifierResolver(CurrentTenantIdentifierResolver
The resolution strategy to use. resolver)Implements org. |
| public SessionFactoryBuilder | applyCustomEntityDirtinessStrategy(CustomEntityDirtinessStrategy
The custom strategy to be used. strategy)Implements org. |
| public SessionFactoryBuilder | 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 SessionFactoryBuilder | applyDefaultEntityMode(EntityMode
The default entity mode to use. entityMode)Implements org. |
| public SessionFactoryBuilder | applyDefaultNullPrecedence(NullPrecedence
The default null precedence to use. nullPrecedence)Implements org. |
| public SessionFactoryBuilder | applyDelayedEntityLoaderCreations(boolean delay)
Implements org. |
| public SessionFactoryBuilder | 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 SessionFactoryBuilder | applyEntityNotFoundDelegate(EntityNotFoundDelegate
The delegate/strategy to use. entityNotFoundDelegate)Implements org. org. to be applied to the SessionFactory.
|
| public SessionFactoryBuilder | applyEntityTuplizer(EntityMode
The entity mode that which this tuplizer will be applied. entityMode, Class<? extends EntityTuplizer> The custom tuplizer class. tuplizerClass)Implements org. org. to be applied to the SessionFactory.
|
| public SessionFactoryBuilder | applyEntityTuplizerFactory(EntityTuplizerFactory
The EntityTuplizerFactory to use. entityTuplizerFactory)Implements org. |
| public SessionFactoryBuilder | 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 SessionFactoryBuilder | applyIdentifierRollbackSupport(boolean
true indicates identifiers should be unset; false indicates not.Implements org. |
| public SessionFactoryBuilder | applyInterceptor(Interceptor
The interceptor interceptor)Implements org. org.
|
| public SessionFactoryBuilder | applyJdbcBatchingForVersionedEntities(boolean
The batch size to use. enabled)Implements org. |
| public SessionFactoryBuilder | applyJdbcBatchSize(int
The batch size to use. size)Implements org. |
| public SessionFactoryBuilder | applyJdbcFetchSize(int
The fetch size to be passed to the driver. size)Implements org. |
| public SessionFactoryBuilder | applyJtaTrackingByThread(boolean
true indicates we should track by thread; false indicates notImplements org. |
| public SessionFactoryBuilder | applyLazyInitializationOutsideTransaction(boolean
true indicates initialization outside the transaction should be allowed; false
indicates it should not.Implements org. |
| public SessionFactoryBuilder | applyMaximumFetchDepth(int
The depth for limiting joins. depth)Implements org. |
| public SessionFactoryBuilder | 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 SessionFactoryBuilder | applyMultiTableBulkIdStrategy(MultiTableBulkIdStrategy
The strategy for handling multi-table updates and deletes. strategy)Implements org. |
| public SessionFactoryBuilder | applyMultiTenancyStrategy(MultiTenancyStrategy
The form of multi-tenancy in use. strategy)Implements org. |
| public SessionFactoryBuilder | applyName(String
The name to use for the SessionFactory being built sessionFactoryName)Implements org. |
| public SessionFactoryBuilder | applyNameAsJndiName(boolean
true indicates that the name specified in
applyName will be used for binding the SessionFactory into JNDI.Implements org. |
| public SessionFactoryBuilder | applyNamedQueryCheckingOnStartup(boolean
true indicates that they should; false indicates they should not.Implements org. |
| public SessionFactoryBuilder | applyNullabilityChecking(boolean
true indicates that Hibernate should perform nullness checking; false indicates
it should not.Implements org. |
| public SessionFactoryBuilder | applyOrderingOfInserts(boolean
true indicates that ordering should be enabled; false indicates notImplements org. |
| public SessionFactoryBuilder | applyOrderingOfUpdates(boolean
true indicates that ordering should be enabled; false indicates notImplements org. |
| public SessionFactoryBuilder | applyPreferUserTransactions(boolean
true indicates we should prefer javax.;
false indicates we should prefer javax.Implements org. javax. over javax.?
|
| public SessionFactoryBuilder | 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 SessionFactoryBuilder | applyQuerySubstitutions(Map<K, V>
The substitution map substitutions)Implements org. |
| public SessionFactoryBuilder | applyResultSetsWrapping(boolean
true indicates Hibernate should wrap result sets; false indicates
it should not.Implements org. |
| public SessionFactoryBuilder | applyScrollableResultsSupport(boolean
true to enable this support, false to disable itImplements org. |
| public SessionFactoryBuilder | 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 SessionFactoryBuilder | applySqlComments(boolean
true indicates comments should be applied; false indicates not.Implements org. |
| public SessionFactoryBuilder | applySqlFunction(String
The name to register it under. registrationName, SQLFunction The SQLFunction impl sqlFunction)Implements org. org..
|
| public SessionFactoryBuilder | applyStatelessInterceptor(Class<? extends Interceptor>
The interceptor class statelessInterceptorClass)Implements org. org.
|
| public SessionFactoryBuilder | applyStatelessInterceptor(Supplier<? extends Interceptor>
Supplier instance which is used to retrieve the interceptorImplements org. Supplier instance which is used to retrieve the interceptor to be applied to the SessionFactory,
which in turn means it will be used by all Sessions unless one is explicitly specified in
org.
|
| public SessionFactoryBuilder | applyStatementInspector(StatementInspector
The StatementInspector statementInspector)Implements org. org.
|
| public SessionFactoryBuilder | applyStatisticsSupport(boolean
true indicates that statistics gathering should be enabled; false indicates not.Implements org. |
| public SessionFactoryBuilder | applyStrictJpaQueryLanguageCompliance(boolean
true indicates that we should strictly adhere to the JPQL subset; false
indicates we should accept the broader HQL syntax.Implements org. |
| public SessionFactoryBuilder | applyStructuredCacheEntries(boolean
true indicates that structured cache entries (human readable) should be used;
false indicates that the native entry structure should be used.Implements org. |
| public SessionFactoryBuilder | |
| public SessionFactoryBuilder | applyTimestampsCacheFactory(TimestampsCacheFactory
The QueryCacheFactory to use factory)Implements org. |
| public SessionFactoryBuilder | applyValidatorFactory(Object
The Bean Validation ValidatorFactory to use validatorFactory)Implements org. |
| public SessionFactory | build()
Implements org.
Deprecated
as a consequence of
After all options have been set, build the SessionFactory.
SessionFactory being deprecated.
|
| public SessionFactoryOptions | buildSessionFactoryOptions()
Implements org. |
| public void | |
| public void | |
| public void | |
| public SessionFactoryBuilder | enableJpaClosedCompliance(boolean enabled)
Implements org. |
| public SessionFactoryBuilder | enableJpaListCompliance(boolean enabled)
Implements org. |
| public SessionFactoryBuilder | enableJpaQueryCompliance(boolean enabled)
Implements org. |
| public SessionFactoryBuilder | enableJpaTransactionCompliance(boolean enabled)
Implements org. |
| public SessionFactoryBuilder | enableReleaseResourcesOnCloseEnabled(boolean enable)
Implements org. javax. instance be released immediately on close?
|
| public <T extends SessionFactoryBuilder> T | unwrap(Class<T> type)
Implements org. |