public class HibernateService extends ExternalSessionFactoryConfig implements HibernateServiceMBean
HibernateServiceMBean,
SessionFactory| Constructor and Description |
|---|
HibernateService() |
| Modifier and Type | Method and Description |
|---|---|
void |
createSchema()
Export the CREATE DDL to the database
|
void |
dropSchema()
Export the DROP DDL to the database
|
String |
getAutoCloseSessionEnabled()
Is automatic Session closing enabled?
|
String |
getDatasource()
The JNDI name of the datasource to use in this SessionFactory
|
protected Map |
getExtraProperties() |
String |
getFlushBeforeCompletionEnabled()
Is automatic Session flusing enabled?
|
String |
getJndiName()
The JNDI name to bind to the SessionFactory
|
String |
getName() |
String |
getPassword()
Log into the database with this password
|
Properties |
getProperties() |
String |
getProperty(String property)
Get a property
|
String |
getPropertyList()
Display the properties
|
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 |
setAutoCloseSessionEnabled(String enabled)
Enable automatic closing of Session when JTA transaction ends.
|
void |
setDatasource(String datasource)
Set the JNDI name of the datasource to use in this SessionFactory
|
void |
setFlushBeforeCompletionEnabled(String enabled)
Enable automatic flushing of the Session when JTA transaction ends.
|
void |
setJndiName(String jndiName)
The JNDI name to bind to the SessionFactory
|
void |
setPassword(String password)
Log into the database with this password
|
void |
setProperty(String property,
String value)
Set a property
|
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
|
addAdditionalProperty, addAll, addMapResource, buildConfiguration, buildProperties, getBatchVersionedDataEnabled, getCacheProviderClass, getCacheProviderConfig, getCacheRegionPrefix, getCommentsEnabled, getCustomListeners, getDefaultCatalog, getDefaultSchema, getDialect, getExcludedPropertyNames, getGetGeneratedKeysEnabled, getJdbcBatchSize, getJdbcFetchSize, getJdbcScrollableResultSetEnabled, getMapResources, getMaximumFetchDepth, getMinimalPutsEnabled, getQueryCacheEnabled, getQuerySubstitutions, getReflectionOptimizationEnabled, getSecondLevelCacheEnabled, getShowSqlEnabled, getStreamsForBinaryEnabled, setBatchVersionedDataEnabled, setCacheProviderClass, setCacheProviderConfig, setCacheRegionPrefix, setCommentsEnabled, setCustomListener, setCustomListeners, setCustomListenersAsString, setDefaultCatalog, setDefaultSchema, setDialect, setGetGeneratedKeysEnabled, setJdbcBatchSize, setJdbcFetchSize, setJdbcScrollableResultSetEnabled, setMapResources, setMaximumFetchDepth, setMinimalPutsEnabled, setQueryCacheEnabled, setQuerySubstitutions, setReflectionOptimizationEnabled, setSecondLevelCacheEnabled, setShowSqlEnabled, setStreamsForBinaryEnabledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddMapResource, getBatchVersionedDataEnabled, getCacheProviderClass, getCacheProviderConfig, getCacheRegionPrefix, getCommentsEnabled, getDefaultCatalog, getDefaultSchema, getDialect, getGetGeneratedKeysEnabled, getJdbcBatchSize, getJdbcFetchSize, getJdbcScrollableResultSetEnabled, getMapResources, getMaximumFetchDepth, getMinimalPutsEnabled, getQueryCacheEnabled, getQuerySubstitutions, getSecondLevelCacheEnabled, getShowSqlEnabled, setBatchVersionedDataEnabled, setCacheProviderClass, setCacheProviderConfig, setCacheRegionPrefix, setCommentsEnabled, setDefaultCatalog, setDefaultSchema, setDialect, setGetGeneratedKeysEnabled, setJdbcBatchSize, setJdbcFetchSize, setJdbcScrollableResultSetEnabled, setMapResources, setMaximumFetchDepth, setMinimalPutsEnabled, setQueryCacheEnabled, setQuerySubstitutions, setSecondLevelCacheEnabled, setShowSqlEnabledpublic void start()
throws HibernateException
HibernateServiceMBeanstart in interface HibernateServiceMBeanHibernateExceptionpublic void stop()
HibernateServiceMBeanstop in interface HibernateServiceMBeanprotected Map getExtraProperties()
getExtraProperties in class ExternalSessionFactoryConfigpublic String getTransactionStrategy()
HibernateServiceMBeangetTransactionStrategy in interface HibernateServiceMBeanTransactionFactorypublic void setTransactionStrategy(String txnStrategy)
HibernateServiceMBeansetTransactionStrategy in interface HibernateServiceMBeantxnStrategy - the class nameTransactionFactorypublic String getUserTransactionName()
HibernateServiceMBeangetUserTransactionName in interface HibernateServiceMBeanJTATransactionpublic void setUserTransactionName(String utName)
HibernateServiceMBeansetUserTransactionName in interface HibernateServiceMBeanutName - the JNDI nameJTATransactionpublic String getTransactionManagerLookupStrategy()
HibernateServiceMBeangetTransactionManagerLookupStrategy in interface HibernateServiceMBeanTransactionManagerLookuppublic void setTransactionManagerLookupStrategy(String lkpStrategy)
HibernateServiceMBeansetTransactionManagerLookupStrategy in interface HibernateServiceMBeanlkpStrategy - the class nameTransactionManagerLookuppublic String getPropertyList()
HibernateServiceMBeangetPropertyList in interface HibernateServiceMBeanpublic String getProperty(String property)
HibernateServiceMBeangetProperty in interface HibernateServiceMBeanproperty - the property namepublic void setProperty(String property, String value)
HibernateServiceMBeansetProperty in interface HibernateServiceMBeanproperty - the property namevalue - the property valuepublic void dropSchema()
HibernateServiceMBeandropSchema in interface HibernateServiceMBeanpublic void createSchema()
HibernateServiceMBeancreateSchema in interface HibernateServiceMBeanpublic String getName()
public String getDatasource()
HibernateServiceMBeangetDatasource in interface HibernateServiceMBeanpublic void setDatasource(String datasource)
HibernateServiceMBeansetDatasource in interface HibernateServiceMBeanpublic String getJndiName()
HibernateServiceMBeangetJndiName in interface HibernateServiceMBeanpublic void setJndiName(String jndiName)
HibernateServiceMBeansetJndiName in interface HibernateServiceMBeanpublic String getUserName()
HibernateServiceMBeangetUserName in interface HibernateServiceMBeanpublic void setUserName(String userName)
HibernateServiceMBeansetUserName in interface HibernateServiceMBeanpublic String getPassword()
HibernateServiceMBeangetPassword in interface HibernateServiceMBeanpublic void setPassword(String password)
HibernateServiceMBeansetPassword in interface HibernateServiceMBeanpublic void setFlushBeforeCompletionEnabled(String enabled)
HibernateServiceMBeansetFlushBeforeCompletionEnabled in interface HibernateServiceMBeanpublic String getFlushBeforeCompletionEnabled()
HibernateServiceMBeangetFlushBeforeCompletionEnabled in interface HibernateServiceMBeanpublic void setAutoCloseSessionEnabled(String enabled)
HibernateServiceMBeansetAutoCloseSessionEnabled in interface HibernateServiceMBeanpublic String getAutoCloseSessionEnabled()
HibernateServiceMBeangetAutoCloseSessionEnabled in interface HibernateServiceMBeanpublic Properties getProperties()
Copyright © 2002-2017 Red Hat Middleware, LLC. All Rights Reserved