Package | Description |
---|---|
org.hibernate.boot |
This package contains the contracts that make up the Hibernate native
bootstrapping API (building a SessionFactory).
|
org.hibernate.boot.internal | |
org.hibernate.boot.spi | |
org.hibernate.jpa.boot.internal | |
org.hibernate.testing.junit4 |
Modifier and Type | Method and Description |
---|---|
<T extends SessionFactoryBuilder> |
SessionFactoryBuilder.unwrap(Class<T> type)
Allows unwrapping this builder as another, more specific type.
|
Modifier and Type | Method and Description |
---|---|
SessionFactoryBuilder |
SessionFactoryBuilder.addEntityNameResolver(EntityNameResolver... entityNameResolvers)
Specifies one or more entity name resolvers to be applied to the SessionFactory (see the
EntityNameResolver
contract for more information.. |
SessionFactoryBuilder |
SessionFactoryBuilder.addSessionFactoryObservers(SessionFactoryObserver... observers)
Specifies one or more observers to be applied to the SessionFactory.
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyAutoClosing(boolean enabled)
Applies whether Sessions should be automatically closed at the end of the transaction.
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyAutoFlushing(boolean enabled)
Applies whether Sessions should be automatically flushed at the end of the transaction.
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyAutomaticEvictionOfCollectionCaches(boolean enabled)
When using bi-directional many-to-one associations and caching the one-to-many side
it is expected that both sides of the association are managed (actually that is true of
all bi-directional associations).
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyBatchFetchStyle(BatchFetchStyle style)
What style of batching should be used?
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyBeanManager(Object beanManager)
Apply a CDI BeanManager to the SessionFactory being built.
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyCacheRegionPrefix(String prefix)
Apply a prefix to prepended to all cache region names for this SessionFactory.
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyConnectionReleaseMode(ConnectionReleaseMode connectionReleaseMode)
Apply a ConnectionReleaseMode.
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyCurrentTenantIdentifierResolver(CurrentTenantIdentifierResolver resolver)
Specifies a strategy for resolving the notion of a "current" tenant-identifier when using multi-tenancy
together with current sessions
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyCustomEntityDirtinessStrategy(CustomEntityDirtinessStrategy strategy)
Specifies a custom entity dirtiness strategy to be applied to the SessionFactory.
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyDefaultBatchFetchSize(int size)
Allows specifying a default batch-fetch size for all entities and collections
which do not otherwise specify a batch-fetch size.
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyDefaultEntityMode(EntityMode entityMode)
Deprecated.
Different entity modes per entity is soon to be removed as a feature.
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyDefaultNullPrecedence(NullPrecedence nullPrecedence)
Apply a null precedence (NULLS FIRST, NULLS LAST) to be applied order-by clauses rendered into
SQL queries.
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyDirectReferenceCaching(boolean enabled)
Generally, Hibernate will extract the information from an entity and put that
extracted information into the second-level cache.
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyEntityNotFoundDelegate(EntityNotFoundDelegate entityNotFoundDelegate)
Names the
EntityNotFoundDelegate to be applied to the SessionFactory. |
SessionFactoryBuilder |
SessionFactoryBuilder.applyEntityTuplizer(EntityMode entityMode,
Class<? extends EntityTuplizer> tuplizerClass)
Register the default
EntityTuplizer to be applied to the SessionFactory. |
SessionFactoryBuilder |
SessionFactoryBuilder.applyEntityTuplizerFactory(EntityTuplizerFactory entityTuplizerFactory)
Specify the EntityTuplizerFactory to use.
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyGetGeneratedKeysSupport(boolean enabled)
Should JDBC
Statement.getGeneratedKeys() feature be used for
retrieval of *insert-generated* ids? |
SessionFactoryBuilder |
SessionFactoryBuilder.applyIdentifierRollbackSupport(boolean enabled)
Should generated identifiers be "unset" on entities during a rollback?
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyInterceptor(Interceptor interceptor)
Names an interceptor to be applied to the SessionFactory, which in turn means it will be used by all
Sessions unless one is explicitly specified in
SessionBuilder.interceptor(org.hibernate.Interceptor) |
SessionFactoryBuilder |
SessionFactoryBuilder.applyJdbcBatchingForVersionedEntities(boolean enabled)
This setting controls whether versioned entities will be included in JDBC batching.
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyJdbcBatchSize(int size)
Specifies the maximum number of statements to batch together in a JDBC batch for
insert, update and delete operations.
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyJdbcFetchSize(int size)
Apply a fetch size to the JDBC driver for fetching results.
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyJtaTrackingByThread(boolean enabled)
If using the built-in Hibernate JTA-based TransactionCoordinator/Builder, should it track JTA
transactions by thread in an attempt to detect timeouts?
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyLazyInitializationOutsideTransaction(boolean enabled)
Should the application be allowed to initialize uninitialized lazy state outside the bounds of a transaction?
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyMaximumFetchDepth(int depth)
Apply a limit to the depth Hibernate will use for outer joins.
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyMinimalPutsForCaching(boolean enabled)
By default, Hibernate will always just push data into the cache without first checking
if that data already exists.
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyMultiTableBulkIdStrategy(MultiTableBulkIdStrategy strategy)
How should updates and deletes that span multiple tables be handled?
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyMultiTenancyStrategy(MultiTenancyStrategy strategy)
Apply the form of multi-tenancy used by the application
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyName(String sessionFactoryName)
Applies a SessionFactory name.
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyNameAsJndiName(boolean isJndiName)
Applies a SessionFactory name.
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyNamedQueryCheckingOnStartup(boolean enabled)
Should named queries be checked on startup?
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyNullabilityChecking(boolean enabled)
Should attributes using columns marked as not-null be checked (by Hibernate) for nullness?
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyOrderingOfInserts(boolean enabled)
Apply whether ordering of inserts should be enabled.
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyOrderingOfUpdates(boolean enabled)
Apply whether ordering of updates should be enabled.
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyPreferUserTransactions(boolean preferUserTransactions)
If using the built-in Hibernate JTA-based TransactionCoordinator/Builder, should it prefer to use
UserTransaction over Transaction ? |
SessionFactoryBuilder |
SessionFactoryBuilder.applyQueryCacheFactory(QueryCacheFactory factory)
Specifies a QueryCacheFactory to use for building query cache handlers.
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyQueryCacheSupport(boolean enabled)
Should second level query caching support be enabled?
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyQuerySubstitutions(Map substitutions)
Deprecated.
This is a legacy feature and should never be needed anymore...
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyResultSetsWrapping(boolean enabled)
Hibernate currently accesses results from the JDBC ResultSet by name.
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyScrollableResultsSupport(boolean enabled)
Should scrollable results be supported in queries?
|
SessionFactoryBuilder |
SessionFactoryBuilder.applySecondLevelCacheSupport(boolean enabled)
Should second level caching support be enabled?
|
SessionFactoryBuilder |
SessionFactoryBuilder.applySqlComments(boolean enabled)
Should Hibernate apply comments to SQL it generates?
|
SessionFactoryBuilder |
SessionFactoryBuilder.applySqlFunction(String registrationName,
SQLFunction sqlFunction)
Apply a SQLFunction to the underlying
SQLFunctionRegistry . |
SessionFactoryBuilder |
SessionFactoryBuilder.applyStatementInspector(StatementInspector statementInspector)
Names a StatementInspector to be applied to the SessionFactory, which in turn means it will be used by all
Sessions unless one is explicitly specified in
SessionBuilder.statementInspector(org.hibernate.resource.jdbc.spi.StatementInspector) |
SessionFactoryBuilder |
SessionFactoryBuilder.applyStatisticsSupport(boolean enabled)
Applies whether statistics gathering is enabled.
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyStrictJpaQueryLanguageCompliance(boolean enabled)
Should we strictly adhere to JPA Query Language (JPQL) syntax, or more broadly support
all of Hibernate's superset (HQL)?
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyStructuredCacheEntries(boolean enabled)
By default, Hibernate stores data in the cache in its own optimized format.
|
SessionFactoryBuilder |
SessionFactoryBuilder.applyTempTableDdlTransactionHandling(TempTableDdlTransactionHandling handling) |
SessionFactoryBuilder |
SessionFactoryBuilder.applyValidatorFactory(Object validatorFactory)
Apply a Bean Validation ValidatorFactory to the SessionFactory being built.
|
SessionFactoryBuilder |
Metadata.getSessionFactoryBuilder()
Get the builder for
SessionFactory instances based on this metamodel, |
Modifier and Type | Class and Description |
---|---|
class |
SessionFactoryBuilderImpl |
Modifier and Type | Method and Description |
---|---|
<T extends SessionFactoryBuilder> |
SessionFactoryBuilderImpl.unwrap(Class<T> type) |
Modifier and Type | Interface and Description |
---|---|
interface |
SessionFactoryBuilderImplementor
Additional contract for SessionFactoryBuilder mainly intended for implementors
of SessionFactoryBuilderFactory.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractDelegatingSessionFactoryBuilder<T extends AbstractDelegatingSessionFactoryBuilder<T>>
Convenience base class for custom implementors of SessionFactoryBuilder, using delegation
|
Modifier and Type | Method and Description |
---|---|
<S extends SessionFactoryBuilder> |
AbstractDelegatingSessionFactoryBuilder.unwrap(Class<S> type) |
Modifier and Type | Method and Description |
---|---|
SessionFactoryBuilder |
AbstractDelegatingMetadata.getSessionFactoryBuilder() |
SessionFactoryBuilder |
SessionFactoryBuilderFactory.getSessionFactoryBuilder(MetadataImplementor metadata,
SessionFactoryBuilderImplementor defaultBuilder)
The contract method.
|
Constructor and Description |
---|
AbstractDelegatingSessionFactoryBuilder(SessionFactoryBuilder delegate) |
Modifier and Type | Method and Description |
---|---|
protected void |
EntityManagerFactoryBuilderImpl.populate(SessionFactoryBuilder sfBuilder,
StandardServiceRegistry ssr) |
Modifier and Type | Method and Description |
---|---|
protected void |
BaseNonConfigCoreFunctionalTestCase.configureSessionFactoryBuilder(SessionFactoryBuilder sfb) |
Copyright © 2022. All rights reserved.