|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.cfg.ExternalSessionFactoryConfig
org.hibernate.jmx.HibernateService
@Deprecated public class HibernateService
Implementation of HibernateServiceMBean. Creates a
SessionFactory and binds it to the specified JNDI name.
All mapping documents are loaded as resources by the MBean.
HibernateServiceMBean,
SessionFactory| Constructor Summary | |
|---|---|
HibernateService()
Deprecated. |
|
| Method Summary | |
|---|---|
void |
createSchema()
Deprecated. Export the CREATE DDL to the database |
void |
dropSchema()
Deprecated. Export the DROP DDL to the database |
String |
getAutoCloseSessionEnabled()
Deprecated. Is automatic Session closing enabled? |
String |
getDatasource()
Deprecated. The JNDI name of the datasource to use in this SessionFactory |
protected Map |
getExtraProperties()
Deprecated. |
String |
getFlushBeforeCompletionEnabled()
Deprecated. Is automatic Session flusing enabled? |
String |
getJndiName()
Deprecated. The JNDI name to bind to the SessionFactory |
String |
getJtaPlatformName()
Deprecated. Get the name of the JtaPlatform implementation to use. |
String |
getName()
Deprecated. |
String |
getPassword()
Deprecated. Log into the database with this password |
Properties |
getProperties()
Deprecated. |
String |
getProperty(String property)
Deprecated. Get a property |
String |
getPropertyList()
Deprecated. Display the properties |
String |
getTransactionStrategy()
Deprecated. The fully qualified class name of the Hibernate TransactionFactory
implementation to use |
String |
getUserName()
Deprecated. Log into the database with this name |
String |
getUserTransactionName()
Deprecated. The JNDI name of the JTA UserTransaction object (used only be JtaTransaction). |
void |
setAutoCloseSessionEnabled(String enabled)
Deprecated. Enable automatic closing of Session when JTA transaction ends. |
void |
setDatasource(String datasource)
Deprecated. Set the JNDI name of the datasource to use in this SessionFactory |
void |
setFlushBeforeCompletionEnabled(String enabled)
Deprecated. Enable automatic flushing of the Session when JTA transaction ends. |
void |
setJndiName(String jndiName)
Deprecated. The JNDI name to bind to the SessionFactory |
void |
setJtaPlatformName(String name)
Deprecated. Sets the name of the JtaPlatform implementation to use. |
void |
setPassword(String password)
Deprecated. Log into the database with this password |
void |
setProperty(String property,
String value)
Deprecated. Set a property |
void |
setTransactionStrategy(String txnStrategy)
Deprecated. Set the fully qualified class name of the Hibernate TransactionFactory
implementation to use. |
void |
setUserName(String userName)
Deprecated. Log into the database with this name |
void |
setUserTransactionName(String utName)
Deprecated. Set the JNDI name of the JTA UserTransaction object (used only by JtaTransaction). |
void |
start()
Deprecated. Create the SessionFactory and bind to the jndi name on startup |
void |
stop()
Deprecated. Unbind the SessionFactory or stub from JNDI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HibernateService()
| Method Detail |
|---|
public void start()
throws HibernateException
HibernateServiceMBean
start in interface HibernateServiceMBeanHibernateExceptionpublic void stop()
HibernateServiceMBean
stop in interface HibernateServiceMBeanprotected Map getExtraProperties()
getExtraProperties in class ExternalSessionFactoryConfigpublic String getTransactionStrategy()
HibernateServiceMBeanTransactionFactory
implementation to use
getTransactionStrategy in interface HibernateServiceMBeanpublic void setTransactionStrategy(String txnStrategy)
HibernateServiceMBeanTransactionFactory
implementation to use.
setTransactionStrategy in interface HibernateServiceMBeantxnStrategy - the class namepublic String getUserTransactionName()
HibernateServiceMBean
getUserTransactionName in interface HibernateServiceMBeanJtaTransactionpublic void setUserTransactionName(String utName)
HibernateServiceMBean
setUserTransactionName in interface HibernateServiceMBeanutName - the JNDI nameJtaTransactionpublic String getJtaPlatformName()
HibernateServiceMBeanJtaPlatform implementation to use.
getJtaPlatformName in interface HibernateServiceMBeanJtaPlatform implementation to use.public void setJtaPlatformName(String name)
HibernateServiceMBeanJtaPlatform implementation to use.
setJtaPlatformName in interface HibernateServiceMBeanname - The implementation class name.public String getPropertyList()
HibernateServiceMBean
getPropertyList in interface HibernateServiceMBeanpublic String getProperty(String property)
HibernateServiceMBean
getProperty in interface HibernateServiceMBeanproperty - the property name
public void setProperty(String property,
String value)
HibernateServiceMBean
setProperty in interface HibernateServiceMBeanproperty - the property namevalue - the property valuepublic void dropSchema()
HibernateServiceMBean
dropSchema in interface HibernateServiceMBeanpublic void createSchema()
HibernateServiceMBean
createSchema in interface HibernateServiceMBeanpublic String getName()
public String getDatasource()
HibernateServiceMBean
getDatasource in interface HibernateServiceMBeanpublic void setDatasource(String datasource)
HibernateServiceMBean
setDatasource in interface HibernateServiceMBeanpublic String getJndiName()
HibernateServiceMBean
getJndiName in interface HibernateServiceMBeanpublic void setJndiName(String jndiName)
HibernateServiceMBean
setJndiName in interface HibernateServiceMBeanpublic String getUserName()
HibernateServiceMBean
getUserName in interface HibernateServiceMBeanpublic void setUserName(String userName)
HibernateServiceMBean
setUserName in interface HibernateServiceMBeanpublic String getPassword()
HibernateServiceMBean
getPassword in interface HibernateServiceMBeanpublic void setPassword(String password)
HibernateServiceMBean
setPassword in interface HibernateServiceMBeanpublic void setFlushBeforeCompletionEnabled(String enabled)
HibernateServiceMBean
setFlushBeforeCompletionEnabled in interface HibernateServiceMBeanpublic String getFlushBeforeCompletionEnabled()
HibernateServiceMBean
getFlushBeforeCompletionEnabled in interface HibernateServiceMBeanpublic void setAutoCloseSessionEnabled(String enabled)
HibernateServiceMBean
setAutoCloseSessionEnabled in interface HibernateServiceMBeanpublic String getAutoCloseSessionEnabled()
HibernateServiceMBean
getAutoCloseSessionEnabled in interface HibernateServiceMBeanpublic Properties getProperties()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||