|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ode.daohib.SessionManager
public class SessionManager
Manages hibernate sessions, and their association with a transaction thread. Uses a ThreadLocal strategy for managing sessions.
Constructor Summary | |
---|---|
SessionManager(java.util.Properties env,
javax.sql.DataSource ds,
javax.transaction.TransactionManager tx)
Inaccessible constructor. |
Method Summary | |
---|---|
static java.sql.Connection |
getConnection(java.util.Properties props)
|
org.hibernate.cfg.Configuration |
getDefaultConfiguration()
Returns a hibernate configuration with hibernate DAO objects added as resources. |
org.hibernate.Session |
getSession()
Get the current Hibernate Session. |
static javax.transaction.TransactionManager |
getTransactionManager(java.util.Properties props)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SessionManager(java.util.Properties env, javax.sql.DataSource ds, javax.transaction.TransactionManager tx) throws org.hibernate.HibernateException
org.hibernate.HibernateException
Method Detail |
---|
public org.hibernate.Session getSession()
public org.hibernate.cfg.Configuration getDefaultConfiguration() throws org.hibernate.MappingException
org.hibernate.MappingException
public static javax.transaction.TransactionManager getTransactionManager(java.util.Properties props)
public static java.sql.Connection getConnection(java.util.Properties props) throws java.sql.SQLException
java.sql.SQLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |