|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.hibernate.jmx.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()
|
|
| Method Summary | |
void |
addMapResource(String mapResource)
Add a mapping file |
void |
createSchema()
Export create DDL to the database |
void |
dropSchema()
Export drop DDL to the database |
boolean |
getBatchUpdateVersionedEnabled()
Are JDBC batch updates enabled for versioned entities? |
String |
getCacheProvider()
Get the cache provider class |
String |
getCacheRegionPrefix()
Get the second-level cache region prefix; |
String |
getDatasource()
The JNDI name of the datasource to use in this SessionFactory |
String |
getDefaultSchema()
Get the default schema name |
String |
getDialect()
The JNDI name of the dialect class to use in this SessionFactory |
Boolean |
getGetGeneratedKeysEnabled()
Is use of JDBC3 getGeneratedKeys() enabled? |
Integer |
getJdbcBatchSize()
Get the JDBC batch size |
Integer |
getJdbcFetchSize()
Get the JDBC fetch size |
String |
getJndiName()
The JNDI name to bind to the SessionFactory |
String |
getMapResources()
The Hibernate mapping files (might be overridden by subclasses that want to specify the mapping files by some other mechanism) |
Integer |
getMaximumFetchDepth()
Get the max outer join fetch depth |
boolean |
getMinimalPutsEnabled()
Is second-level cache optimized for minimal puts? |
String |
getName()
The name of the current bean |
String |
getPassword()
Log into the database with this password |
protected Properties |
getProperties()
|
String |
getProperty(String property)
Get a property |
String |
getPropertyList()
Display the properties |
boolean |
getQueryCacheEnabled()
Is the query cache enabled? |
String |
getQuerySubstitutions()
Get the query substitutions string |
Boolean |
getScrollableResultSetsEnabled()
Is use of scrollable resultsets enabled? |
boolean |
getShowSql()
Is SQL logging enabled? |
String |
getTransactionManagerLookupStrategy()
Get the strategy for obtaining the JTA TransactionManager |
String |
getTransactionStrategy()
The fully qualified class name of the Hibernate TransactionFactory implementation |
String |
getUserName()
Log into the database with this name |
String |
getUserTransactionName()
The JNDI name of the JTA UserTransaction object (used only be JTATransaction). |
void |
setBatchUpdateVersioned(boolean enabled)
Enabled/disable JDBC batch updates for versioned entities |
void |
setCacheProvider(String providerClassName)
Set the cache provider class |
void |
setCacheRegionPrefix(String prefix)
Set a prefix for all second-level cache regions. |
void |
setDatasource(String datasource)
Set the JNDI name of the datasource to use in this SessionFactory |
void |
setDefaultSchema(String schema)
Set the default schema name |
void |
setDialect(String dialect)
The name of the dialect class to use in this SessionFactory |
void |
setGetGeneratedKeysEnabled(Boolean enabled)
Enable/disable use of JDBC3 getGeneratedKeys() |
void |
setJdbcBatchSize(Integer batchSize)
Set the JDBC batch size |
void |
setJdbcFetchSize(Integer fetchSize)
Set the JDBC fetch size |
void |
setJndiName(String jndiName)
The JNDI name to bind to the SessionFactory |
void |
setMapResources(String mapResources)
Specify the Hibernate mapping files |
void |
setMaximumFetchDepth(Integer fetchDepth)
Set the max outer join fetch depth |
void |
setMinimalPutsEnabled(boolean enabled)
Optimize second-level cache for minimal puts |
void |
setPassword(String password)
Log into the database with this password |
protected void |
setProperty(String propName,
boolean value)
|
protected void |
setProperty(String propName,
Integer value)
|
void |
setProperty(String property,
String value)
Set a property |
void |
setQueryCacheEnabled(boolean enabled)
Enable/disable the query cache |
void |
setQuerySubstitutions(String querySubstitutions)
Set the query substitutions string |
void |
setScrollableResultSetsEnabled(Boolean enabled)
Enable/disable use of scrollable resultsets |
void |
setShowSql(boolean showSql)
Enable logging of SQL to console |
void |
setTransactionManagerLookupStrategy(String lkpStrategy)
Set the strategy for obtaining the JTA TransactionManager |
void |
setTransactionStrategy(String txnStrategy)
Set the fully qualified class name of the Hibernate TransactionFactory implementation |
void |
setUserName(String userName)
Log into the database with this name |
void |
setUserTransactionName(String utName)
Set the JNDI name of the JTA UserTransaction object (used only by JTATransaction). |
void |
start()
Create the SessionFactory and bind to the jndi name on startup |
void |
stop()
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 String getName()
public String getMapResources()
HibernateServiceMBean
getMapResources in interface HibernateServiceMBeanpublic void setMapResources(String mapResources)
HibernateServiceMBean
setMapResources in interface HibernateServiceMBeanmapResources - public void addMapResource(String mapResource)
HibernateServiceMBean
addMapResource in interface HibernateServiceMBeanmapResource - protected void setProperty(String propName, boolean value)
protected void setProperty(String propName, Integer value)
public String getDatasource()
HibernateServiceMBean
getDatasource in interface HibernateServiceMBeanpublic void setDatasource(String datasource)
HibernateServiceMBean
setDatasource in interface HibernateServiceMBeandatasource - public String getDialect()
HibernateServiceMBean
getDialect in interface HibernateServiceMBeanpublic void setDialect(String dialect)
HibernateServiceMBean
setDialect in interface HibernateServiceMBeandialect - fully qualified class name of Dialect subclassDialectpublic String getJndiName()
HibernateServiceMBean
getJndiName in interface HibernateServiceMBeanpublic void setJndiName(String jndiName)
HibernateServiceMBean
setJndiName in interface HibernateServiceMBeanjndiName - public boolean getShowSql()
HibernateServiceMBean
getShowSql in interface HibernateServiceMBeanpublic void setShowSql(boolean showSql)
HibernateServiceMBean
setShowSql in interface HibernateServiceMBeanpublic String getUserName()
HibernateServiceMBean
getUserName in interface HibernateServiceMBeanpublic void setUserName(String userName)
HibernateServiceMBean
setUserName in interface HibernateServiceMBeanuserName - public String getPassword()
HibernateServiceMBean
getPassword in interface HibernateServiceMBeanpublic void setPassword(String password)
HibernateServiceMBean
setPassword in interface HibernateServiceMBeanpassword -
public void start()
throws HibernateException
HibernateServiceMBean
start in interface HibernateServiceMBeanHibernateExceptionpublic void stop()
HibernateServiceMBean
stop in interface HibernateServiceMBeanpublic String getTransactionStrategy()
HibernateServiceMBean
getTransactionStrategy in interface HibernateServiceMBeanTransactionFactorypublic String getUserTransactionName()
HibernateServiceMBean
getUserTransactionName in interface HibernateServiceMBeanJTATransactionpublic void setTransactionStrategy(String txnStrategy)
HibernateServiceMBean
setTransactionStrategy in interface HibernateServiceMBeantxnStrategy - the class nameTransactionFactorypublic void setUserTransactionName(String utName)
HibernateServiceMBean
setUserTransactionName in interface HibernateServiceMBeanutName - the JNDI nameJTATransactionpublic String getTransactionManagerLookupStrategy()
HibernateServiceMBean
getTransactionManagerLookupStrategy in interface HibernateServiceMBeanTransactionManagerLookuppublic void setTransactionManagerLookupStrategy(String lkpStrategy)
HibernateServiceMBean
setTransactionManagerLookupStrategy in interface HibernateServiceMBeanlkpStrategy - the class nameTransactionManagerLookupprotected Properties getProperties()
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 value
public void dropSchema()
throws HibernateException
HibernateServiceMBean
dropSchema in interface HibernateServiceMBeanHibernateException
public void createSchema()
throws HibernateException
HibernateServiceMBean
createSchema in interface HibernateServiceMBeanHibernateExceptionpublic boolean getBatchUpdateVersionedEnabled()
HibernateServiceMBean
getBatchUpdateVersionedEnabled in interface HibernateServiceMBeanpublic String getCacheProvider()
HibernateServiceMBean
getCacheProvider in interface HibernateServiceMBeanpublic String getCacheRegionPrefix()
HibernateServiceMBean
getCacheRegionPrefix in interface HibernateServiceMBeanpublic String getDefaultSchema()
HibernateServiceMBean
getDefaultSchema in interface HibernateServiceMBeanpublic Boolean getGetGeneratedKeysEnabled()
HibernateServiceMBean
getGetGeneratedKeysEnabled in interface HibernateServiceMBeanpublic Integer getJdbcBatchSize()
HibernateServiceMBean
getJdbcBatchSize in interface HibernateServiceMBeanpublic Integer getJdbcFetchSize()
HibernateServiceMBean
getJdbcFetchSize in interface HibernateServiceMBeanpublic Integer getMaximumFetchDepth()
HibernateServiceMBean
getMaximumFetchDepth in interface HibernateServiceMBeanpublic boolean getMinimalPutsEnabled()
HibernateServiceMBean
getMinimalPutsEnabled in interface HibernateServiceMBeanpublic boolean getQueryCacheEnabled()
HibernateServiceMBean
getQueryCacheEnabled in interface HibernateServiceMBeanpublic String getQuerySubstitutions()
HibernateServiceMBean
getQuerySubstitutions in interface HibernateServiceMBeanpublic Boolean getScrollableResultSetsEnabled()
HibernateServiceMBean
getScrollableResultSetsEnabled in interface HibernateServiceMBeanpublic void setBatchUpdateVersioned(boolean enabled)
HibernateServiceMBean
setBatchUpdateVersioned in interface HibernateServiceMBeanpublic void setCacheProvider(String providerClassName)
HibernateServiceMBean
setCacheProvider in interface HibernateServiceMBeanpublic void setCacheRegionPrefix(String prefix)
HibernateServiceMBean
setCacheRegionPrefix in interface HibernateServiceMBeanpublic void setDefaultSchema(String schema)
HibernateServiceMBean
setDefaultSchema in interface HibernateServiceMBeanpublic void setGetGeneratedKeysEnabled(Boolean enabled)
HibernateServiceMBean
setGetGeneratedKeysEnabled in interface HibernateServiceMBeanpublic void setJdbcBatchSize(Integer batchSize)
HibernateServiceMBean
setJdbcBatchSize in interface HibernateServiceMBeanpublic void setJdbcFetchSize(Integer fetchSize)
HibernateServiceMBean
setJdbcFetchSize in interface HibernateServiceMBeanpublic void setMaximumFetchDepth(Integer fetchDepth)
HibernateServiceMBean
setMaximumFetchDepth in interface HibernateServiceMBeanpublic void setMinimalPutsEnabled(boolean enabled)
HibernateServiceMBean
setMinimalPutsEnabled in interface HibernateServiceMBeanpublic void setQueryCacheEnabled(boolean enabled)
HibernateServiceMBean
setQueryCacheEnabled in interface HibernateServiceMBeanpublic void setQuerySubstitutions(String querySubstitutions)
HibernateServiceMBean
setQuerySubstitutions in interface HibernateServiceMBeanpublic void setScrollableResultSetsEnabled(Boolean enabled)
HibernateServiceMBean
setScrollableResultSetsEnabled in interface HibernateServiceMBean
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||