|
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.hq.hibernate.SessionManager
public class SessionManager
This class manages the creation and deletion of Hibernate sessions.
| Nested Class Summary | |
|---|---|
static interface |
SessionManager.SessionRunner
|
| Method Summary | |
|---|---|
static void |
cleanupSession(boolean flush)
Close the current session. |
static org.hibernate.Session |
currentSession()
|
static boolean |
isReadWrite()
|
static void |
runInSession(SessionManager.SessionRunner r)
Run the passed runner in a session. |
static void |
setSessionReadWrite()
Upgrade the current running session (if there is one) to read-write |
static boolean |
setupSession(java.lang.String dbgTxt)
Create a session if it does not exist. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void runInSession(SessionManager.SessionRunner r)
throws java.lang.Exception
java.lang.Exceptionpublic static void setSessionReadWrite()
public static boolean isReadWrite()
public static boolean setupSession(java.lang.String dbgTxt)
dbgTxt - text to print when creating a session
public static void cleanupSession(boolean flush)
public static org.hibernate.Session currentSession()
|
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 | ||||||||