public interface

HibernateServiceMBean

org.hibernate.jmx.HibernateServiceMBean
Known Indirect Subclasses

Class Overview

Hibernate JMX Management API

See Also

Summary

Public Methods
abstract void addMapResource(String mapResource)
Add a mapping file
abstract void createSchema()
Export the CREATE DDL to the database
abstract void dropSchema()
Export the DROP DDL to the database
abstract String getAutoCloseSessionEnabled()
Is automatic Session closing enabled?
abstract String getBatchVersionedDataEnabled()
Is JDBC batch update for versioned entities enabled?
abstract String getCacheProviderClass()
Get the second-level cache provider class name
abstract String getCacheProviderConfig()
For cache providers which support this setting, get the provider's specific configuration resource.
abstract String getCacheRegionPrefix()
Get the cache region prefix
abstract String getCommentsEnabled()
Are SQL comments enabled?
abstract String getDatasource()
The JNDI name of the datasource to use in this SessionFactory
abstract String getDefaultCatalog()
Get the default catalog
abstract String getDefaultSchema()
Get the default schema
abstract String getDialect()
The JNDI name of the dialect class to use in this SessionFactory
abstract String getFlushBeforeCompletionEnabled()
Is automatic Session flusing enabled?
abstract String getGetGeneratedKeysEnabled()
Is use of JDBC3 getGeneratedKeys() enabled?
abstract String getJdbcBatchSize()
Get the maximum JDBC batch size
abstract String getJdbcFetchSize()
Get the JDBC fetch size
abstract String getJdbcScrollableResultSetEnabled()
Is use of scrollable resultsets enabled?
abstract String getJndiName()
The JNDI name to bind to the SessionFactory
abstract String getMapResources()
The Hibernate mapping files (might be overridden by subclasses that want to specify the mapping files by some other mechanism)
abstract String getMaximumFetchDepth()
Get the maximum outer join fetch depth
abstract String getMinimalPutsEnabled()
Is the second-level cache optimized for miminal puts?
abstract String getPassword()
Log into the database with this password
abstract String getProperty(String property)
Get a property
abstract String getPropertyList()
Display the properties
abstract String getQueryCacheEnabled()
Is the query cache enabled?
abstract String getQuerySubstitutions()
Get the query language substitutions
abstract String getSecondLevelCacheEnabled()
Is the second-level cache enabled?
abstract String getShowSqlEnabled()
Is SQL logging enabled?
abstract String getTransactionManagerLookupStrategy()
Get the strategy for obtaining the JTA TransactionManager
abstract String getTransactionStrategy()
The fully qualified class name of the Hibernate TransactionFactory implementation
abstract String getUserName()
Log into the database with this name
abstract String getUserTransactionName()
The JNDI name of the JTA UserTransaction object (used only be JTATransaction).
abstract void setAutoCloseSessionEnabled(String enabled)
Enable automatic closing of Session when JTA transaction ends.
abstract void setBatchVersionedDataEnabled(String enabled)
Enable or disable the use of batch updates for versioned entities
abstract void setCacheProviderClass(String providerClassName)
Set the second-level cache provider class name
abstract void setCacheProviderConfig(String cacheProviderConfig)
For cache providers which support this setting, specify the provider's specific configuration resource.
abstract void setCacheRegionPrefix(String prefix)
Set the cache region prefix
abstract void setCommentsEnabled(String enabled)
Enable or disable the inclusion of comments in generated SQL
abstract void setDatasource(String datasource)
Set the JNDI name of the datasource to use in this SessionFactory
abstract void setDefaultCatalog(String catalog)
Set the default catalog
abstract void setDefaultSchema(String schema)
Set the default schema
abstract void setDialect(String dialect)
The name of the dialect class to use in this SessionFactory
abstract void setFlushBeforeCompletionEnabled(String enabled)
Enable automatic flushing of the Session when JTA transaction ends.
abstract void setGetGeneratedKeysEnabled(String enabled)
Enable or disable the use getGeneratedKeys()
abstract void setJdbcBatchSize(String batchSize)
Set the maximum JDBC batch size
abstract void setJdbcFetchSize(String fetchSize)
Set the JDBC fetch size
abstract void setJdbcScrollableResultSetEnabled(String enabled)
Enable or disable the use of scrollable resultsets
abstract void setJndiName(String jndiName)
The JNDI name to bind to the SessionFactory
abstract void setMapResources(String mappingFiles)
Specify the Hibernate mapping files
abstract void setMaximumFetchDepth(String fetchDepth)
Set the maximum outer join fetch depth
abstract void setMinimalPutsEnabled(String enabled)
Enable or disable optimization of second-level cache for minimal puts
abstract void setPassword(String password)
Log into the database with this password
abstract void setProperty(String property, String value)
Set a property
abstract void setQueryCacheEnabled(String enabled)
Enable or disable the query cache
abstract void setQuerySubstitutions(String querySubstitutions)
Set the query language substitutions
abstract void setSecondLevelCacheEnabled(String enabled)
Enable or disable the second-level cache
abstract void setShowSqlEnabled(String showSql)
Enable logging of SQL to console
abstract void setTransactionManagerLookupStrategy(String lkpStrategy)
Set the strategy for obtaining the JTA TransactionManager
abstract void setTransactionStrategy(String txnStrategy)
Set the fully qualified class name of the Hibernate TransactionFactory implementation
abstract void setUserName(String userName)
Log into the database with this name
abstract void setUserTransactionName(String utName)
Set the JNDI name of the JTA UserTransaction object (used only by JTATransaction).
abstract void start()
Create the SessionFactory and bind to the jndi name on startup
abstract void stop()
Unbind the SessionFactory or stub from JNDI

Public Methods

public abstract void addMapResource (String mapResource)

Add a mapping file

public abstract void createSchema ()

Export the CREATE DDL to the database

public abstract void dropSchema ()

Export the DROP DDL to the database

public abstract String getAutoCloseSessionEnabled ()

Is automatic Session closing enabled?

public abstract String getBatchVersionedDataEnabled ()

Is JDBC batch update for versioned entities enabled?

public abstract String getCacheProviderClass ()

Get the second-level cache provider class name

public abstract String getCacheProviderConfig ()

For cache providers which support this setting, get the provider's specific configuration resource.

public abstract String getCacheRegionPrefix ()

Get the cache region prefix

public abstract String getCommentsEnabled ()

Are SQL comments enabled?

public abstract String getDatasource ()

The JNDI name of the datasource to use in this SessionFactory

Returns
  • String

public abstract String getDefaultCatalog ()

Get the default catalog

public abstract String getDefaultSchema ()

Get the default schema

public abstract String getDialect ()

The JNDI name of the dialect class to use in this SessionFactory

Returns
  • String

public abstract String getFlushBeforeCompletionEnabled ()

Is automatic Session flusing enabled?

public abstract String getGetGeneratedKeysEnabled ()

Is use of JDBC3 getGeneratedKeys() enabled?

public abstract String getJdbcBatchSize ()

Get the maximum JDBC batch size

public abstract String getJdbcFetchSize ()

Get the JDBC fetch size

public abstract String getJdbcScrollableResultSetEnabled ()

Is use of scrollable resultsets enabled?

public abstract String getJndiName ()

The JNDI name to bind to the SessionFactory

Returns
  • String

public abstract String getMapResources ()

The Hibernate mapping files (might be overridden by subclasses that want to specify the mapping files by some other mechanism)

Returns
  • String

public abstract String getMaximumFetchDepth ()

Get the maximum outer join fetch depth

public abstract String getMinimalPutsEnabled ()

Is the second-level cache optimized for miminal puts?

public abstract String getPassword ()

Log into the database with this password

Returns
  • String

public abstract String getProperty (String property)

Get a property

Parameters
property the property name
Returns
  • the property value

public abstract String getPropertyList ()

Display the properties

Returns
  • a list of property names and values

public abstract String getQueryCacheEnabled ()

