HibernateServiceMBean, org.hibernate.SessionFactory
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private static final Logger | |
| private Properties |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv SessionFactory | |
| public void | createSchema()
Implements org. |
| public void | dropSchema()
Implements org. |
| public String | getAutoCloseSessionEnabled()
Implements org. |
| public String | getDatasource()
Implements org. |
| protected Map | |
| public String | getFlushBeforeCompletionEnabled()
Implements org. |
| public String | getJndiName()
Implements org. |
| public String | |
| public String | getPassword()
Implements org. |
| public Properties | |
| public String | getProperty(String
the property name property)Implements org. |
| public String | getPropertyList()
Implements org. |
| public String | getTransactionManagerLookupStrategy()
Implements org. |
| public String | getTransactionStrategy()
Implements org. |
| public String | getUserName()
Implements org. |
| public String | getUserTransactionName()
Implements org. |
| public void | setAutoCloseSessionEnabled(String enabled)
Implements org. |
| public void | setDatasource(String datasource)
Implements org. |
| public void | setFlushBeforeCompletionEnabled(String enabled)
Implements org. |
| public void | setJndiName(String jndiName)
Implements org. |
| public void | setPassword(String password)
Implements org. |
| public void | setProperty(String
the property name property, String the property value value)Implements org. |
| public void | setTransactionManagerLookupStrategy(String
the class name lkpStrategy)Implements org. |
| public void | setTransactionStrategy(String
the class name txnStrategy)Implements org. |
| public void | setUserName(String userName)
Implements org. |
| public void | setUserTransactionName(String
the JNDI name utName)Implements org. |
| public void | start()
Implements org. |
| public void | stop()
Implements org. |
| boundName | back to summary |
|---|---|
| private String boundName | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| properties | back to summary |
|---|---|
| private Properties properties | |
| HibernateService | back to summary |
|---|---|
| public HibernateService() | |
| buildSessionFactory | back to summary |
|---|---|
| pack-priv SessionFactory buildSessionFactory() throws HibernateException | |
| createSchema | back to summary |
|---|---|
| public void createSchema() Implements org. Doc from org. Export the CREATE DDL to the database | |
| dropSchema | back to summary |
|---|---|
| public void dropSchema() Implements org. Doc from org. Export the DROP DDL to the database | |
| getAutoCloseSessionEnabled | back to summary |
|---|---|
| public String getAutoCloseSessionEnabled() Implements org. Doc from org. Is automatic Session closing enabled? | |
| getDatasource | back to summary |
|---|---|
| public String getDatasource() Implements org. Doc from org. The JNDI name of the datasource to use in this SessionFactory
| |
| getExtraProperties | back to summary |
|---|---|
| protected Map Overrides org. | |
| getFlushBeforeCompletionEnabled | back to summary |
|---|---|
| public String getFlushBeforeCompletionEnabled() Implements org. Doc from org. Is automatic Session flusing enabled? | |
| getJndiName | back to summary |
|---|---|
| public String getJndiName() Implements org. Doc from org. The JNDI name to bind to the SessionFactory
| |
| getName | back to summary |
|---|---|
| public String getName() | |
| getPassword | back to summary |
|---|---|
| public String getPassword() Implements org. Doc from org. Log into the database with this password
| |
| getProperties | back to summary |
|---|---|
| public Properties getProperties() | |
| getProperty | back to summary |
|---|---|
| public String getProperty(String property) Implements org. Doc from org. Get a property | |
| getPropertyList | back to summary |
|---|---|
| public String getPropertyList() Implements org. Doc from org. Display the properties
| |
| getTransactionManagerLookupStrategy | back to summary |
|---|---|
| public String getTransactionManagerLookupStrategy() Implements org. Doc from org. Get the strategy for obtaining the JTA TransactionManager
| |
| getTransactionStrategy | back to summary |
|---|---|
| public String getTransactionStrategy() Implements org. Doc from org. The fully qualified class name of the Hibernate TransactionFactory implementation
| |
| getUserName | back to summary |
|---|---|
| public String getUserName() Implements org. Doc from org. Log into the database with this name
| |
| getUserTransactionName | back to summary |
|---|---|
| public String getUserTransactionName() Implements org. Doc from org. The JNDI name of the JTA UserTransaction object (used only be JTATransaction).
| |
| setAutoCloseSessionEnabled | back to summary |
|---|---|
| public void setAutoCloseSessionEnabled(String enabled) Implements org. Doc from org. Enable automatic closing of Session when JTA transaction ends. | |
| setDatasource | back to summary |
|---|---|
| public void setDatasource(String datasource) Implements org. Doc from org. Set the JNDI name of the datasource to use in this SessionFactory | |
| setFlushBeforeCompletionEnabled | back to summary |
|---|---|
| public void setFlushBeforeCompletionEnabled(String enabled) Implements org. Doc from org. Enable automatic flushing of the Session when JTA transaction ends. | |
| setJndiName | back to summary |
|---|---|
| public void setJndiName(String jndiName) Implements org. Doc from org. The JNDI name to bind to the SessionFactory | |
| setPassword | back to summary |
|---|---|
| public void setPassword(String password) Implements org. Doc from org. Log into the database with this password | |
| setProperty | back to summary |
|---|---|
| public void setProperty(String property, String value) Implements org. Doc from org. Set a property | |
| setTransactionManagerLookupStrategy | back to summary |
|---|---|
| public void setTransactionManagerLookupStrategy(String lkpStrategy) Implements org. Doc from org. Set the strategy for obtaining the JTA TransactionManager
| |
| setTransactionStrategy | back to summary |
|---|---|
| public void setTransactionStrategy(String txnStrategy) Implements org. Doc from org. Set the fully qualified class name of the Hibernate TransactionFactory implementation
| |
| setUserName | back to summary |
|---|---|
| public void setUserName(String userName) Implements org. Doc from org. Log into the database with this name | |
| setUserTransactionName | back to summary |
|---|---|
| public void setUserTransactionName(String utName) Implements org. Doc from org. Set the JNDI name of the JTA UserTransaction object (used only by JTATransaction).
| |
| start | back to summary |
|---|---|
| public void start() throws HibernateException Implements org. Doc from org. Create the SessionFactory and bind to the jndi name on startup | |
| stop | back to summary |
|---|---|
| public void stop() Implements org. Doc from org. Unbind the SessionFactory or stub from JNDI | |