FileDocCategorySizeDatePackage
Settings.javaAPI DocHibernate 3.2.511178Wed Apr 11 09:25:14 BST 2007org.hibernate.cfg

Settings

public final class Settings extends Object
Settings that affect the behaviour of Hibernate at runtime.
author
Gavin King

Fields Summary
private boolean
showSql
private boolean
formatSql
private Integer
maximumFetchDepth
private Map
querySubstitutions
private org.hibernate.dialect.Dialect
dialect
private int
jdbcBatchSize
private int
defaultBatchFetchSize
private boolean
scrollableResultSetsEnabled
private boolean
getGeneratedKeysEnabled
private String
defaultSchemaName
private String
defaultCatalogName
private Integer
jdbcFetchSize
private String
sessionFactoryName
private boolean
autoCreateSchema
private boolean
autoDropSchema
private boolean
autoUpdateSchema
private boolean
autoValidateSchema
private boolean
queryCacheEnabled
private boolean
structuredCacheEntriesEnabled
private boolean
secondLevelCacheEnabled
private String
cacheRegionPrefix
private boolean
minimalPutsEnabled
private boolean
commentsEnabled
private boolean
statisticsEnabled
private boolean
jdbcBatchVersionedData
private boolean
identifierRollbackEnabled
private boolean
flushBeforeCompletionEnabled
private boolean
autoCloseSessionEnabled
private org.hibernate.ConnectionReleaseMode
connectionReleaseMode
private org.hibernate.cache.CacheProvider
cacheProvider
private org.hibernate.cache.QueryCacheFactory
queryCacheFactory
private org.hibernate.connection.ConnectionProvider
connectionProvider
private org.hibernate.transaction.TransactionFactory
transactionFactory
private org.hibernate.transaction.TransactionManagerLookup
transactionManagerLookup
private org.hibernate.jdbc.BatcherFactory
batcherFactory
private org.hibernate.hql.QueryTranslatorFactory
queryTranslatorFactory
private org.hibernate.exception.SQLExceptionConverter
sqlExceptionConverter
private boolean
wrapResultSetsEnabled
private boolean
orderUpdatesEnabled
private boolean
orderInsertsEnabled
private org.hibernate.EntityMode
defaultEntityMode
private boolean
dataDefinitionImplicitCommit
private boolean
dataDefinitionInTransactionSupported
private boolean
strictJPAQLCompliance
private boolean
namedQueryStartupCheckingEnabled
Constructors Summary
Settings()
Package protected constructor

	
Methods Summary
public org.hibernate.jdbc.BatcherFactorygetBatcherFactory()

		return batcherFactory;
	
public org.hibernate.cache.CacheProvidergetCacheProvider()

		return cacheProvider;
	
public java.lang.StringgetCacheRegionPrefix()

		return cacheRegionPrefix;
	
public org.hibernate.connection.ConnectionProvidergetConnectionProvider()

		return connectionProvider;
	
public org.hibernate.ConnectionReleaseModegetConnectionReleaseMode()

		return connectionReleaseMode;
	
public intgetDefaultBatchFetchSize()

		return defaultBatchFetchSize;
	
public java.lang.StringgetDefaultCatalogName()

		return defaultCatalogName;
	
public org.hibernate.EntityModegetDefaultEntityMode()

		return defaultEntityMode;
	
public java.lang.StringgetDefaultSchemaName()

		return defaultSchemaName;
	
public org.hibernate.dialect.DialectgetDialect()

		return dialect;
	
public intgetJdbcBatchSize()

		return jdbcBatchSize;
	
public java.lang.IntegergetJdbcFetchSize()

		return jdbcFetchSize;
	
public java.lang.IntegergetMaximumFetchDepth()

		return maximumFetchDepth;
	
public org.hibernate.cache.QueryCacheFactorygetQueryCacheFactory()

		return queryCacheFactory;
	
public java.util.MapgetQuerySubstitutions()

		return querySubstitutions;
	
public org.hibernate.hql.QueryTranslatorFactorygetQueryTranslatorFactory()

		return queryTranslatorFactory;
	
public org.hibernate.exception.SQLExceptionConvertergetSQLExceptionConverter()

		return sqlExceptionConverter;
	
