public interface DataControl
Modifier and Type | Method and Description |
---|---|
default void |
addSelectionListener(String iteratorId,
oracle.adfmf.bindings.event.SelectedRowKeysSelectionListener listener)
Register a listener to be notified when the selected row keys for an iterator are being set
|
Object |
createDataProvider(oracle.adfmf.util.XmlAnyDefinition metadataDef)
Create a new instance of a provider type associated with this DataControl.
|
int |
getCurrentRowForIterator(String iteratorId) |
Object |
getDataProvider()
Returns the Business Service Object that this DataControl is associated
with.
|
Object |
getDataProvider(oracle.adfmf.util.XmlAnyDefinition metadataDef,
BindingContainer bc)
Get a named data provider within a service object or hierarchy that this
DataControl is associated with.
|
BasicIterator |
getIteratorBinding(Object dataProvider,
oracle.adfmf.util.XmlAnyDefinition metadataDef,
BindingContainer bc)
Returns an iterator binding over the dataProvider object
|
oracle.adfmf.util.XmlAnyDefinition |
getMetadataDefinition()
Get the metadata definition object for this Data Control
|
String |
getName()
Returns name to identify this datacontrol inside a BindingContext.
|
Object[] |
getSelectedRowKeyForIterator(String iteratorId) |
boolean |
invokeOperation(java.util.Map bindingContext,
OperationBinding action)
All OperationBindings should first delegate to the DataControl associated
with the binding to perform the action.
|
boolean |
isSecuredSharedInstance() |
boolean |
isSharedInstance() |
void |
release()
Releases the DataControl.
|
default void |
removeSelectionListener(String iteratorId,
oracle.adfmf.bindings.event.SelectedRowKeysSelectionListener listener)
Remove a listener
|
void |
setCurrentRowForIterator(String iteratorId,
int rowIndex) |
void |
setDataProvider(Object dataProvider)
Sets the Business Service Object that this DataControl is associated with.
|
void |
setMetadataDefinition(oracle.adfmf.util.XmlAnyDefinition def)
Set the metadata definition object for this Data Control
|
void |
setName(String name)
Sets the name that identifies this datacontrol inside a BindingContext.
|
void |
setSecuredSharedInstance(boolean isSecuredSharedInstance) |
void |
setSelectedRowKeyForIterator(String iteratorId,
Object[] keys)
Preserves selected row (one per iterator) in the data control so it can be restored
after navigation.
|
void |
setSharedInstance(boolean isSharedInstance) |
String getName()
void setName(String name)
void release()
This should close all open DataControl resources.
oracle.adfmf.util.XmlAnyDefinition getMetadataDefinition()
void setMetadataDefinition(oracle.adfmf.util.XmlAnyDefinition def)
def
- The metadata definition object for this binding objectObject createDataProvider(oracle.adfmf.util.XmlAnyDefinition metadataDef)
metadataDef
- A metadata definition object that includes information about the type create
(i.e. a child type associated with an accessorIterator definition).
If null, creates a new instance of the root provider type.Object getDataProvider()
void setDataProvider(Object dataProvider)
Object getDataProvider(oracle.adfmf.util.XmlAnyDefinition metadataDef, BindingContainer bc)
metadataDef
- The metadata representation of the iterator binding to the data
provider object in the functional service object or object
hierarchy.bc
- The BindingContainer from which the iterator binding instance for
the masterIterator Id can be retrieved.BasicIterator getIteratorBinding(Object dataProvider, oracle.adfmf.util.XmlAnyDefinition metadataDef, BindingContainer bc)
dataProvider
- The data provider object in the functional service object or
object hierarchy to wrap with a GenericIteratorBinding interfacemetadataDef
- The metadata representation of the iterator binding to returnbc
- The BindingContainer from which the iterator binding instance for
iteratorId is (or will be) contained.boolean invokeOperation(java.util.Map bindingContext, OperationBinding action)
void setCurrentRowForIterator(String iteratorId, int rowIndex)
int getCurrentRowForIterator(String iteratorId)
void setSelectedRowKeyForIterator(String iteratorId, Object[] keys)
iteratorId
- the id of the iterator that was selectedkeys
- an array containing a selected keyObject[] getSelectedRowKeyForIterator(String iteratorId)
iteratorId
- the id of the iterator for the selected rowboolean isSharedInstance()
void setSharedInstance(boolean isSharedInstance)
isSharedInstance
- boolean isSecuredSharedInstance()
void setSecuredSharedInstance(boolean isSecuredSharedInstance)
isSecuredSharedInstance
- default void addSelectionListener(String iteratorId, oracle.adfmf.bindings.event.SelectedRowKeysSelectionListener listener)
iteratorId
- the ID of the iterator for which the keys are being changedlistener
- the listener to be notifieddefault void removeSelectionListener(String iteratorId, oracle.adfmf.bindings.event.SelectedRowKeysSelectionListener listener)
iteratorId
- the iterator ID to stop listener for changeslistener
- the listener