FileDocCategorySizeDatePackage
HibernateServiceMBean.javaAPI DocHibernate 3.2.58471Tue Nov 21 17:02:40 GMT 2006org.hibernate.jmx

HibernateServiceMBean

public interface HibernateServiceMBean
Hibernate JMX Management API
see
HibernateService
author
John Urberg, Gavin King

Fields Summary
Constructors Summary
Methods Summary
public voidaddMapResource(java.lang.String mapResource)
Add a mapping file

param
mapResource

public voidcreateSchema()
Export the CREATE DDL to the database

throws
HibernateException

public voiddropSchema()
Export the DROP DDL to the database

throws
HibernateException

public java.lang.StringgetAutoCloseSessionEnabled()
Is automatic Session closing enabled?

public java.lang.StringgetBatchVersionedDataEnabled()
Is JDBC batch update for versioned entities enabled?

public java.lang.StringgetCacheProviderClass()
Get the second-level cache provider class name

public java.lang.StringgetCacheProviderConfig()
For cache providers which support this setting, get the provider's specific configuration resource.

public java.lang.StringgetCacheRegionPrefix()
Get the cache region prefix

public java.lang.StringgetCommentsEnabled()
Are SQL comments enabled?

public java.lang.StringgetDatasource()
The JNDI name of the datasource to use in this SessionFactory

return
String

public java.lang.StringgetDefaultCatalog()
Get the default catalog

public java.lang.StringgetDefaultSchema()
Get the default schema

public java.lang.StringgetDialect()
The JNDI name of the dialect class to use in this SessionFactory

return
String

public java.lang.StringgetFlushBeforeCompletionEnabled()
Is automatic Session flusing enabled?

public java.lang.StringgetGetGeneratedKeysEnabled()
Is use of JDBC3 getGeneratedKeys() enabled?

public java.lang.StringgetJdbcBatchSize()
Get the maximum JDBC batch size

public java.lang.StringgetJdbcFetchSize()
Get the JDBC fetch size

public java.lang.StringgetJdbcScrollableResultSetEnabled()
Is use of scrollable resultsets enabled?

public java.lang.StringgetJndiName()
The JNDI name to bind to the SessionFactory

return
String

public java.lang.StringgetMapResources()
The Hibernate mapping files (might be overridden by subclasses that want to specify the mapping files by some other mechanism)

return
String

public java.lang.StringgetMaximumFetchDepth()
Get the maximum outer join fetch depth

public java.lang.StringgetMinimalPutsEnabled()
Is the second-level cache optimized for miminal puts?

public java.lang.StringgetPassword()
Log into the database with this password

return
String

public java.lang.StringgetProperty(java.lang.String property)
Get a property

param
property the property name
return
the property value

public java.lang.StringgetPropertyList()
Display the properties

return
a list of property names and values

public java.lang.StringgetQueryCacheEnabled()
Is the query cache enabled?

public java.lang.StringgetQuerySubstitutions()
Get the query language substitutions

public java.lang.StringgetSecondLevelCacheEnabled()
Is the second-level cache enabled?

public java.lang.StringgetShowSqlEnabled()
Is SQL logging enabled?

public java.lang.StringgetTransactionManagerLookupStrategy()
Get the strategy for obtaining the JTA TransactionManager

return
the class name
see
org.hibernate.transaction.TransactionManagerLookup

public java.lang.StringgetTransactionStrategy()
The fully qualified class name of the Hibernate TransactionFactory implementation

return
the class name
see
org.hibernate.transaction.TransactionFactory

public java.lang.StringgetUserName()
Log into the database with this name

return
String

public java.lang.StringgetUserTransactionName()
The JNDI name of the JTA UserTransaction object (used only be JTATransaction).

return
the JNDI name
see
org.hibernate.transaction.JTATransaction

public voidsetAutoCloseSessionEnabled(java.lang.String enabled)
Enable automatic closing of Session when JTA transaction ends.

public voidsetBatchVersionedDataEnabled(java.lang.String enabled)
Enable or disable the use of batch updates for versioned entities

public voidsetCacheProviderClass(java.lang.String providerClassName)
Set the second-level cache provider class name

public voidsetCacheProviderConfig(java.lang.String cacheProviderConfig)
For cache providers which support this setting, specify the provider's specific configuration resource.

public voidsetCacheRegionPrefix(java.lang.String prefix)
Set the cache region prefix

public voidsetCommentsEnabled(java.lang.String enabled)
Enable or disable the inclusion of comments in generated SQL

public voidsetDatasource(java.lang.String datasource)
Set the JNDI name of the datasource to use in this SessionFactory

param
datasource

public voidsetDefaultCatalog(java.lang.String catalog)
Set the default catalog

public voidsetDefaultSchema(java.lang.String schema)
Set the default schema

public voidsetDialect(java.lang.String dialect)
The name of the dialect class to use in this SessionFactory

param
dialect fully qualified class name of Dialect subclass
see
org.hibernate.dialect.Dialect

public voidsetFlushBeforeCompletionEnabled(java.lang.String enabled)
Enable automatic flushing of the Session when JTA transaction ends.

public voidsetGetGeneratedKeysEnabled(java.lang.String enabled)
Enable or disable the use getGeneratedKeys()

public voidsetJdbcBatchSize(java.lang.String batchSize)
Set the maximum JDBC batch size

public voidsetJdbcFetchSize(java.lang.String fetchSize)
Set the JDBC fetch size

public voidsetJdbcScrollableResultSetEnabled(java.lang.String enabled)
Enable or disable the use of scrollable resultsets

public voidsetJndiName(java.lang.String jndiName)
The JNDI name to bind to the SessionFactory

param
jndiName

public voidsetMapResources(java.lang.String mappingFiles)
Specify the Hibernate mapping files

param
mappingFiles

public voidsetMaximumFetchDepth(java.lang.String fetchDepth)
Set the maximum outer join fetch depth

public voidsetMinimalPutsEnabled(java.lang.String enabled)
Enable or disable optimization of second-level cache for minimal puts

public voidsetPassword(java.lang.String password)
Log into the database with this password

param
password

public voidsetProperty(java.lang.String property, java.lang.String value)
Set a property

param
property the property name
param
value the property value

public voidsetQueryCacheEnabled(java.lang.String enabled)
Enable or disable the query cache

public voidsetQuerySubstitutions(java.lang.String querySubstitutions)
Set the query language substitutions

public voidsetSecondLevelCacheEnabled(java.lang.String enabled)
Enable or disable the second-level cache

public voidsetShowSqlEnabled(java.lang.String showSql)
Enable logging of SQL to console

public voidsetTransactionManagerLookupStrategy(java.lang.String lkpStrategy)
Set the strategy for obtaining the JTA TransactionManager

param
lkpStrategy the class name
see
org.hibernate.transaction.TransactionManagerLookup

public voidsetTransactionStrategy(java.lang.String txnStrategy)
Set the fully qualified class name of the Hibernate TransactionFactory implementation

param
txnStrategy the class name
see
org.hibernate.transaction.TransactionFactory

public voidsetUserName(java.lang.String userName)
Log into the database with this name

param
userName

public voidsetUserTransactionName(java.lang.String utName)
Set the JNDI name of the JTA UserTransaction object (used only by JTATransaction).

param
utName the JNDI name
see
org.hibernate.transaction.JTATransaction

public voidstart()
Create the SessionFactory and bind to the jndi name on startup

public voidstop()
Unbind the SessionFactory or stub from JNDI