|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-02 | ||||||||||
| 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.generic.DCGenericDataControl
| Nested Class Summary |
| Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
| Field Summary | |
static java.lang.String |
DC_ROOT_ACC_NAME |
protected StructureDefImpl |
mDef |
protected java.util.HashMap |
mRSIs |
protected java.util.HashMap |
mStructureDefs |
| 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 | |
protected |
DCGenericDataControl(java.lang.String name) |
DCGenericDataControl(java.lang.String name, java.lang.String beanClass, java.lang.Object beanInstance) |
|
DCGenericDataControl(java.lang.String name, java.lang.String beanClass, java.lang.Object beanInstance, boolean root) |
|
| Method Summary | |
protected void |
applySortCriteria(DCIteratorBinding iter, SortCriteria[] sortby)Sets the sort critiera that will be applied next time when the source for this iteratorBinding is executed. |
protected void |
closeRowSetIterators(boolean recurseDetailRSIs)Clears the current data and state associated with all RSIs contained in this data control. |
void |
commitTransaction()Invokes the BC4J transaction's commit() method to save all changes to the database. |
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. |
protected 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. |
protected void |
executeIteratorBinding(DCIteratorBinding iter)Clears the dataProvider iterator cached on the RowSet bound to given iterator binding, so that the method accessor is invoked again to fetch a fresh dataProvider for the association RowSet. |
protected void |
executeIteratorBindingIfNeeded(DCIteratorBinding iter)This method is invoked when a bindingcontainer is 'refreshing' itself before it's data is displayed. |
protected void |
executeMethodIterators() |
protected java.lang.Object |
fetchProperty(RowImpl row, java.lang.String propName) |
protected java.lang.Object |
fetchProviderProperty(java.lang.String propName) |
protected RowSetIterator |
fetchRowSetIterator(java.lang.String path) |
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)Use findOrCreateAccessorRowSetIterator(DCIteratorBinding masterIter....) instead. |
RowSetIterator |
findOrCreateMethodRowSetIterator(DCIteratorBinding iter, java.lang.String beanClass, java.lang.Object result) |
protected DCGenericRowSetIteratorImpl |
findRootRowSetIterator(java.lang.String name) |
protected StructureDefImpl |
findStructureDef(java.lang.String beanClass) |
protected StructureDefImpl[] |
getAccessorDefs(StructureDefImpl def)Invoked for dynamic DataControls. |
protected java.lang.Object |
getAccessorValue(RowSetIterator masterRSI, Row row, DCIteratorBinding iter, java.lang.String accName) |
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. |
protected AttributeDefImpl[] |
getAttributeDefs(StructureDefImpl def)Invoked for dynamic DataControls. |
protected long |
getEstimatedRowCount(DCIteratorBinding iter)Implement estimated row count logic in this method and return the row count for a collection bound to this iterator. |
protected RowSetIterator |
getRowSetIterator(java.lang.String sourceName)Given the name of an RSI, find if it's already created and cached on the datacontrol |
protected SortCriteria[] |
getSortCriteria(DCIteratorBinding iter)Returns an ordered array of SortCriteria that will be applied when the source for this iteratorBinding is executed. |
protected void |
initializeBindingContainer(DCBindingContainerDef formDef, DCBindingContainer formBnd, boolean initialize) |
protected void |
initializeRSIs()Internal use only. |
boolean |
isOperationSupported(DCIteratorBinding iterBinding, byte oper)Returns false for execute, create, remove and find Operations |
boolean |
isTransactionDirty()Returns true if this transaction has been dirtied by this application. |
boolean |
removeRowData(DCRowContext ctx)This method is to remove the row object (the obj parameter) from the underlying data source. |
protected void |
restoreRSIs() |
void |
rollbackTransaction()Helper method that invokes rollback on the current Transaction. |
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. |
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. |
| 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 java.util.HashMap mStructureDefs
protected java.util.HashMap mRSIs
protected StructureDefImpl mDef
public static java.lang.String DC_ROOT_ACC_NAME
| Constructor Detail |
protected DCGenericDataControl(java.lang.String name)
public DCGenericDataControl(java.lang.String name,
java.lang.String beanClass,
java.lang.Object beanInstance)
public DCGenericDataControl(java.lang.String name,
java.lang.String beanClass,
java.lang.Object beanInstance,
boolean root)
| Method Detail |
public boolean isTransactionDirty()
DCDataControlisTransactionDirty in class DCDataControlpublic void commitTransaction()
DCDataControlcommitTransaction in class DCDataControlpublic void rollbackTransaction()
DCDataControlrollbackTransaction in class DCDataControlpublic boolean removeRowData(DCRowContext ctx)
DCDataControlobj parameter) from the underlying data source.removeRowData in class DCDataControltrue if the operation was successful. false otherwise.public java.lang.Object createRowData(DCRowContext ctx)
DCDataControlcreateRowData in class DCDataControlprotected void initializeRSIs()
protected void initializeBindingContainer(DCBindingContainerDef formDef,
DCBindingContainer formBnd,
boolean initialize)
initializeBindingContainer in class DCDataControlprotected void executeIteratorBinding(DCIteratorBinding iter)
executeIteratorBinding in class DCDataControlprotected void executeIteratorBindingIfNeeded(DCIteratorBinding iter)
DCDataControlexecuteIteratorBindingIfNeeded in class DCDataControlprotected RowSetIterator getRowSetIterator(java.lang.String sourceName)
DCDataControlgetRowSetIterator in class DCDataControlprotected RowSetIterator fetchRowSetIterator(java.lang.String path)
protected void closeRowSetIterators(boolean recurseDetailRSIs)
protected DCGenericRowSetIteratorImpl findRootRowSetIterator(java.lang.String name)
protected java.lang.Object getAccessorValue(RowSetIterator masterRSI,
Row row,
DCIteratorBinding iter,
java.lang.String accName)
getAccessorValue in class DCDataControl
public RowSetIterator findOrCreateMethodRowSetIterator(DCIteratorBinding iter,
java.lang.String beanClass,
java.lang.Object result)
findOrCreateMethodRowSetIterator in class DCDataControl
public RowSetIterator findOrCreateAccessorRowSetIterator(DCIteratorBinding masterIter,
DCIteratorBinding iter,
java.lang.String accName,
java.lang.String beanClass)
findOrCreateAccessorRowSetIterator in class DCDataControl
public RowSetIterator findOrCreateAccessorRowSetIterator(RowSetIterator masterRSI,
DCIteratorBinding iter,
java.lang.String accName,
java.lang.String beanClass)
DCDataControlfindOrCreateAccessorRowSetIterator in class DCDataControl
protected RowSetIterator createRowSetIteratorImpl(java.lang.String defName,
java.lang.Object sourceObj,
RowSetIterator master)
DCDataControlcreateRowSetIteratorImpl in class DCDataControl
public void setCurrentRowWithKeyValue(DCIteratorBinding iter,
java.lang.String stringValue)
DCDataControlConverts 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.
setCurrentRowWithKeyValue in class DCDataControl
public void setCurrentRowWithKey(DCIteratorBinding iter,
java.lang.String stringKey)
DCDataControlsetCurrentRowWithKey in class DCDataControlprotected StructureDefImpl findStructureDef(java.lang.String beanClass)
public AttributeDef[] getAttributeDefs(DCIteratorBinding iterBinding,
java.lang.String[] attrNames)
DCDataControlgetAttributeDefs in class DCDataControl
protected java.lang.Object fetchProperty(RowImpl row,
java.lang.String propName)
protected java.lang.Object fetchProviderProperty(java.lang.String propName)
protected void restoreRSIs()
public boolean isOperationSupported(DCIteratorBinding iterBinding,
byte oper)
isOperationSupported in class DCDataControlprotected long getEstimatedRowCount(DCIteratorBinding iter)
DCDataControlgetEstimatedRowCount in class DCDataControlprotected AttributeDefImpl[] getAttributeDefs(StructureDefImpl def)
AttributeDefImpl instances for the specified StructureDefImpl instance.
The constructor AttributeDefImpl.AttributeDefImpl(String, String, String, boolean, int) should be used to create the AttributeDefImpl instances.
protected StructureDefImpl[] getAccessorDefs(StructureDefImpl def)
StructureDefImpl instances for the specified StructureDefImpl instance.
The method StructureDefImpl.createNewAccessor(String, String). should be used to create StructureDefImpl instances.
protected void applySortCriteria(DCIteratorBinding iter,
SortCriteria[] sortby)
applySortCriteria in class DCDataControlprotected SortCriteria[] getSortCriteria(DCIteratorBinding iter)
getSortCriteria in class DCDataControlprotected void executeMethodIterators()
|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-02 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright © 1997, 2005, Oracle. All rights reserved.