|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsf.qof.session.SessionContextFactory.DefaultSessionContext
protected static class SessionContextFactory.DefaultSessionContext
Internal implementation of SessionContext.
Uses a ThreadLocal field to handle sessions for different threads.
| Field Summary |
|---|
| Fields inherited from interface sf.qof.session.SessionContext |
|---|
DEFAULT_CONTEXT_NAME |
| Method Summary | |
|---|---|
Connection |
getConnection()
Returns the database connection of the session belonging to the calling thread. |
UserTransaction |
getUserTransaction()
Returns the user transaction of the session belonging to the calling thread. |
void |
startSession()
This method starts a session. |
void |
stopSession()
This method stops a session. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Connection getConnection()
SessionContext
getConnection in interface SessionContextpublic UserTransaction getUserTransaction()
SessionContext
getUserTransaction in interface SessionContext
public void startSession()
throws SystemException
SessionContext
startSession in interface SessionContextSystemException - Thrown if an unexpected error condition occurs
public void stopSession()
throws SystemException
SessionContext
stopSession in interface SessionContextSystemException - Thrown if an unexpected error condition occurs
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||