|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--planetj.dataengine.ExecutingContext
An ExecutingContext contains information or data to be used for the currently executing state of some action, operation, or request being carried out by the user.
Constructor Summary | |
ExecutingContext()
Creates a new ExecutingContext object |
|
ExecutingContext(IUser user)
Creates a new ExecutingContext object |
|
ExecutingContext(IUser user,
Application application)
Creates a new ExecutingContext object |
Method Summary | |
static void |
clearCurrentExecutingContext()
Sets the current executing context |
Application |
getApplication()
Get the current application of this executing context. |
static ExecutingContext |
getCurrentExecutingContext()
Gets the current executing context |
static ExecutingContext |
getCurrentExecutingContext(IUser user)
Gets the current executing context. |
static HttpExecutingContext |
getCurrentHttpExecutingContext()
Gets the current Http executing context |
static ExecutingContext |
getDefaultExecutingContext()
Return a default ExecutingContext with unknown user and application |
static ExecutingContext |
getDefaultExecutingContext(int pMode)
Return a default ExecutingContext with unknown user and application, and the specified mode |
int |
getMode()
Gets the mode of the current action being performed on the database (e.g. |
Object |
getObject(Object key)
|
Object |
getRuntimeParameterValue(String name)
Gets the value of a runtime parameter |
IUser |
getUser()
Get the current user of this executing context. |
String |
getUserLibrary()
Gets the current user library. |
Object |
putObject(Object key,
Object value)
|
Object |
removeObject(Object key)
|
void |
setApplication(Application application)
Set the current application of this executing context. |
static void |
setCurrentExecutingContext(ExecutingContext ec)
Sets the current executing context |
void |
setDataEngineMode(String newMode)
Sets the mode of the current action being performed by the application (e.g. |
void |
setMode(int newMode)
Sets the mode of the current action being performed on the database (e.g. |
void |
setUser(IUser user)
Set the current user of this executing context. |
void |
setUserLibrary(String newUserLibrary)
Sets the current user library |
static String |
transformAlias(String originalAlias)
Given a shared connection alias, returns the appropriate connection alias to use for DB access. |
String |
transformSystemAlias(String originalAlias)
Given a shared connection alias, returns the appropriate connection alias to use for DB access. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExecutingContext()
public ExecutingContext(IUser user)
public ExecutingContext(IUser user, Application application)
Method Detail |
public static void clearCurrentExecutingContext()
public Application getApplication()
public static ExecutingContext getCurrentExecutingContext()
public static HttpExecutingContext getCurrentHttpExecutingContext()
public static ExecutingContext getCurrentExecutingContext(IUser user)
public static ExecutingContext getDefaultExecutingContext()
public static ExecutingContext getDefaultExecutingContext(int pMode)
public int getMode()
public Object getObject(Object key)
public Object getRuntimeParameterValue(String name)
public IUser getUser()
public String getUserLibrary()
public Object putObject(Object key, Object value)
public Object removeObject(Object key)
public void setApplication(Application application)
public static void setCurrentExecutingContext(ExecutingContext ec)
public void setDataEngineMode(String newMode)
public void setMode(int newMode)
public void setUser(IUser user)
public void setUserLibrary(String newUserLibrary)
public static String transformAlias(String originalAlias)
public String transformSystemAlias(String originalAlias)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |