|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hyperic.hibernate.Util
public class Util
from hibernate caveat emptor with modifications to optimize initial context lookup
Field Summary | |
---|---|
static java.lang.String |
HQ_UNITTEST_RUN
If the system property with this name is set to true , then
the HQ product is running within a unit test environment. |
Constructor Summary | |
---|---|
Util()
|
Method Summary | |
---|---|
static void |
endConnection()
disconnect SQL Connection from current JTA context |
static void |
flushCurrentSession()
|
static java.lang.Integer |
generateId(java.lang.String className,
java.lang.Object o)
Generate a new ID for a class of the given type. |
static java.util.List |
getCacheHealths()
|
static org.hibernate.cfg.Configuration |
getConfiguration()
Returns the original Hibernate configuration. |
static java.sql.Connection |
getConnection()
|
static org.hibernate.dialect.Dialect |
getDialect()
|
static HQDialect |
getHQDialect()
|
static org.hibernate.Interceptor |
getInterceptor()
|
static org.hibernate.SessionFactory |
getSessionFactory()
Returns the global SessionFactory. |
static java.util.Iterator |
getTableMappings()
|
static void |
initializeAll(java.util.Iterator i)
|
static void |
resetInterceptor()
Resets global interceptor to default state. |
static void |
shutdown()
Closes the current SessionFactory and releases all resources. |
static boolean |
tranRolledBack(java.lang.Throwable t)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String HQ_UNITTEST_RUN
true
, then
the HQ product is running within a unit test environment.
Constructor Detail |
---|
public Util()
Method Detail |
---|
public static org.hibernate.cfg.Configuration getConfiguration()
public static org.hibernate.SessionFactory getSessionFactory()
public static void shutdown()
public static org.hibernate.Interceptor getInterceptor()
public static void resetInterceptor()
public static HQDialect getHQDialect()
public static org.hibernate.dialect.Dialect getDialect()
public static java.sql.Connection getConnection()
public static void endConnection()
public static void flushCurrentSession()
public static void initializeAll(java.util.Iterator i)
public static java.util.Iterator getTableMappings()
public static java.lang.Integer generateId(java.lang.String className, java.lang.Object o)
className
- the persisted class name, as per the .hbm descriptor:
e.g. org.hyperic.hq.appdef.server.session.CpropKeyo
- The object which will be getting the new ID
public static java.util.List getCacheHealths()
public static boolean tranRolledBack(java.lang.Throwable t)
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |