public class SessionManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_GUID |
Constructor and Description |
---|
SessionManager(java.util.Properties env,
javax.sql.DataSource ds,
javax.transaction.TransactionManager tx)
Inaccessible constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canJoinForUpdate()
Returns flag which shows whether " where ..
|
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) |
static void |
registerTransactionManager(java.lang.String uuid,
javax.transaction.TransactionManager txm) |
void |
shutdown() |
public static final java.lang.String PROP_GUID
public SessionManager(java.util.Properties env, javax.sql.DataSource ds, javax.transaction.TransactionManager tx) throws org.hibernate.HibernateException
org.hibernate.HibernateException
public static void registerTransactionManager(java.lang.String uuid, javax.transaction.TransactionManager txm)
public org.hibernate.Session getSession()
public boolean canJoinForUpdate()
Dialect
. If it's false
than sub-query fallback
should be invoked instead.IngresDialect
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
public void shutdown()