|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.melati.poem.PoemThread
public final class PoemThread
A Poem Thread.
| Field Summary | |
|---|---|
static int |
threadsMax
The maximum number of Threads. |
| Method Summary | |
|---|---|
static AccessToken |
accessToken()
|
static void |
assertHasCapability(Capability capability)
Check that we have the given Capability, throw an
AccessPoemException if we don't. |
static void |
commit()
Commit to the underlying DBMS. |
static Database |
database()
Retrieve the Database associated with this thread. |
static boolean |
inSession()
Whether we are currently in a session. |
static Vector<SessionToken> |
openSessions()
Retrieve the open sessions. |
static void |
rollback()
Rollback the underlying DBMS. |
static SessionToken |
sessionToken()
|
static void |
setAccessToken(AccessToken token)
Change the access token under which your thread is operating. |
static ToTidyList |
toTidy()
Retrieve the ToTidyList for this session. |
static PoemTransaction |
transaction()
Retrieve the PoemTransaction for this PoemThread. |
static void |
withAccessToken(AccessToken token,
PoemTask task)
Run a PoemTask under a specified AccessToken, typically
Root. |
static void |
writeDown()
Write to the underlying DBMS. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int threadsMax
| Method Detail |
|---|
public static Vector<SessionToken> openSessions()
SessionTokens
public static SessionToken sessionToken()
throws NotInSessionPoemException
NotInSessionPoemException - if there is no current SessionToken
public static ToTidyList toTidy()
throws NotInSessionPoemException
ToTidyList for this session.
ToTidyList for this PoemThread.
NotInSessionPoemExceptionpublic static PoemTransaction transaction()
PoemTransaction for this PoemThread.
PoemTransaction for this PoemThread.public static boolean inSession()
public static AccessToken accessToken()
throws NotInSessionPoemException,
NoAccessTokenPoemException
NotInSessionPoemException - if we are not in a session
NoAccessTokenPoemException - if we do not have an AccessToken
public static void setAccessToken(AccessToken token)
throws NonRootSetAccessTokenPoemException
NonRootSetAccessTokenPoemExceptionAccessToken.root
public static void withAccessToken(AccessToken token,
PoemTask task)
PoemTask under a specified AccessToken, typically
Root.
token - the token to run withtask - the task to run
public static void assertHasCapability(Capability capability)
throws NotInSessionPoemException,
NoAccessTokenPoemException,
AccessPoemException
Capability, throw an
AccessPoemException if we don't.
capability - to check
NotInSessionPoemException
NoAccessTokenPoemException
AccessPoemException
public static Database database()
throws NotInSessionPoemException
Database associated with this thread.
Database associated with this thread.
NotInSessionPoemExceptionpublic static void writeDown()
public static void commit()
public static void rollback()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||