|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractMap oracle.jbo.common.JboAbstractMap oracle.adf.model.binding.DCDataControl oracle.adf.model.bc4j.DCJboDataControl oracle.jbo.uicli.binding.JUApplication
The application class that manages connection to a BC4J Application Module. The JUApplication class provides:
ApplicationModule
,
Transaction
,
JUTransactionStateListener
,
JUErrorHandler
Nested Class Summary |
Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
Field Summary | |
protected JUErrorHandler |
mJUErrorHandler
|
Fields inherited from class oracle.adf.model.bc4j.DCJboDataControl |
EXC_MODE_DEFAULT, EXC_MODE_DEFERRED, EXC_MODE_IMMEDIATE |
Fields inherited from class oracle.adf.model.binding.DCDataControl |
ABSTRACT, JCLIENT, mBindingContainerList, mDataProvider, mErrorHandler, mErrorHandlerActive, mErrorHandlerThrow, mIsRoot, mLocaleCtx, mName, mParent, mRootApplication, mStatusBarList, mTxnListeners, mUserData, OPER_CTRL_BINDING_VALIDATION, OPER_DATA_ROW_CREATE, OPER_DATA_ROW_REMOVE, OPER_DATA_ROW_UPDATE, OPER_EXECUTE, OPER_FIND_MODE, OPER_SORT_COLLECTION, PNAME_Type, REL_ALL_REFS, REL_DATA_REFS, REL_VIEW_REFS, REL_WEAK_DATA_REFS |
Constructor Summary | |
JUApplication()
|
|
JUApplication(ApplicationModule am)
Constructor used internally by the framework to associate an application module with a JClient application object. |
|
JUApplication(java.util.Hashtable context,
java.lang.String rootAMDefName,
java.lang.Object userData)
Constructs a root JUApplication object that connects to a BC4J Application Module of the given name. |
|
JUApplication(JUApplication parent,
ApplicationModule am,
java.lang.Object userData)
Constructor to be used to create a nested JUApplication inside another JUApplication object. |
|
JUApplication(SessionCookie sessionCookie)
|
Method Summary | |
void |
addFormBinding(JUFormBinding formBnd)
Register the given form binding object with this application. |
void |
addFormBinding(java.lang.String name,
JUFormBinding formBnd)
Register the given form binding object with this application with the given name. |
void |
addFormBinding(java.lang.String name,
JUFormBinding formBnd,
JUFormDef formDef)
Register the given form binding object with this application with the given name. |
JUFormBinding |
createFormBinding(java.lang.String name,
java.lang.String formDefName,
boolean initialize)
*** For internal framework use only *** |
JUFormBinding |
findFormBinding(java.lang.String name)
Return the JUFormBinding instance registered with this JUAppication with the given name. |
JUErrorHandler |
getErrorHandler()
Returns the DCErrorHandler registered with the root DCDataControl. |
JUApplication |
getRootApplication()
Returns the root DCDataControl object. |
void |
removeFormBinding(JUFormBinding formBnd)
Remove the JUFormBinding object of the given name (if any). |
void |
reportException(JUFormBinding formBnd,
java.lang.Exception ex)
This method is used by all framework binding objects to report exceptions. |
void |
setErrorHandler(java.lang.Object errHandlerObj)
Registers a DCErrorHandler with the root DCDataControl. |
Methods inherited from class oracle.jbo.common.JboAbstractMap |
entrySet, equals |
Methods inherited from class java.util.AbstractMap |
clear, clone, containsKey, containsValue, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.jbo.TransactionStateListener |
doneCommit, doneRollback |
Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, isEmpty, keySet, put, putAll, remove, size, values |
Field Detail |
protected JUErrorHandler mJUErrorHandler
Constructor Detail |
public JUApplication()
public JUApplication(java.util.Hashtable context, java.lang.String rootAMDefName, java.lang.Object userData)
context
- Context to pass on to the BC4J Application Module on creation.rootAMDefName
- Name that identifies the root BC4J Application Module.userData
- Data to store with the JUApplication object.public JUApplication(ApplicationModule am)
public JUApplication(JUApplication parent, ApplicationModule am, java.lang.Object userData)
public JUApplication(SessionCookie sessionCookie)
Method Detail |
public final JUApplication getRootApplication()
public final void removeFormBinding(JUFormBinding formBnd)
public final void addFormBinding(JUFormBinding formBnd)
public final void addFormBinding(java.lang.String name, JUFormBinding formBnd, JUFormDef formDef)
public final void addFormBinding(java.lang.String name, JUFormBinding formBnd)
public final JUFormBinding findFormBinding(java.lang.String name)
public final JUFormBinding createFormBinding(java.lang.String name, java.lang.String formDefName, boolean initialize)
Create a JUFormBinding instance using the given name and form definition.
public final void reportException(JUFormBinding formBnd, java.lang.Exception ex)
If the error handler is set to active state, then this method calls the registered error handler's reportException method. Othewise, it simply throws the given exception as a JboException.
DCErrorHandler
,
JboException
public final JUErrorHandler getErrorHandler()
oracle.jbo.uicli.jui.DCErrorHandlerDialog
public final void setErrorHandler(java.lang.Object errHandlerObj)
Custom error handlers may also implement oracle.jbo.JboExceptionHandler to handle batched Exceptions raised during client-side processing of Exceptions thrown in the Business Components tier. Alteratively an application can register it's own JboExceptionHandler with the Business Components ApplicationModule for this Application. after the DCErrorHandler is set with DCDataControl in this method.
Note that errors are sent to the registered error handler only when the error handler state is marked active (which is true by default) using the setErrorHandlerActive method.
setErrorHandler
in class DCDataControl
oracle.jbo.uicli.binding.DCErrorHandler
,
oracle.jbo.uicli.jui.DCErrorHandlerDialog
,
oracle.jbo.JboExceptionHanlder
,
ApplicationModule
|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.