|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 HibernateServiceMBean
HibernateException
public void stop()
HibernateServiceMBean
stop
in interface HibernateServiceMBean
protected Map getExtraProperties()
getExtraProperties
in class ExternalSessionFactoryConfig
public String getTransactionStrategy()
HibernateServiceMBean
TransactionFactory
implementation to use
getTransactionStrategy
in interface HibernateServiceMBean
public void setTransactionStrategy(String txnStrategy)
HibernateServiceMBean
TransactionFactory
implementation to use.
setTransactionStrategy
in interface HibernateServiceMBean
txnStrategy
- the class namepublic String getUserTransactionName()
HibernateServiceMBean
getUserTransactionName
in interface HibernateServiceMBean
JtaTransaction
public void setUserTransactionName(String utName)
HibernateServiceMBean
setUserTransactionName
in interface HibernateServiceMBean
utName
- the JNDI nameJtaTransaction
public String getJtaPlatformName()
HibernateServiceMBean
JtaPlatform
implementation to use.
getJtaPlatformName
in interface HibernateServiceMBean
JtaPlatform
implementation to use.public void setJtaPlatformName(String name)
HibernateServiceMBean
JtaPlatform
implementation to use.
setJtaPlatformName
in interface HibernateServiceMBean
name
- The implementation class name.public String getPropertyList()
HibernateServiceMBean
getPropertyList
in interface HibernateServiceMBean
public String getProperty(String property)
HibernateServiceMBean
getProperty
in interface HibernateServiceMBean
property
- the property name
public void setProperty(String property, String value)
HibernateServiceMBean
setProperty
in interface HibernateServiceMBean
property
- the property namevalue
- the property valuepublic void dropSchema()
HibernateServiceMBean
dropSchema
in interface HibernateServiceMBean
public void createSchema()
HibernateServiceMBean
createSchema
in interface HibernateServiceMBean
public String getName()
public String getDatasource()
HibernateServiceMBean
getDatasource
in interface HibernateServiceMBean
public void setDatasource(String datasource)
HibernateServiceMBean
setDatasource
in interface HibernateServiceMBean
public String getJndiName()
HibernateServiceMBean
getJndiName
in interface HibernateServiceMBean
public void setJndiName(String jndiName)
HibernateServiceMBean
setJndiName
in interface HibernateServiceMBean
public String getUserName()
HibernateServiceMBean
getUserName
in interface HibernateServiceMBean
public void setUserName(String userName)
HibernateServiceMBean
setUserName
in interface HibernateServiceMBean
public String getPassword()
HibernateServiceMBean
getPassword
in interface HibernateServiceMBean
public void setPassword(String password)
HibernateServiceMBean
setPassword
in interface HibernateServiceMBean
public void setFlushBeforeCompletionEnabled(String enabled)
HibernateServiceMBean
setFlushBeforeCompletionEnabled
in interface HibernateServiceMBean
public String getFlushBeforeCompletionEnabled()
HibernateServiceMBean
getFlushBeforeCompletionEnabled
in interface HibernateServiceMBean
public void setAutoCloseSessionEnabled(String enabled)
HibernateServiceMBean
setAutoCloseSessionEnabled
in interface HibernateServiceMBean
public String getAutoCloseSessionEnabled()
HibernateServiceMBean
getAutoCloseSessionEnabled
in interface HibernateServiceMBean
public Properties getProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |