SessionFactoryBuilder
| 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. org.
contract for more information..
|
| 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. |
| public T | applyAutoFlushing(boolean
true indicates they should be auto-flushed; false indicates not.Implements org. |
| 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. |
| public T | applyBeanManager(Object
The CDI BeanManager to use beanManager)Implements org. |
| public T | applyCacheRegionPrefix(String
The prefix. prefix)Implements org. |
| public T | applyConnectionHandlingMode(PhysicalConnectionHandlingMode
The handling mode to apply connectionHandlingMode)Implements org. |
| public SessionFactoryBuilder | applyConnectionProviderDisablesAutoCommit(boolean providerDisablesAutoCommit)
Overrides default org. |
| public T | applyConnectionReleaseMode(ConnectionReleaseMode
The ConnectionReleaseMode to use. connectionReleaseMode)Implements org. |
| public T | applyCurrentTenantIdentifierResolver(CurrentTenantIdentifierResolver
The resolution strategy to use. resolver)Implements org. |
| public T | applyCustomEntityDirtinessStrategy(CustomEntityDirtinessStrategy
The custom strategy to be used. strategy)Implements org. |
| 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 | applyDefaultEntityMode(EntityMode
The default entity mode to use. entityMode)Implements org. |
| public T | applyDefaultNullPrecedence(NullPrecedence
The default null precedence to use. nullPrecedence)Implements org. |
| 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. org. to be applied to the SessionFactory.
|
| public T | 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 T | applyEntityTuplizerFactory(EntityTuplizerFactory
The EntityTuplizerFactory to use. entityTuplizerFactory)Implements org. |
| 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. 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 T | applyJtaTrackingByThread(boolean
true indicates we should track by thread; false indicates notImplements org. |
| 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 | applyMultiTableBulkIdStrategy(MultiTableBulkIdStrategy
The strategy for handling multi-table updates and deletes. strategy)Implements org. |
| public T | applyMultiTenancyStrategy(MultiTenancyStrategy
The form of multi-tenancy in use. strategy)Implements org. |
| public T | applyName(String
The name to use for the SessionFactory being built sessionFactoryName)Implements org. |
| public T | applyNameAsJndiName(boolean
true indicates that the name specified in
applyName will be used for binding the SessionFactory into JNDI.Implements org. |
| 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 javax.;
false indicates we should prefer javax.Implements org. javax. over javax.?
|
| 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 | applyQuerySubstitutions(Map<K, V>
The substitution map substitutions)Implements org. |
| public T | applyResultSetsWrapping(boolean
true indicates Hibernate should wrap result sets; false indicates
it should not.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 name to register it under. registrationName, SQLFunction The SQLFunction impl sqlFunction)Implements org. org..
|
| public T | 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 T | applyStatelessInterceptor(Class<? extends Interceptor>
The interceptor class statelessInterceptorClass)Implements org. org.
|
| public T | applyStatementInspector(StatementInspector
The StatementInspector statementInspector)Implements org. org.
|
| public T | applyStatisticsSupport(boolean
true indicates that statistics gathering should be enabled; false indicates not.Implements org. |
| public T | 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 T | 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 T | |
| public SessionFactoryBuilder | applyTimestampsCacheFactory(TimestampsCacheFactory
The QueryCacheFactory to use factory)Implements org. |
| public T | 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.
|
| protected SessionFactoryBuilder | |
| 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 T | enableReleaseResourcesOnCloseEnabled(boolean enable)
Implements org. javax. instance be released immediately on close?
|
| protected abstract T | |
| public <S extends SessionFactoryBuilder> S | unwrap(Class<S> type)
Implements org. |