Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.3.0)

E17483-04


oracle.adfinternal.model.adapter.url
Class URLDataControl

java.lang.Object
  extended by oracle.adf.model.adapter.AbstractImpl
      extended by oracle.adfinternal.model.adapter.url.URLDataControl

All Implemented Interfaces:
URLConnectionConstants, DataControl, DefinitionProviderDataControl, UpdateableDataControl

public class URLDataControl
extends AbstractImpl
implements UpdateableDataControl, URLConnectionConstants, DefinitionProviderDataControl

Field Summary

 

Fields inherited from class oracle.adf.model.adapter.AbstractImpl
METHOD_CREATE, METHOD_EXECUTE, mName, SORT_CRITERIA

 

Fields inherited from interface oracle.adfinternal.model.adapter.url.URLConnectionConstants
ACCEPT, ALLOW, APPLICATION_XML, CONTENT_LENGTH, CONTENT_TYPE, DELETE, GET, POST, PUT, TEXT_APPLICATION_XML

 

Constructor Summary
URLDataControl()
           

 

Method Summary
 java.lang.Object createRowData(RowContext ctx)
          This method is called by the data binding framework when a new row is needed from the data control.
 java.lang.Object getDataProvider()
          Returns the Business Service Object that this datacontrol is associated with.
 Definition getDefinition(java.lang.String name, int type)
          Returns a definition of the specified type.
 java.lang.String getName()
          Returns name to identify this datacontrol inside a BindingContext.
 void initialize(AbstractDefinition dcDef)
          Initialize the data control to get attributes of data control definition.
 boolean invokeOperation(java.util.Map bindingContext, OperationBinding action)
          All OperationBindings should first delegate to the DataControl associated with the binding to perform the action.
 java.lang.Object registerDataProvider(RowContext ctx)
          This method is called by the data binding facility before the row in the RowContext object is modified or marked as removed, so the row can be marked dirty by the data control.
 void release()
          Releases the DataControl.
 boolean removeRowData(RowContext ctx)
          This method is called by the data binding facility when a row should be removed from the underlying data source.
 boolean setAttributeValue(AttributeContext ctx, java.lang.Object value)
          This method is called by the data binding framework when a new value is to be set on an attribute in a bean.
 void validate()
          Validates transaction if dirty.

 

Methods inherited from class oracle.adf.model.adapter.AbstractImpl
addParameter, createAndAddNewRow, createEmptyDataSet, getAdapterContext, getDefinition, getParameterNames, getParameterValue, getSortCriteria, getStructureDef, getStructureDef, processResult, removeCurrentRow, setDefinition, setName, setParameterValue, setStructureDef, shouldReexecuteOperation

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

URLDataControl

public URLDataControl()

Method Detail

getDataProvider

public java.lang.Object getDataProvider()
Description copied from interface: DataControl
Returns the Business Service Object that this datacontrol is associated with.
Specified by:
getDataProvider in interface DataControl
Returns:
The underlying business service object.

getDefinition

public Definition getDefinition(java.lang.String name,
                                int type)
Description copied from interface: DefinitionProviderDataControl
Returns a definition of the specified type.
Specified by:
getDefinition in interface DefinitionProviderDataControl

getName

public java.lang.String getName()
Description copied from interface: DataControl
Returns name to identify this datacontrol inside a BindingContext.
Specified by:
getName in interface DataControl

invokeOperation

public boolean invokeOperation(java.util.Map bindingContext,
                               OperationBinding action)
Description copied from interface: DataControl
All OperationBindings should first delegate to the DataControl associated with the binding to perform the action. DataControls may choose to interpret a given action differently based on the data/collection that action is bound to.
Specified by:
invokeOperation in interface DataControl
Returns:
true if this datacontrol has handled this action, false if the action should be interpreted in the bindings framework or in the caller.

release

public void release()
Description copied from interface: DataControl
Releases the DataControl. The DataControl should be in a collectable state after release() has been invokd.

This should close all open DataControl resources.

Specified by:
release in interface DataControl

initialize

public void initialize(AbstractDefinition dcDef)
Initialize the data control to get attributes of data control definition.
Parameters:
dcDef - represents the data control definition.

createRowData

public java.lang.Object createRowData(RowContext ctx)
Description copied from interface: UpdateableDataControl
This method is called by the data binding framework when a new row is needed from the data control.
Specified by:
createRowData in interface UpdateableDataControl
Parameters:
ctx - Context of the new row.
Returns:
A data object for the new row.

removeRowData

public boolean removeRowData(RowContext ctx)
Description copied from interface: UpdateableDataControl
This method is called by the data binding facility when a row should be removed from the underlying data source.
Specified by:
removeRowData in interface UpdateableDataControl
Parameters:
ctx - Context of the row to be removed.
Returns:
true if the operation is sucessful, false otherwise.

setAttributeValue

public boolean setAttributeValue(AttributeContext ctx,
                                 java.lang.Object value)
Description copied from interface: UpdateableDataControl
This method is called by the data binding framework when a new value is to be set on an attribute in a bean. The attribute and bean are provided in the attribute context along with other framework context information.

Return true if the base framework should skip any further processing of this attribute set. Otherwise return false so that framework can perform a set or put of the attribute value based on introspection.

Specified by:
setAttributeValue in interface UpdateableDataControl

validate

public void validate()
Description copied from interface: UpdateableDataControl
Validates transaction if dirty.
Specified by:
validate in interface UpdateableDataControl

registerDataProvider

public java.lang.Object registerDataProvider(RowContext ctx)
Description copied from interface: UpdateableDataControl
This method is called by the data binding facility before the row in the RowContext object is modified or marked as removed, so the row can be marked dirty by the data control.
Specified by:
registerDataProvider in interface UpdateableDataControl
Parameters:
ctx - Context of the row to be modified or removed.
Returns:
The data object that the row represents.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.3.0)

E17483-04


Copyright © 1997, 2012, Oracle. All rights reserved.