public java.lang.StringgetSessionFactoryName()

		return sessionFactoryName;
	
public org.hibernate.transaction.TransactionFactorygetTransactionFactory()

		return transactionFactory;
	
public org.hibernate.transaction.TransactionManagerLookupgetTransactionManagerLookup()

		return transactionManagerLookup;
	
public booleanisAutoCloseSessionEnabled()

		return autoCloseSessionEnabled;
	
public booleanisAutoCreateSchema()

		return autoCreateSchema;
	
public booleanisAutoDropSchema()

		return autoDropSchema;
	
public booleanisAutoUpdateSchema()

		return autoUpdateSchema;
	
public booleanisAutoValidateSchema()

		return autoValidateSchema;
	
public booleanisCommentsEnabled()

		return commentsEnabled;
	
public booleanisDataDefinitionImplicitCommit()

		return dataDefinitionImplicitCommit;
	
public booleanisDataDefinitionInTransactionSupported()

		return dataDefinitionInTransactionSupported;
	
public booleanisFlushBeforeCompletionEnabled()

		return flushBeforeCompletionEnabled;
	
public booleanisFormatSqlEnabled()

		return formatSql;
	
public booleanisGetGeneratedKeysEnabled()

		return getGeneratedKeysEnabled;
	
public booleanisIdentifierRollbackEnabled()

		return identifierRollbackEnabled;
	
public booleanisJdbcBatchVersionedData()

		return jdbcBatchVersionedData;
	
public booleanisMinimalPutsEnabled()

		return minimalPutsEnabled;
	
public booleanisNamedQueryStartupCheckingEnabled()

		return namedQueryStartupCheckingEnabled;
	
public booleanisOrderInsertsEnabled()

		return orderInsertsEnabled;
	
public booleanisOrderUpdatesEnabled()

		return orderUpdatesEnabled;
	
public booleanisQueryCacheEnabled()

		return queryCacheEnabled;
	
public booleanisScrollableResultSetsEnabled()

		return scrollableResultSetsEnabled;
	
public booleanisSecondLevelCacheEnabled()

		return secondLevelCacheEnabled;
	
public booleanisShowSqlEnabled()

		return showSql;
	
public booleanisStatisticsEnabled()

		return statisticsEnabled;
	
public booleanisStrictJPAQLCompliance()

		return strictJPAQLCompliance;
	
public booleanisStructuredCacheEntriesEnabled()

		return structuredCacheEntriesEnabled;
	
public booleanisWrapResultSetsEnabled()

		return wrapResultSetsEnabled;
	
voidsetAutoCloseSessionEnabled(boolean autoCloseSessionEnabled)

		this.autoCloseSessionEnabled = autoCloseSessionEnabled;
	
voidsetAutoCreateSchema(boolean b)

		autoCreateSchema = b;
	
voidsetAutoDropSchema(boolean b)

		autoDropSchema = b;
	
voidsetAutoUpdateSchema(boolean b)

		autoUpdateSchema = b;
	
voidsetAutoValidateSchema(boolean autoValidateSchema)

		this.autoValidateSchema = autoValidateSchema;
	
voidsetBatcherFactory(org.hibernate.jdbc.BatcherFactory batcher)

		this.batcherFactory = batcher;
	
voidsetCacheProvider(org.hibernate.cache.CacheProvider cacheProvider)

		this.cacheProvider = cacheProvider;
	
voidsetCacheRegionPrefix(java.lang.String cacheRegionPrefix)

		this.cacheRegionPrefix = cacheRegionPrefix;
	
voidsetCommentsEnabled(boolean commentsEnabled)

		this.commentsEnabled = commentsEnabled;
	
voidsetConnectionProvider(org.hibernate.connection.ConnectionProvider provider)

		connectionProvider = provider;
	
voidsetConnectionReleaseMode(org.hibernate.ConnectionReleaseMode connectionReleaseMode)

		this.connectionReleaseMode = connectionReleaseMode;
	
voidsetDataDefinitionImplicitCommit(boolean dataDefinitionImplicitCommit)

		this.dataDefinitionImplicitCommit = dataDefinitionImplicitCommit;
	
voidsetDataDefinitionInTransactionSupported(boolean dataDefinitionInTransactionSupported)

		this.dataDefinitionInTransactionSupported = dataDefinitionInTransactionSupported;
	
voidsetDefaultBatchFetchSize(int i)

		defaultBatchFetchSize = i;
	
voidsetDefaultCatalogName(java.lang.String string)

		defaultCatalogName = string;
	
voidsetDefaultEntityMode(org.hibernate.EntityMode defaultEntityMode)

		this.defaultEntityMode = defaultEntityMode;
	
voidsetDefaultSchemaName(java.lang.String string)

		defaultSchemaName = string;
	
voidsetDialect(org.hibernate.dialect.Dialect dialect)

		this.dialect = dialect;
	
voidsetFlushBeforeCompletionEnabled(boolean flushBeforeCompletionEnabled)

		this.flushBeforeCompletionEnabled = flushBeforeCompletionEnabled;
	
voidsetFormatSqlEnabled(boolean b)

		formatSql = b;
	
voidsetGetGeneratedKeysEnabled(boolean b)

		getGeneratedKeysEnabled = b;
	
voidsetIdentifierRollbackEnabled(boolean b)

		identifierRollbackEnabled = b;
	
voidsetJdbcBatchSize(int i)

		jdbcBatchSize = i;
	
voidsetJdbcBatchVersionedData(boolean jdbcBatchVersionedData)

		this.jdbcBatchVersionedData = jdbcBatchVersionedData;
	
voidsetJdbcFetchSize(java.lang.Integer integer)

		jdbcFetchSize = integer;
	
voidsetMaximumFetchDepth(java.lang.Integer i)

		maximumFetchDepth = i;
	
voidsetMinimalPutsEnabled(boolean b)

		minimalPutsEnabled = b;
	
voidsetNamedQueryStartupCheckingEnabled(boolean namedQueryStartupCheckingEnabled)

		this.namedQueryStartupCheckingEnabled = namedQueryStartupCheckingEnabled;
	
voidsetOrderInsertsEnabled(boolean orderInsertsEnabled)

		this.orderInsertsEnabled = orderInsertsEnabled;
	
voidsetOrderUpdatesEnabled(boolean orderUpdatesEnabled)

		this.orderUpdatesEnabled = orderUpdatesEnabled;
	
voidsetQueryCacheEnabled(boolean b)

		queryCacheEnabled = b;
	
voidsetQueryCacheFactory(org.hibernate.cache.QueryCacheFactory queryCacheFactory)

		this.queryCacheFactory = queryCacheFactory;
	
voidsetQuerySubstitutions(java.util.Map map)

		querySubstitutions = map;
	
voidsetQueryTranslatorFactory(org.hibernate.hql.QueryTranslatorFactory queryTranslatorFactory)

		this.queryTranslatorFactory = queryTranslatorFactory;
	
voidsetSQLExceptionConverter(org.hibernate.exception.SQLExceptionConverter sqlExceptionConverter)

		this.sqlExceptionConverter = sqlExceptionConverter;
	
voidsetScrollableResultSetsEnabled(boolean b)

		scrollableResultSetsEnabled = b;
	
voidsetSecondLevelCacheEnabled(boolean secondLevelCacheEnabled)

		this.secondLevelCacheEnabled = secondLevelCacheEnabled;
	
voidsetSessionFactoryName(java.lang.String string)

		sessionFactoryName = string;
	
voidsetShowSqlEnabled(boolean b)

		showSql = b;
	
voidsetStatisticsEnabled(boolean statisticsEnabled)

		this.statisticsEnabled = statisticsEnabled;
	
voidsetStrictJPAQLCompliance(boolean strictJPAQLCompliance)

		this.strictJPAQLCompliance = strictJPAQLCompliance;
	
voidsetStructuredCacheEntriesEnabled(boolean structuredCacheEntriesEnabled)

		this.structuredCacheEntriesEnabled = structuredCacheEntriesEnabled;
	
voidsetTransactionFactory(org.hibernate.transaction.TransactionFactory factory)

		transactionFactory = factory;
	
voidsetTransactionManagerLookup(org.hibernate.transaction.TransactionManagerLookup lookup)

		transactionManagerLookup = lookup;
	
voidsetWrapResultSetsEnabled(boolean wrapResultSetsEnabled)

		this.wrapResultSetsEnabled = wrapResultSetsEnabled;