Top Description Fields Constructors Methods
org.hibernate.cfg

public final Class Settings

extends Object
Class Inheritance
Annotations
@SuppressWarnings:unused
@Deprecated
Imports
java.util.Map, org.hibernate.ConnectionReleaseMode, .EntityMode, .MultiTenancyStrategy, .NullPrecedence, org.hibernate.boot.Metadata, .SchemaAutoTooling, org.hibernate.boot.model.naming.Identifier, org.hibernate.boot.spi.SessionFactoryOptions, org.hibernate.cache.spi.RegionFactory, .TimestampsCacheFactory, org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform, org.hibernate.hql.spi.QueryTranslatorFactory, org.hibernate.hql.spi.id.MultiTableBulkIdStrategy, org.hibernate.loader.BatchFetchStyle, org.hibernate.tuple.entity.EntityTuplizerFactory, org.jboss.logging.Logger

Deprecated

Use org.hibernate.boot.spi.SessionFactoryOptions instead.

Settings that affect the behaviour of Hibernate at runtime.
Authors
Gavin King, Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final String
private final String
private static final Logger
private final SessionFactoryOptions

Constructor Summary

AccessConstructor and Description
public
Settings(SessionFactoryOptions sessionFactoryOptions)

public
Settings(SessionFactoryOptions sessionFactoryOptions, Metadata metadata)

public
Settings(SessionFactoryOptions sessionFactoryOptions, String defaultCatalogName, String defaultSchemaName)

Method Summary

Modifier and TypeMethod and Description
private static String
enabledDisabled(boolean value)

private static String
extractName(Identifier identifier)

public BaselineSessionEventsListenerBuilder
public BatchFetchStyle
public String
public ConnectionReleaseMode
public int
public String
public EntityMode
public NullPrecedence
public String
public EntityTuplizerFactory
public int
public Integer
public JtaPlatform
public Integer
public MultiTableBulkIdStrategy
public MultiTenancyStrategy
public Map<K, V>
public QueryTranslatorFactory
public RegionFactory
public String
public TimestampsCacheFactory
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public void
setCheckNullability(boolean enabled)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

defaultCatalogNameback to summary
private final String defaultCatalogName
defaultSchemaNameback to summary
private final String defaultSchemaName
LOGback to summary
private static final Logger LOG
sessionFactoryOptionsback to summary
private final SessionFactoryOptions sessionFactoryOptions

Constructor Detail

Settingsback to summary
public Settings(SessionFactoryOptions sessionFactoryOptions)
Settingsback to summary
public Settings(SessionFactoryOptions sessionFactoryOptions, Metadata metadata)
Settingsback to summary
public Settings(SessionFactoryOptions sessionFactoryOptions, String defaultCatalogName, String defaultSchemaName)

Method Detail

enabledDisabledback to summary
private static String enabledDisabled(boolean value)
extractNameback to summary
private static String extractName(Identifier identifier)
getBaselineSessionEventsListenerBuilderback to summary
public BaselineSessionEventsListenerBuilder getBaselineSessionEventsListenerBuilder()
getBatchFetchStyleback to summary
public BatchFetchStyle getBatchFetchStyle()
getCacheRegionPrefixback to summary
public String getCacheRegionPrefix()
getConnectionReleaseModeback to summary
public ConnectionReleaseMode getConnectionReleaseMode()
getDefaultBatchFetchSizeback to summary
public int getDefaultBatchFetchSize()
getDefaultCatalogNameback to summary
public String getDefaultCatalogName()
getDefaultEntityModeback to summary
public EntityMode getDefaultEntityMode()
getDefaultNullPrecedenceback to summary
public NullPrecedence getDefaultNullPrecedence()
getDefaultSchemaNameback to summary
public String getDefaultSchemaName()
getEntityTuplizerFactoryback to summary
public EntityTuplizerFactory getEntityTuplizerFactory()
getJdbcBatchSizeback to summary
public int getJdbcBatchSize()
getJdbcFetchSizeback to summary
public Integer getJdbcFetchSize()
getJtaPlatformback to summary
public JtaPlatform getJtaPlatform()
getMaximumFetchDepthback to summary
public Integer getMaximumFetchDepth()
getMultiTableBulkIdStrategyback to summary
public MultiTableBulkIdStrategy getMultiTableBulkIdStrategy()
getMultiTenancyStrategyback to summary
public MultiTenancyStrategy getMultiTenancyStrategy()
getQuerySubstitutionsback to summary
public Map<K, V> getQuerySubstitutions()
getQueryTranslatorFactoryback to summary
public QueryTranslatorFactory getQueryTranslatorFactory()
getRegionFactoryback to summary
public RegionFactory getRegionFactory()
getSessionFactoryNameback to summary
public String getSessionFactoryName()
getTimestampsCacheFactoryback to summary
public TimestampsCacheFactory getTimestampsCacheFactory()
isAutoCloseSessionEnabledback to summary
public boolean isAutoCloseSessionEnabled()
isAutoCreateSchemaback to summary
public boolean isAutoCreateSchema()
isAutoDropSchemaback to summary
public boolean isAutoDropSchema()
isAutoEvictCollectionCacheback to summary
public boolean isAutoEvictCollectionCache()
isAutoUpdateSchemaback to summary
public boolean isAutoUpdateSchema()
isAutoValidateSchemaback to summary
public boolean isAutoValidateSchema()
isCheckNullabilityback to summary
public boolean isCheckNullability()
isCommentsEnabledback to summary
public boolean isCommentsEnabled()
isDirectReferenceCacheEntriesEnabledback to summary
public boolean isDirectReferenceCacheEntriesEnabled()
isFlushBeforeCompletionEnabledback to summary
public boolean isFlushBeforeCompletionEnabled()
isGetGeneratedKeysEnabledback to summary
public boolean isGetGeneratedKeysEnabled()
isIdentifierRollbackEnabledback to summary
public boolean isIdentifierRollbackEnabled()
isInitializeLazyStateOutsideTransactionsEnabledback to summary
public boolean isInitializeLazyStateOutsideTransactionsEnabled()
isJdbcBatchVersionedDataback to summary
public boolean isJdbcBatchVersionedData()
isJtaTrackByThreadback to summary
public boolean isJtaTrackByThread()
isMinimalPutsEnabledback to summary
public boolean isMinimalPutsEnabled()
isNamedQueryStartupCheckingEnabledback to summary
public boolean isNamedQueryStartupCheckingEnabled()
isOrderInsertsEnabledback to summary
public boolean isOrderInsertsEnabled()
isOrderUpdatesEnabledback to summary
public boolean isOrderUpdatesEnabled()
isPreferUserTransactionback to summary
public boolean isPreferUserTransaction()
isQueryCacheEnabledback to summary
public boolean isQueryCacheEnabled()
isScrollableResultSetsEnabledback to summary
public boolean isScrollableResultSetsEnabled()
isSecondLevelCacheEnabledback to summary
public boolean isSecondLevelCacheEnabled()
isSessionFactoryNameAlsoJndiNameback to summary
public boolean isSessionFactoryNameAlsoJndiName()
isStatisticsEnabledback to summary
public boolean isStatisticsEnabled()
isStrictJPAQLComplianceback to summary
public boolean isStrictJPAQLCompliance()
isStructuredCacheEntriesEnabledback to summary
public boolean isStructuredCacheEntriesEnabled()
isWrapResultSetsEnabledback to summary
public boolean isWrapResultSetsEnabled()
setCheckNullabilityback to summary
public void setCheckNullability(boolean enabled)