|
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
The application class that manages connection to a Data Provider object. The DCDataControl class provides:
ApplicationModule
,
Transaction
,
DCTransactionStateListener
,
DCErrorHandler
Nested Class Summary |
Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
Field Summary | |
static byte |
ABSTRACT
|
static byte |
JCLIENT
|
protected java.util.ArrayList |
mBindingContainerList
|
protected java.lang.Object |
mDataProvider
|
protected DCErrorHandler |
mErrorHandler
|
protected boolean |
mErrorHandlerActive
|
protected DCErrorHandler |
mErrorHandlerThrow
|
protected boolean |
mIsRoot
|
protected LocaleContext |
mLocaleCtx
|
protected java.lang.String |
mName
|
protected DCDataControl |
mParent
|
protected DCDataControl |
mRootApplication
|
protected java.util.ArrayList |
mStatusBarList
DCStatusBarInterface objects that are notified with status bar messages. |
protected java.util.ArrayList |
mTxnListeners
DCTransactionStateListener objects that are notified of commit or rollback events when generated from the data-provider layer. |
protected java.lang.Object |
mUserData
|
static byte |
OPER_CTRL_BINDING_VALIDATION
|
static byte |
OPER_DATA_ROW_CREATE
|
static byte |
OPER_DATA_ROW_REMOVE
|
static byte |
OPER_DATA_ROW_UPDATE
|
static byte |
OPER_EXECUTE
|
static byte |
OPER_FIND_MODE
|
static byte |
OPER_SORT_COLLECTION
|
static java.lang.String |
PNAME_Type
|
static int |
REL_ALL_REFS
|
static int |
REL_DATA_REFS
|
static int |
REL_VIEW_REFS
|
static int |
REL_WEAK_DATA_REFS
|
Constructor Summary | |
protected |
DCDataControl()
|
protected |
DCDataControl(boolean root,
java.lang.Object userData)
Constructs a root DCDataControl object that connects to a Data Provider of the given name. |
Method Summary | |
void |
addBindingContainer(DCBindingContainer formBnd)
Register the given form binding object with this application. |
void |
addBindingContainer(java.lang.String name,
DCBindingContainer formBnd)
Register the given form binding object with this application with the given name. |
void |
addBindingContainer(java.lang.String name,
DCBindingContainer formBnd,
DCBindingContainerDef formDef)
Register the given form binding object with this application with the given name. |
void |
addBindingContainerRef(NamedObjectImpl formBnd)
Register the given form binding object with this application. |
void |
addBindingWithExc(java.lang.String name)
|
protected DCBindingContainer |
addOrCreateBindingContainer(java.lang.String name,
DCBindingContainer formBnd,
DCBindingContainerDef formDef,
boolean initialize,
boolean replace)
|
void |
addStatusBarInterface(DCStatusBarInterface statusBar)
Add the given status bar object to this application's list. |
void |
addTransactionStateListener(DCTransactionStateListener statusBar)
Adds listeners like StatusBar and NavigationBars that have to listen and react to transaction's modified state. |
protected abstract void |
applySortCriteria(DCIteratorBinding iter,
SortCriteria[] sortby)
Sets the sort critiera that will be applied next time when the source for this iteratorBinding is executed. |
void |
beginRequest(java.util.HashMap requestCtx)
Invoked in some contexts to signal the beginning of a model request. |
void |
callCommitTransaction()
Helper method that invokes beforeSaveTransaction event on all DCPanelBinding objects and then invokes the BC4J transaction's commit() method to save all changes to the database. |
void |
cleanup()
|
void |
commitTransaction()
Invokes the BC4J transaction's commit() method to save all changes to the database. |
protected void |
connect()
If this DCDataControl is root, this method invokes the corresponding BC4J Transaction's connect() method to create a database connection. |
RowSetIterator |
createAccessorRowSetIterator(RowSetIterator masterRSI,
DCIteratorBinding iter,
java.lang.String accName,
java.lang.String beanClass)
creates a accessor RSI using the current or the first row of the masterRSI and calling the get |
RowSetIterator |
createAccessorRowSetIterator(RowSetIterator masterRSI,
Row row,
DCIteratorBinding iter,
java.lang.String accName,
java.lang.String beanClass)
|
protected RowSetIterator |
createAccessorRowSetIterator(RowSetIterator masterRSI,
Row row,
DCIteratorBinding iter,
java.lang.String accName,
java.lang.String beanClass,
boolean trackMaster)
|
DCBindingContainer |
createBindingContainer(java.lang.String name,
java.lang.String formDefName,
boolean initialize)
Create a DCBindingContainer instance using the given name and form definition. |
DCBindingContainer |
createBindingContainerInstance(java.lang.String mBindingContainerClassName)
|
java.lang.Object |
createRowData(DCRowContext ctx)
Create a new row for the iterator associated with the given iterator-binding at the given index and return the new row. |
RowSetIterator |
createRowSetIteratorImpl(DCIteratorBinding iter,
java.lang.String defName,
java.lang.Object sourceObj,
RowSetIterator master)
Creates an RSI for a given iterator and source collection/object. |
protected abstract RowSetIterator |
createRowSetIteratorImpl(java.lang.String defName,
java.lang.Object sourceObj,
RowSetIterator master)
Create a DCRowSetIteratorImpl or a subclass thereof for the give defName element types, using the given source collection/object and optionally the master RSI if there is a dependency defined on the master. |
void |
displayStatus(DCIteratorBinding iterBinding,
java.lang.String msgId,
java.lang.Object[] params)
Send the given message Id and parameter list along with the current iterator binding object to all status bar instances registered with this Application. |
void |
displayStatus(java.lang.String msg)
Send the given message to all status bar interface objects registered with this application. |
void |
doneCommit(TransactionStateEvent event)
Implementation of oracle.jbo.TransactionStateListener interface. |
void |
doneRollback(TransactionStateEvent event)
Implementation of oracle.jbo.TransactionStateListener interface. |
void |
endRequest(java.util.HashMap requestCtx)
Invoked in some contexts to signal the end of a model request. |
protected abstract void |
executeIteratorBinding(DCIteratorBinding iterBinding)
Implies forced execute of the collection that this iterator binding is bound to. |
protected abstract void |
executeIteratorBindingIfNeeded(DCIteratorBinding iterBinding)
This method is invoked when a bindingcontainer is 'refreshing' itself before it's data is displayed. |
DCBindingContainer |
findBindingContainer(java.lang.String name)
Return the DCBindingContainer instance registered with this DCAppication with the given name. |
RowSetIterator |
findOrCreateAccessorRowSetIterator(DCIteratorBinding masterIter,
DCIteratorBinding iter,
java.lang.String accName,
java.lang.String beanClass)
|
RowSetIterator |
findOrCreateAccessorRowSetIterator(RowSetIterator masterRSI,
DCIteratorBinding iter,
java.lang.String accName,
java.lang.String beanClass)
Deprecated. since 10.1.2 |
RowSetIterator |
findOrCreateMethodRowSetIterator(DCIteratorBinding iter,
java.lang.String beanClass,
java.lang.Object result)
|
protected RowSetIterator |
findOrCreateRowSetIteratorImpl(DCIteratorBinding iter,
java.lang.String defName,
java.lang.Object sourceObj,
RowSetIterator master)
|
void |
focusGained(DCIteratorBinding iterBinding,
DCControlBinding binding,
int attrIndex)
This method is used by the framework to display currency information in the status bars. |
java.lang.Object |
get(java.lang.Object keyObj)
override hashmap.get() |
protected abstract java.lang.Object |
getAccessorValue(RowSetIterator masterRSI,
Row row,
DCIteratorBinding iter,
java.lang.String accName)
|
ApplicationModule |
getApplicationModule()
For all nonbc4j Applications, this should return null. |
AttributeDef[] |
getAttributeDefs(DCIteratorBinding iterBinding,
java.lang.String[] attrNames)
Return attribute definition for the given iterator binding and for the given set of attributes from the elements-definition of the mapped collection. |
BindingContext |
getBindingContext()
Returns the binding context in which this datacontrol is registered |
DCErrorHandler |
getCurrentErrorHandler()
Returns the DCErrorHandler registered with the root DCDataControl. |
java.lang.Object |
getDataProvider()
|
JUApplicationDefImpl |
getDef()
Returns the definition object for this DCDataControl |
boolean |
getErrorHandlerActive()
Returns the error-handler active state of the root DCDataControl object. |
protected abstract long |
getEstimatedRowCount(DCIteratorBinding iter)
Implement estimated row count logic in this method and return the row count for a collection bound to this iterator. |
LocaleContext |
getLocaleContext()
Returns the locale for this Application |
java.util.Map |
getMethodResults()
For looking up method results stored in this DataControl. |
int |
getMethodResultUseCount(java.lang.Object key)
For internal use only. |
java.lang.String |
getName()
Returns the instance name of this DCDataControl object. |
DCDataControl |
getParent()
Returns the container DCDataControl object if any. |
DCDataControl |
getRootDataControl()
Returns the root DCDataControl object. |
protected abstract RowSetIterator |
getRowSetIterator(java.lang.String masterName)
Given the name of an RSI, find if it's already created and cached on the datacontrol |
SessionContext |
getSessionContext()
|
protected SessionContextManager |
getSessionContextManager()
|
protected abstract SortCriteria[] |
getSortCriteria(DCIteratorBinding iter)
Returns an ordered array of SortCriteria that will be applied when the source for this iteratorBinding is executed. |
java.lang.Object |
getUserData()
|
ViewCriteria |
getViewCriteria(DCIteratorBinding iter)
Return viewCriteria associated with the given iterator binding's collection. |
boolean |
hasBindingsWithExc()
|
int |
hashCode()
|
void |
initialize()
*** Advanced method *** |
protected void |
initializeBindingContainer(DCBindingContainerDef formDef,
DCBindingContainer formBnd,
boolean initialize)
|
void |
initializeContainerFromDef(java.lang.String name)
|
protected java.lang.Object |
internalGet(java.lang.String key)
For EL evaluation. |
protected Row |
internalGetCurrentRow(DCIteratorBinding iter)
|
java.lang.Object |
invokeMethod(DCInvokeMethodDef methodInfo,
java.util.ArrayList params)
Override this method if a datacontrol wants to implement custom invocation of a method and avoid introspection and invoke method call using reflection. |
boolean |
isClientTier()
Returns true in case of BC4J client-tier app. |
boolean |
isJClientApp()
|
boolean |
isOperationSupported(DCIteratorBinding iterBinding,
byte operation)
Returns true for operation = OPER_CTRL_BINDING_VALIDATION Returns false for all other cases. |
boolean |
isRoot()
Returns true if this DCDataControl is the root DCDataControl. |
abstract boolean |
isTransactionDirty()
Returns true if this transaction has been dirtied by this application. |
boolean |
isTransactionModified()
Returns true if this DCDataControl has modified attribute values. |
protected void |
rebuildIteratorIfNeeded(DCIteratorBinding iterBinding)
|
java.lang.Object |
registerDataProvider(DCRowContext ctx)
Called before the row in the RowContext object is modified/marked as removed. |
void |
release()
Calls release(REL_ALL_REFS); |
void |
release(int flags)
Based on the value of the flags parameter, releases all references to the objects in the data provider layer (BC4J or other data-provider objects). |
protected void |
removeBindingContainer(DCBindingContainer formBnd)
Remove the DCBindingContainer object of the given name (if any). |
void |
removeBindingWithExc(java.lang.String name)
|
boolean |
removeRowData(DCRowContext ctx)
This method is to remove the row object (the obj parameter)
from the underlying data source. |
boolean |
removeRowDataFromCollection(DCRowContext ctx)
This method is to remove the row object (the obj parameter)
from the collection. |
void |
removeStatusBarInterface(DCStatusBarInterface statusBar)
Remove the given instance of status bar interface if found. |
void |
removeTransactionStateListener(DCTransactionStateListener statusBar)
Remove the given object from JUTransactionStateListener list. |
void |
reportException(DCBindingContainer formBnd,
java.lang.Exception ex)
This method is used by all framework binding objects to report exceptions. |
protected void |
resetAttributeExceptionInRow(DCIteratorBinding iter,
Row row,
AttributeDef def,
AttrValException ave)
Reset any deferred exception in the row for the given attribute, for which the AttrValException was raised. |
boolean |
resetState()
Resets the DataControl. |
protected AttributeDef[] |
resolveAttributeDefs(StructureDef def,
java.lang.String[] attrNames)
|
void |
rollbackTransaction()
Helper method that invokes rollback on the current Transaction. |
void |
setAttributeInRow(DCIteratorBinding iterBind,
Row row,
AttributeDef ad,
java.lang.Object value)
|
void |
setBindingContext(BindingContext ctx)
|
void |
setClientApp(byte clientType)
|
abstract void |
setCurrentRowWithKey(DCIteratorBinding iter,
java.lang.String stringKey)
Converts the serialized stringKey into a Row key object (using collection's key metadata) and then calls findByKey on the RowSetIterator to find the row matching this key. |
abstract void |
setCurrentRowWithKeyValue(DCIteratorBinding iter,
java.lang.String stringValue)
This method works for Collections with only one Key attribute and not for multi-part attribute keys. |
protected void |
setDataProvider(java.lang.Object obj)
|
void |
setDef(JUApplicationDefImpl appDef)
Sets the definition object of this DCDataControl Object |
void |
setErrorHandler(java.lang.Object errHandlerObj)
Registers a DCErrorHandler with the root DCDataControl. |
void |
setErrorHandlerActive(boolean b)
*** Advanced method *** |
void |
setLocaleContext(LocaleContext locale)
Helper method that sets the locale in the current Application. |
void |
setName(java.lang.String name)
Sets the instance name of this DCDataControl Object |
void |
setSessionContext(SessionContext sessionContext)
|
void |
setTransactionModified()
If this transaction is not in modified state, this method sets it to a modified state. |
void |
sync(java.lang.String syncFromDiagnostic)
Incase syncNeeded, then use this event to synchronize data from remote tier in batch. |
void |
syncIfNeeded(java.lang.String syncFromDiagnostic)
Incase syncNeeded, then use this event to synchronize data from remote tier in batch. |
boolean |
syncNeeded()
Primarily used in ADFBC which returns true, if it is deployed in batchmode. |
java.lang.String |
toString()
|
void |
transactionStateChanged(boolean state)
Use this method to notify all transaction state change listeners of the change |
void |
validate()
Called when datacontrol changes needs to be validated after updates have been processed for a page. |
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 java.util.Map |
clear, containsKey, containsValue, entrySet, equals, isEmpty, keySet, put, putAll, remove, size, values |
Field Detail |
protected boolean mIsRoot
protected DCDataControl mParent
protected DCDataControl mRootApplication
protected java.lang.Object mUserData
protected java.lang.String mName
protected java.util.ArrayList mBindingContainerList
protected DCErrorHandler mErrorHandler
protected DCErrorHandler mErrorHandlerThrow
protected boolean mErrorHandlerActive
protected LocaleContext mLocaleCtx
public static byte ABSTRACT
public static byte JCLIENT
public static final byte OPER_DATA_ROW_UPDATE
public static final byte OPER_DATA_ROW_CREATE
public static final byte OPER_DATA_ROW_REMOVE
public static final byte OPER_FIND_MODE
public static final byte OPER_CTRL_BINDING_VALIDATION
public static final byte OPER_EXECUTE
public static final byte OPER_SORT_COLLECTION
protected java.lang.Object mDataProvider
public static int REL_ALL_REFS
public static int REL_DATA_REFS
public static int REL_VIEW_REFS
public static int REL_WEAK_DATA_REFS
public static final java.lang.String PNAME_Type
protected java.util.ArrayList mStatusBarList
protected java.util.ArrayList mTxnListeners
Constructor Detail |
protected DCDataControl()
protected DCDataControl(boolean root, java.lang.Object userData)
root
- If this DCDataControl is a root DCDataControl managing the transaction.userData
- Data to store with the DCDataControl object.Method Detail |
public final java.lang.String getName()
getName
in interface DataControl
public final void setName(java.lang.String name)
public final JUApplicationDefImpl getDef()
public final void setDef(JUApplicationDefImpl appDef)
public void initialize()
Creates a connection to the data-provider layer.
public java.lang.Object getDataProvider()
protected void setDataProvider(java.lang.Object obj)
public final void reportException(DCBindingContainer 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 DCErrorHandler getCurrentErrorHandler()
oracle.jbo.uicli.jui.DCErrorHandlerDialog
public 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. 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.
oracle.jbo.uicli.binding.DCErrorHandler
,
oracle.jbo.uicli.jui.DCErrorHandlerDialog
,
oracle.jbo.JboExceptionHanlder
,
ApplicationModule
public final boolean getErrorHandlerActive()
public final void setErrorHandlerActive(boolean b)
Sets the error-handler active state of the root DCDataControl object. This is used to control whether to throw an exception raised by the framework (which is used by automated regression tests to trap exceptions and log them). By default the state is set to true - meaning raise all exceptions via the registered error handler.
protected void connect()
public LocaleContext getLocaleContext()
public void setLocaleContext(LocaleContext locale)
public ApplicationModule getApplicationModule()
protected abstract RowSetIterator getRowSetIterator(java.lang.String masterName)
protected abstract java.lang.Object getAccessorValue(RowSetIterator masterRSI, Row row, DCIteratorBinding iter, java.lang.String accName)
public RowSetIterator createAccessorRowSetIterator(RowSetIterator masterRSI, DCIteratorBinding iter, java.lang.String accName, java.lang.String beanClass)
public RowSetIterator createAccessorRowSetIterator(RowSetIterator masterRSI, Row row, DCIteratorBinding iter, java.lang.String accName, java.lang.String beanClass)
protected RowSetIterator createAccessorRowSetIterator(RowSetIterator masterRSI, Row row, DCIteratorBinding iter, java.lang.String accName, java.lang.String beanClass, boolean trackMaster)
public RowSetIterator findOrCreateMethodRowSetIterator(DCIteratorBinding iter, java.lang.String beanClass, java.lang.Object result)
public RowSetIterator findOrCreateAccessorRowSetIterator(RowSetIterator masterRSI, DCIteratorBinding iter, java.lang.String accName, java.lang.String beanClass)
protected Row internalGetCurrentRow(DCIteratorBinding iter)
public RowSetIterator findOrCreateAccessorRowSetIterator(DCIteratorBinding masterIter, DCIteratorBinding iter, java.lang.String accName, java.lang.String beanClass)
protected abstract RowSetIterator createRowSetIteratorImpl(java.lang.String defName, java.lang.Object sourceObj, RowSetIterator master)
protected RowSetIterator findOrCreateRowSetIteratorImpl(DCIteratorBinding iter, java.lang.String defName, java.lang.Object sourceObj, RowSetIterator master)
public final RowSetIterator createRowSetIteratorImpl(DCIteratorBinding iter, java.lang.String defName, java.lang.Object sourceObj, RowSetIterator master)
public final boolean isRoot()
public final DCDataControl getParent()
public final DCDataControl getRootDataControl()
public final java.lang.Object getUserData()
protected final void removeBindingContainer(DCBindingContainer formBnd)
public final void addBindingContainer(DCBindingContainer formBnd)
public final void addBindingContainerRef(NamedObjectImpl formBnd)
public final void addBindingContainer(java.lang.String name, DCBindingContainer formBnd, DCBindingContainerDef formDef)
public final void addBindingContainer(java.lang.String name, DCBindingContainer formBnd)
protected void initializeBindingContainer(DCBindingContainerDef formDef, DCBindingContainer formBnd, boolean initialize)
protected DCBindingContainer addOrCreateBindingContainer(java.lang.String name, DCBindingContainer formBnd, DCBindingContainerDef formDef, boolean initialize, boolean replace)
public final DCBindingContainer findBindingContainer(java.lang.String name)
public final DCBindingContainer createBindingContainer(java.lang.String name, java.lang.String formDefName, boolean initialize)
public boolean isJClientApp()
public void setClientApp(byte clientType)
public DCBindingContainer createBindingContainerInstance(java.lang.String mBindingContainerClassName)
public void initializeContainerFromDef(java.lang.String name)
public final void addStatusBarInterface(DCStatusBarInterface statusBar)
public final void removeStatusBarInterface(DCStatusBarInterface statusBar)
public final void displayStatus(DCIteratorBinding iterBinding, java.lang.String msgId, java.lang.Object[] params)
public final void displayStatus(java.lang.String msg)
public final void focusGained(DCIteratorBinding iterBinding, DCControlBinding binding, int attrIndex)
public final boolean hasBindingsWithExc()
public void validate()
public void commitTransaction()
public final void callCommitTransaction()
public void rollbackTransaction()
public final boolean isTransactionModified()
public void setTransactionModified()
public final void transactionStateChanged(boolean state)
public final void addTransactionStateListener(DCTransactionStateListener statusBar)
public final void removeTransactionStateListener(DCTransactionStateListener statusBar)
public final void doneCommit(TransactionStateEvent event)
event
- A description of the event.public final void doneRollback(TransactionStateEvent event)
event
- A description of the event.public void beginRequest(java.util.HashMap requestCtx)
Subclassing datacontrols may extend this method to perform request level initialization of the DataControl.
This method is guaranteed to be called only once per browser request. Page forwards should not result in multiple invocations.
beginRequest
in interface DCDataControlManagement
requestCtx
- a HashMap representing request context. Web
applications which require request context may use the
BindingContext.HTTP_REQUEST and
BindingContext.HTTP_RESPONSE keys to acquire a reference
from from the BindingContext.public void endRequest(java.util.HashMap requestCtx)
Subclassing datacontrols may extend this method to perform request level cleanup of the DataControl.
This method is guaranteed to be called only once per browser request. Page forwards should not result in multiple invocations.
endRequest
in interface DCDataControlManagement
requestCtx
- a HashMap representing request context. Web
applications which require request context may use the
BindingContext.HTTP_REQUEST and
BindingContext.HTTP_RESPONSE keys to acquire a reference
from from the BindingContext.public void release()
release
in interface DCDataControlManagement
public void release(int flags)
REL_ALL_REFS
- if this data control
should release all references to both the view and model
objects.
REL_DATA_REFS
- if this data control
should release all references to data provider objects. The
likely usage would be when say an Application Module is to
be checked into a pool and this data-control may be given
that or another checked out AM to work with subsequently.
REL_VIEW_REFS
- if this data control
should release all references to the UI/View layer objects.
release
in interface DCDataControlManagement
public java.lang.Object get(java.lang.Object keyObj)
get
in interface java.util.Map
get
in class JboAbstractMap
protected java.lang.Object internalGet(java.lang.String key)
dataProvider
- returns getDataProvider()name
- returns getName()applicationModule
- returns getApplicationModule()
internalGet
in class JboAbstractMap
public void cleanup()
public int hashCode()
hashCode
in interface java.util.Map
hashCode
in class JboAbstractMap
protected void rebuildIteratorIfNeeded(DCIteratorBinding iterBinding)
protected abstract void executeIteratorBinding(DCIteratorBinding iterBinding)
protected abstract void executeIteratorBindingIfNeeded(DCIteratorBinding iterBinding)
public AttributeDef[] getAttributeDefs(DCIteratorBinding iterBinding, java.lang.String[] attrNames)
public boolean isOperationSupported(DCIteratorBinding iterBinding, byte operation)
public final void setBindingContext(BindingContext ctx)
public final BindingContext getBindingContext()
public java.lang.Object invokeMethod(DCInvokeMethodDef methodInfo, java.util.ArrayList params)
public void addBindingWithExc(java.lang.String name)
public void removeBindingWithExc(java.lang.String name)
public abstract boolean isTransactionDirty()
public boolean isClientTier()
public java.lang.String toString()
public boolean syncNeeded()
public void syncIfNeeded(java.lang.String syncFromDiagnostic)
public void sync(java.lang.String syncFromDiagnostic)
protected abstract long getEstimatedRowCount(DCIteratorBinding iter)
public void setSessionContext(SessionContext sessionContext)
public SessionContext getSessionContext()
protected SessionContextManager getSessionContextManager()
public abstract void setCurrentRowWithKeyValue(DCIteratorBinding iter, java.lang.String stringValue)
Converts the stringValue into a Row key (using collection's key metadata) and then calls findByKey on the RowSetIterator to find the row matching this key. If a row is found, that row is set as current.
public abstract void setCurrentRowWithKey(DCIteratorBinding iter, java.lang.String stringKey)
public java.lang.Object registerDataProvider(DCRowContext ctx)
public void setAttributeInRow(DCIteratorBinding iterBind, Row row, AttributeDef ad, java.lang.Object value)
public java.lang.Object createRowData(DCRowContext ctx)
public boolean removeRowData(DCRowContext ctx)
obj
parameter)
from the underlying data source.
true
if the operation was successful.
false
otherwise.public boolean removeRowDataFromCollection(DCRowContext ctx)
obj
parameter)
from the collection. It should not remove the row from the underlying
data source.
true
if the operation was successful.
false
otherwise.protected AttributeDef[] resolveAttributeDefs(StructureDef def, java.lang.String[] attrNames)
protected abstract void applySortCriteria(DCIteratorBinding iter, SortCriteria[] sortby)
protected abstract SortCriteria[] getSortCriteria(DCIteratorBinding iter)
public java.util.Map getMethodResults()
public int getMethodResultUseCount(java.lang.Object key)
public boolean resetState()
The ADF/BC DataControl has extended resetState to release the DataControl ApplicationModule to the ApplicationPool in unmanaged release mode.
An EJB DataControl provider may extend resetState to close the DataControl EJB SessionBean
The Toplink DataControl provider extends resetState to reset the DataControl's UnitOfWork and associated RowSetIterators.
Please note that resetState may not occur immediately. If beginRequest has been invoked on the DataControl then resetState processing will be deferred until endRequest processing.
Extending DataControl providers may optionally invoke release(REL_DATA_REFS) after performing and DataControl specific resetState handling.
resetState
in interface DCDataControlManagement
public ViewCriteria getViewCriteria(DCIteratorBinding iter)
protected void resetAttributeExceptionInRow(DCIteratorBinding iter, Row row, AttributeDef def, AttrValException ave)
|
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.