|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.mx.util.JBossNotificationBroadcasterSupport org.jboss.system.ServiceMBeanSupport org.jboss.hibernate.jmx.Hibernate
A Hibernate service. Configures a SessionFactory
instance as an MBean and exposes it through JNDI. Meant to work in
conjuction with the HARDeployer
.
Field Summary | |
static String |
SESSION_FACTORY_CREATE
notification type produced when the session factory gets created |
static String |
SESSION_FACTORY_DESTROY
notification type produced when the session factory gets destroyed |
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.hibernate.jmx.HibernateMBean |
OBJECT_NAME |
Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
Hibernate()
|
Method Summary | |
String |
getBatchVersionedDataEnabled()
|
String |
getCacheProviderClass()
Get the cache provider class. |
String |
getCacheRegionPrefix()
|
String |
getDatasourceName()
Get the JNDI datasource name. |
String |
getDefaultSchema()
Get the default database schema. |
String |
getDeployedTreeCacheJndiName()
|
String |
getDialect()
Get the Hibernate SQL dialect. |
String |
getGetGeneratedKeysEnabled()
Is the use of JDBC3 getGeneratedKeys() enabled? |
URL |
getHarUrl()
|
String |
getHbm2ddlAuto()
|
String |
getJdbcBatchSize()
Get the JDBC batch update batch size. |
String |
getJdbcFetchSize()
Get the JDBC fetch size. |
String |
getJdbcScrollableResultSetEnabled()
Are scrollable result sets enabled? |
String |
getMaxFetchDepth()
Get the maximum outer join fetch depth. |
String |
getMinimalPutsEnabled()
|
String |
getPassword()
Get the database password. |
String |
getQueryCacheEnabled()
Is the query cache enabled? |
String |
getQuerySubstitutions()
Get the query substitutions. |
String |
getReflectionOptimizationEnabled()
|
String |
getSessionFactoryInterceptor()
|
String |
getSessionFactoryName()
Get the SessionFactory JNDI name. |
String |
getShowSqlEnabled()
Is SQL being logged to the console? |
String |
getStreamsForBinaryEnabled()
|
String |
getUsername()
Get the database username. |
boolean |
isDirty()
|
boolean |
isSessionFactoryRunning()
|
void |
rebuildSessionFactory()
|
void |
setBatchVersionedDataEnabled(String batchVersionedDataEnabled)
|
void |
setCacheProviderClass(String cacheProviderClass)
Set the cache provider class. |
void |
setCacheRegionPrefix(String cacheRegionPrefix)
|
void |
setDatasourceName(String datasourceName)
Set the JNDI datasource name. |
void |
setDefaultSchema(String defaultSchema)
Set the default database schema. |
void |
setDeployedTreeCacheJndiName(String deployedTreeCacheJndiName)
|
void |
setDialect(String dialect)
Set the Hibernate SQL dialect. |
void |
setGetGeneratedKeysEnabled(String getGeneratedKeysEnabled)
|
void |
setHarUrl(URL harUrl)
|
void |
setHbm2ddlAuto(String hbm2ddlAuto)
|
void |
setJdbcBatchSize(String jdbcBatchSize)
Set the JDBC batch update batch size. |
void |
setJdbcFetchSize(String jdbcFetchSize)
Set the JDBC fetch size. |
void |
setJdbcScrollableResultSetEnabled(String jdbcScrollableResultSetEnabled)
|
void |
setMaxFetchDepth(String maxFetchDepth)
Set the maximum outer join fetch depth. |
void |
setMinimalPutsEnabled(String minimalPutsEnabled)
|
void |
setPassword(String password)
Set the database password. |
void |
setQueryCacheEnabled(String queryCacheEnabled)
|
void |
setQuerySubstitutions(String querySubstitutions)
Set the query substitutions. |
void |
setReflectionOptimizationEnabled(String reflectionOptimizationEnabled)
|
void |
setSessionFactoryInterceptor(String sessionFactoryInterceptor)
|
void |
setSessionFactoryName(String sessionFactoryName)
Set the SessionFactory JNDI name. |
void |
setShowSqlEnabled(String showSqlEnabled)
|
void |
setStreamsForBinaryEnabled(String streamsForBinaryEnabled)
|
void |
setUsername(String username)
Set the database username. |
void |
startService()
Configure Hibernate and bind the SessionFactory to JNDI. |
void |
stopService()
Close the SessionFactory. |
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.system.ServiceMBean |
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service |
create, destroy, start, stop |
Field Detail |
public static final String SESSION_FACTORY_CREATE
public static final String SESSION_FACTORY_DESTROY
Constructor Detail |
public Hibernate()
Method Detail |
public String getSessionFactoryName()
getSessionFactoryName
in interface HibernateMBean
public void setSessionFactoryName(String sessionFactoryName)
setSessionFactoryName
in interface HibernateMBean
public URL getHarUrl()
getHarUrl
in interface HibernateMBean
public void setHarUrl(URL harUrl)
setHarUrl
in interface HibernateMBean
public String getDatasourceName()
getDatasourceName
in interface HibernateMBean
public void setDatasourceName(String datasourceName)
setDatasourceName
in interface HibernateMBean
public String getDefaultSchema()
getDefaultSchema
in interface HibernateMBean
public void setDefaultSchema(String defaultSchema)
setDefaultSchema
in interface HibernateMBean
public String getHbm2ddlAuto()
getHbm2ddlAuto
in interface HibernateMBean
public void setHbm2ddlAuto(String hbm2ddlAuto)
setHbm2ddlAuto
in interface HibernateMBean
public String getDialect()
getDialect
in interface HibernateMBean
public void setDialect(String dialect)
setDialect
in interface HibernateMBean
public String getMaxFetchDepth()
getMaxFetchDepth
in interface HibernateMBean
public void setMaxFetchDepth(String maxFetchDepth)
setMaxFetchDepth
in interface HibernateMBean
public String getJdbcBatchSize()
getJdbcBatchSize
in interface HibernateMBean
public void setJdbcBatchSize(String jdbcBatchSize)
setJdbcBatchSize
in interface HibernateMBean
public String getJdbcFetchSize()
getJdbcFetchSize
in interface HibernateMBean
public void setJdbcFetchSize(String jdbcFetchSize)
setJdbcFetchSize
in interface HibernateMBean
public String getJdbcScrollableResultSetEnabled()
getJdbcScrollableResultSetEnabled
in interface HibernateMBean
public void setJdbcScrollableResultSetEnabled(String jdbcScrollableResultSetEnabled)
setJdbcScrollableResultSetEnabled
in interface HibernateMBean
public String getGetGeneratedKeysEnabled()
getGetGeneratedKeysEnabled
in interface HibernateMBean
public void setGetGeneratedKeysEnabled(String getGeneratedKeysEnabled)
setGetGeneratedKeysEnabled
in interface HibernateMBean
public String getQuerySubstitutions()
getQuerySubstitutions
in interface HibernateMBean
public void setQuerySubstitutions(String querySubstitutions)
setQuerySubstitutions
in interface HibernateMBean
public String getQueryCacheEnabled()
getQueryCacheEnabled
in interface HibernateMBean
public void setQueryCacheEnabled(String queryCacheEnabled)
setQueryCacheEnabled
in interface HibernateMBean
public String getCacheProviderClass()
getCacheProviderClass
in interface HibernateMBean
public void setCacheProviderClass(String cacheProviderClass)
setCacheProviderClass
in interface HibernateMBean
public String getCacheRegionPrefix()
getCacheRegionPrefix
in interface HibernateMBean
public void setCacheRegionPrefix(String cacheRegionPrefix)
setCacheRegionPrefix
in interface HibernateMBean
public String getMinimalPutsEnabled()
getMinimalPutsEnabled
in interface HibernateMBean
public void setMinimalPutsEnabled(String minimalPutsEnabled)
setMinimalPutsEnabled
in interface HibernateMBean
public String getShowSqlEnabled()
getShowSqlEnabled
in interface HibernateMBean
public void setShowSqlEnabled(String showSqlEnabled)
setShowSqlEnabled
in interface HibernateMBean
public String getUsername()
getUsername
in interface HibernateMBean
public void setUsername(String username)
setUsername
in interface HibernateMBean
public String getPassword()
getPassword
in interface HibernateMBean
public void setPassword(String password)
setPassword
in interface HibernateMBean
public String getSessionFactoryInterceptor()
getSessionFactoryInterceptor
in interface HibernateMBean
public void setSessionFactoryInterceptor(String sessionFactoryInterceptor)
setSessionFactoryInterceptor
in interface HibernateMBean
public boolean isDirty()
isDirty
in interface HibernateMBean
public boolean isSessionFactoryRunning()
isSessionFactoryRunning
in interface HibernateMBean
public String getDeployedTreeCacheJndiName()
getDeployedTreeCacheJndiName
in interface HibernateMBean
public void setDeployedTreeCacheJndiName(String deployedTreeCacheJndiName)
setDeployedTreeCacheJndiName
in interface HibernateMBean
public String getBatchVersionedDataEnabled()
getBatchVersionedDataEnabled
in interface HibernateMBean
public void setBatchVersionedDataEnabled(String batchVersionedDataEnabled)
setBatchVersionedDataEnabled
in interface HibernateMBean
public String getStreamsForBinaryEnabled()
getStreamsForBinaryEnabled
in interface HibernateMBean
public void setStreamsForBinaryEnabled(String streamsForBinaryEnabled)
setStreamsForBinaryEnabled
in interface HibernateMBean
public String getReflectionOptimizationEnabled()
getReflectionOptimizationEnabled
in interface HibernateMBean
public void setReflectionOptimizationEnabled(String reflectionOptimizationEnabled)
setReflectionOptimizationEnabled
in interface HibernateMBean
public void rebuildSessionFactory() throws Exception
rebuildSessionFactory
in interface HibernateMBean
Exception
public void startService() throws Exception
Exception
public void stopService() throws Exception
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |