public class URLDataControl extends AbstractImpl implements UpdateableDataControl, URLConnectionConstants, DefinitionProviderDataControl
METHOD_CREATE, METHOD_EXECUTE, mName, SORT_CRITERIA
ACCEPT, ALLOW, APPLICATION_ADF_ACTION_JSON_CONTENT_TYPE, APPLICATION_ADF_ACTION_RESULT_JSON, APPLICATION_ADF_BATCH_JSON_CONTENT_TYPE, APPLICATION_ADF_DESCRIBE_JSON, APPLICATION_ADF_JSON_ACCEPT, APPLICATION_ADF_RESOURCE_COLLECTION_JSON, APPLICATION_ADF_RESOURCE_ITEM_JSON, APPLICATION_ADF_RESOURCE_ITEM_JSON_CONTENT_TYPE, APPLICATION_ADF_RESOURCE_JSON, APPLICATION_JSON, APPLICATION_JSON_CONTENT_TYPE, APPLICATION_XML, APPLICATION_XML_CONTENT_TYPE, CONTENT_LENGTH, CONTENT_RESET, CONTENT_TYPE, DELETE, GET, HEAD, LANGUAGE_HEADER, NO_CONTENT_STATUS, OPTIONS, PATCH, POST, PUT, TEXT_APPLICATION_XML, UTF8_ENCODING
Constructor and Description |
---|
URLDataControl() |
Modifier and Type | Method and Description |
---|---|
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.
|
addParameter, createAndAddNewRow, createEmptyDataSet, findContainedDef, getAdapterContext, getDefinition, getDefinitionInternal, getParameterNames, getParameterValue, getSortCriteria, getStructureDef, getStructureDef, processResult, removeCurrentRow, setDefinition, setName, setParameterValue, setStructureDef, shouldReexecuteOperation
public java.lang.Object getDataProvider()
DataControl
getDataProvider
in interface DataControl
public java.lang.String getName()
DataControl
getName
in interface DataControl
public Definition getDefinition(java.lang.String name, int type)
DefinitionProviderDataControl
getDefinition
in interface DefinitionProviderDataControl
public boolean invokeOperation(java.util.Map bindingContext, OperationBinding action)
DataControl
invokeOperation
in interface DataControl
public void release()
DataControl
This should close all open DataControl resources.
release
in interface DataControl
public void initialize(AbstractDefinition dcDef)
dcDef
- represents the data control definition.public java.lang.Object createRowData(RowContext ctx)
UpdateableDataControl
createRowData
in interface UpdateableDataControl
ctx
- Context of the new row.public boolean removeRowData(RowContext ctx)
UpdateableDataControl
removeRowData
in interface UpdateableDataControl
ctx
- Context of the row to be removed.public boolean setAttributeValue(AttributeContext ctx, java.lang.Object value)
UpdateableDataControl
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.
setAttributeValue
in interface UpdateableDataControl
public void validate()
UpdateableDataControl
validate
in interface UpdateableDataControl
public java.lang.Object registerDataProvider(RowContext ctx)
UpdateableDataControl
registerDataProvider
in interface UpdateableDataControl
ctx
- Context of the row to be modified or removed.