@Deprecated public class HibernateService extends ExternalSessionFactoryConfig implements HibernateServiceMBean
HibernateServiceMBean
,
SessionFactory
Constructor and Description |
---|
HibernateService()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
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
|
addAdditionalProperty, addAll, addMapResource, buildConfiguration, buildProperties, getBatchVersionedDataEnabled, getCacheProviderConfig, getCacheRegionFactory, getCacheRegionPrefix, getCommentsEnabled, getDefaultCatalog, getDefaultSchema, getDialect, getExcludedPropertyNames, getGetGeneratedKeysEnabled, getJdbcBatchSize, getJdbcFetchSize, getJdbcScrollableResultSetEnabled, getMapResources, getMaximumFetchDepth, getMinimalPutsEnabled, getQueryCacheEnabled, getQuerySubstitutions, getReflectionOptimizationEnabled, getSecondLevelCacheEnabled, getShowSqlEnabled, getStreamsForBinaryEnabled, setBatchVersionedDataEnabled, setCacheProviderConfig, setCacheRegionFactory, setCacheRegionPrefix, setCommentsEnabled, setDefaultCatalog, setDefaultSchema, setDialect, setGetGeneratedKeysEnabled, setJdbcBatchSize, setJdbcFetchSize, setJdbcScrollableResultSetEnabled, setMapResources, setMaximumFetchDepth, setMinimalPutsEnabled, setQueryCacheEnabled, setQuerySubstitutions, setReflectionOptimizationEnabled, setSecondLevelCacheEnabled, setShowSqlEnabled, setStreamsForBinaryEnabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addMapResource, getBatchVersionedDataEnabled, getCacheProviderConfig, getCacheRegionFactory, getCacheRegionPrefix, getCommentsEnabled, getDefaultCatalog, getDefaultSchema, getDialect, getGetGeneratedKeysEnabled, getJdbcBatchSize, getJdbcFetchSize, getJdbcScrollableResultSetEnabled, getMapResources, getMaximumFetchDepth, getMinimalPutsEnabled, getQueryCacheEnabled, getQuerySubstitutions, getSecondLevelCacheEnabled, getShowSqlEnabled, setBatchVersionedDataEnabled, setCacheProviderConfig, setCacheRegionFactory, setCacheRegionPrefix, setCommentsEnabled, setDefaultCatalog, setDefaultSchema, setDialect, setGetGeneratedKeysEnabled, setJdbcBatchSize, setJdbcFetchSize, setJdbcScrollableResultSetEnabled, setMapResources, setMaximumFetchDepth, setMinimalPutsEnabled, setQueryCacheEnabled, setQuerySubstitutions, setSecondLevelCacheEnabled, setShowSqlEnabled
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 usegetTransactionStrategy
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 namepublic 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()
Copyright © 2018 JBoss by Red Hat. All rights reserved.