Is the query cache enabled?

public abstract String getQuerySubstitutions ()

Get the query language substitutions

public abstract String getSecondLevelCacheEnabled ()

Is the second-level cache enabled?

public abstract String getShowSqlEnabled ()

Is SQL logging enabled?

public abstract String getTransactionManagerLookupStrategy ()

Get the strategy for obtaining the JTA TransactionManager

Returns
  • the class name

public abstract String getTransactionStrategy ()

The fully qualified class name of the Hibernate TransactionFactory implementation

Returns
  • the class name

public abstract String getUserName ()

Log into the database with this name

Returns
  • String

public abstract String getUserTransactionName ()

The JNDI name of the JTA UserTransaction object (used only be JTATransaction).

Returns
  • the JNDI name
See Also

public abstract void setAutoCloseSessionEnabled (String enabled)

Enable automatic closing of Session when JTA transaction ends.

public abstract void setBatchVersionedDataEnabled (String enabled)

Enable or disable the use of batch updates for versioned entities

public abstract void setCacheProviderClass (String providerClassName)

Set the second-level cache provider class name

public abstract void setCacheProviderConfig (String cacheProviderConfig)

For cache providers which support this setting, specify the provider's specific configuration resource.

public abstract void setCacheRegionPrefix (String prefix)

Set the cache region prefix

public abstract void setCommentsEnabled (String enabled)

Enable or disable the inclusion of comments in generated SQL

public abstract void setDatasource (String datasource)

Set the JNDI name of the datasource to use in this SessionFactory

public abstract void setDefaultCatalog (String catalog)

Set the default catalog

public abstract void setDefaultSchema (String schema)

Set the default schema

public abstract void setDialect (String dialect)

The name of the dialect class to use in this SessionFactory

Parameters
dialect fully qualified class name of Dialect subclass
See Also

public abstract void setFlushBeforeCompletionEnabled (String enabled)

Enable automatic flushing of the Session when JTA transaction ends.

public abstract void setGetGeneratedKeysEnabled (String enabled)

Enable or disable the use getGeneratedKeys()

public abstract void setJdbcBatchSize (String batchSize)

Set the maximum JDBC batch size

public abstract void setJdbcFetchSize (String fetchSize)

Set the JDBC fetch size

public abstract void setJdbcScrollableResultSetEnabled (String enabled)

Enable or disable the use of scrollable resultsets

public abstract void setJndiName (String jndiName)

The JNDI name to bind to the SessionFactory

public abstract void setMapResources (String mappingFiles)

Specify the Hibernate mapping files

public abstract void setMaximumFetchDepth (String fetchDepth)

Set the maximum outer join fetch depth

public abstract void setMinimalPutsEnabled (String enabled)

Enable or disable optimization of second-level cache for minimal puts

public abstract void setPassword (String password)

Log into the database with this password

public abstract void setProperty (String property, String value)

Set a property

Parameters
property the property name
value the property value

public abstract void setQueryCacheEnabled (String enabled)

Enable or disable the query cache

public abstract void setQuerySubstitutions (String querySubstitutions)

Set the query language substitutions

public abstract void setSecondLevelCacheEnabled (String enabled)

Enable or disable the second-level cache

public abstract void setShowSqlEnabled (String showSql)

Enable logging of SQL to console

public abstract void setTransactionManagerLookupStrategy (String lkpStrategy)

Set the strategy for obtaining the JTA TransactionManager

Parameters
lkpStrategy the class name

public abstract void setTransactionStrategy (String txnStrategy)

Set the fully qualified class name of the Hibernate TransactionFactory implementation

Parameters
txnStrategy the class name

public abstract void setUserName (String userName)

Log into the database with this name

public abstract void setUserTransactionName (String utName)

Set the JNDI name of the JTA UserTransaction object (used only by JTATransaction).

Parameters
utName the JNDI name
See Also

public abstract void start ()

Create the SessionFactory and bind to the jndi name on startup

public abstract void stop ()

Unbind the SessionFactory or stub from JNDI