|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.apps.fnd.common.Context | +--oracle.apps.fnd.wf.common.WorkflowContext
Workflow Context will be instantiated for each asynchronous call into a workflow process. This is a transient object that holds the JDBC connection, the NLS settings, the AppsContext when running in embedded (Apps) mode, reference to the logger and Workflow Resource Store, as well as information on the kind of store being used database, XML etc. In the embedded mode it can also be used to obtain a JDBC connection from the AOL/J Connection Pool. WorkflowContext should be initialized with an AppsContext in the embedded mode and with a JDBC connection in the standalone mode.
Field Summary | |
static java.lang.String |
RCS_ID
|
static boolean |
RCS_ID_RECORDED
|
Fields inherited from interface oracle.apps.fnd.wf.common.WorkflowConstants |
WF_DB, WF_DB_STORE, WF_DEFAULT_STORE, WF_DESIGN_STORE_LOCATION, WF_DESIGN_STORE_TYPE, WF_ENGINE_TYPE, WF_INBOUND_HOST_URL, WF_MT, WF_OUTBOUND_MAILBOX, WF_OUTBOUND_SMTP, WF_PARENT_CONTEXT, WF_RUNTIME_STORE_TYPE, WF_STORE_ID, WF_WFT_STORE, WF_XML_STORE |
Constructor Summary | |
WorkflowContext()
|
|
WorkflowContext(oracle.apps.fnd.common.AppsContext ctx)
This API will be used by Oracle Applications users to set applications specific context. |
|
WorkflowContext(java.sql.Connection conn)
Use this constructor when you have a database connection available. |
|
WorkflowContext(java.util.Map attributes)
Creates a new WorkflowContext object. |
|
WorkflowContext(WorkflowContext ctx)
Creates a new WorkflowContext object. |
Method Summary | |
oracle.apps.fnd.common.AppsContext |
getAppsContext()
Returns AppsContext which was used to instantiate the WorkflowContext. |
java.lang.Object |
getAttribute(java.lang.Object key)
Return attribute value for a given key value |
java.lang.String |
getCharset()
Returns current member value of character set. |
java.lang.String |
getDatabaseId()
This method will call super.getDatabaseId once this method is added to AOL/J context. |
java.lang.String |
getDateFormat()
Get the date format mask for the current session associated with the database connection. |
oracle.apps.fnd.common.EnvironmentStore |
getEnvStore()
This API is only available on AppsContext. |
oracle.apps.fnd.common.ErrorStack |
getErrorStack()
This API is only available on AppsContext. |
java.sql.Connection |
getExtraJDBCConnection(java.lang.Object pThis,
java.lang.String pSessionId)
This API is only available on AppsContext. |
java.sql.Connection |
getJDBCConnection()
This method returns current JDBC connection for this context. |
java.lang.String |
getNLSLanguage()
Get NLS language for the current session associated with the database connection. |
java.lang.String |
getNumberFormat()
Get the date format mask for current session associated with the database connection. |
oracle.apps.fnd.common.PreferenceStore |
getPreferenceStore()
This API is only available on AppsContext. |
oracle.apps.fnd.common.ProfileStore |
getProfileStore()
This API is only available on AppsContext. |
oracle.apps.fnd.common.ResourceStore |
getResourceStore()
Return the singleton WorkflowResourceStore. |
java.lang.String |
getTerritory()
Get NLS Territory for the current session associated with the database connection. |
oracle.apps.fnd.wf.WFContext |
getWFContext()
For internal use only. |
void |
releaseExtraJDBCConnection(java.sql.Connection conn)
This API is only available on AppsContext. |
void |
releaseJDBCConnection()
Release JDBC Connection that is held by this context. |
void |
setCharset(java.lang.String charset)
Use this API to change the character set for the context. |
void |
setResourceStore(oracle.apps.fnd.common.ResourceStore resourceStore)
This method does nothing, Default WorkflowResourceStore will be constructed when it is requested. |
void |
updateNLSSettings()
This method will refresh NLS settings using the current database connection. |
Methods inherited from class oracle.apps.fnd.common.Context |
getExtraJDBCConnection, getExtraJDBCConnection, getJDBCConnection, getJDBCConnection, getLog, getSessionId, getSessionManager, releaseJDBCConnection, setContextProperties, setContextProperty, setContextProperty, setContextProperty, setLog, setPreferenceStore, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String RCS_ID
public static final boolean RCS_ID_RECORDED
Constructor Detail |
public WorkflowContext()
public WorkflowContext(java.sql.Connection conn)
conn
- Parameterpublic WorkflowContext(WorkflowContext ctx)
ctx
- Parameterpublic WorkflowContext(java.util.Map attributes)
attributes
- Parameterpublic WorkflowContext(oracle.apps.fnd.common.AppsContext ctx)
ctx
- instance of AppsContext.Method Detail |
public java.lang.Object getAttribute(java.lang.Object key)
key
- Parameterpublic oracle.apps.fnd.common.AppsContext getAppsContext()
public java.lang.String getDatabaseId()
getDatabaseId
in class oracle.apps.fnd.common.Context
public java.sql.Connection getJDBCConnection()
getJDBCConnection
in class oracle.apps.fnd.common.Context
public void releaseJDBCConnection()
So if the WorkflowContext was intantiated with a JDBC connection that was supplied by the calling application then it is the responsibility of the application to release the connection.
releaseJDBCConnection
in class oracle.apps.fnd.common.Context
public java.sql.Connection getExtraJDBCConnection(java.lang.Object pThis, java.lang.String pSessionId)
getExtraJDBCConnection
in class oracle.apps.fnd.common.Context
pThis
- ParameterpSessionId
- Parameterpublic void releaseExtraJDBCConnection(java.sql.Connection conn)
releaseExtraJDBCConnection
in class oracle.apps.fnd.common.Context
conn
- Parameterpublic void updateNLSSettings() throws WorkflowRuntimeException
WorkflowRuntimeException
- Exceptionpublic void setCharset(java.lang.String charset)
charset
- Parameterpublic java.lang.String getCharset()
public java.lang.String getNLSLanguage()
public java.lang.String getDateFormat()
public java.lang.String getNumberFormat()
public java.lang.String getTerritory()
public oracle.apps.fnd.common.ErrorStack getErrorStack()
getErrorStack
in class oracle.apps.fnd.common.Context
public oracle.apps.fnd.common.ProfileStore getProfileStore()
getProfileStore
in class oracle.apps.fnd.common.Context
public oracle.apps.fnd.common.EnvironmentStore getEnvStore()
getEnvStore
in class oracle.apps.fnd.common.Context
public oracle.apps.fnd.common.PreferenceStore getPreferenceStore()
getPreferenceStore
in class oracle.apps.fnd.common.Context
public oracle.apps.fnd.common.ResourceStore getResourceStore()
getResourceStore
in class oracle.apps.fnd.common.Context
public void setResourceStore(oracle.apps.fnd.common.ResourceStore resourceStore)
setResourceStore
in class oracle.apps.fnd.common.Context
resourceStore
- Parameterpublic oracle.apps.fnd.wf.WFContext getWFContext()
WorkflowRuntimeException
- Exception
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |