|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile 11g Release 2 (11.1.2.3.0) E27204-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataControl
An interface through which the Data Binding Facility interacts with a Service. An implementation of DataControl interface provides generic adaptation for a Service and Model technology. For example, a generic SessionBean DataControl can be written to handle interaction with any EJB session beans.
The DataControl is to be implemented by someone who is familiar with the service whose values and operations will be exposed to the view layer.
The DataControl is to be used exclusively by Tooling and the Data Binding facility to adapt different Services. It is not to be used directly by the View or Controller to access Services and Model.
Method Summary | |
---|---|
java.lang.Object |
createDataProvider(oracle.adfmf.util.XmlAnyDefinition metadataDef) Create a new instance of a provider type associated with this DataControl. |
java.lang.Object |
getDataProvider() Returns the Business Service Object that this DataControl is associated with. |
java.lang.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. |
oracle.adfmf.bindings.iterator.BasicIterator |
getIteratorBinding(java.lang.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 |
java.lang.String |
getName() Returns name to identify this datacontrol inside a BindingContext. |
boolean |
invokeOperation(java.util.Map bindingContext, OperationBinding action) All OperationBindings should first delegate to the DataControl associated with the binding to perform the action. |
void |
release() Releases the DataControl. |
void |
setDataProvider(java.lang.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(java.lang.String name) Sets the name that identifies this datacontrol inside a BindingContext. |
Method Detail |
---|
java.lang.String getName()
void setName(java.lang.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 objectjava.lang.Object 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.java.lang.Object getDataProvider()
void setDataProvider(java.lang.Object dataProvider)
java.lang.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.oracle.adfmf.bindings.iterator.BasicIterator getIteratorBinding(java.lang.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)
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile 11g Release 2 (11.1.2.3.0) E27204-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |