public class XMLDataControl extends AbstractImpl implements UpdateableDataControl, URLConnectionConstants, DefinitionProviderDataControl
METHOD_CREATE, METHOD_EXECUTE, mName, SORT_CRITERIAACCEPT, 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 |
|---|
XMLDataControl()
constructor
|
| 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()
Return 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 the name of the data control.
|
void |
initialize(AbstractDefinition dcDef)
Initialize the data control to get attributes of data control definition.
|
boolean |
invokeOperation(java.util.Map map,
OperationBinding action)
Invoke a method identified by the given 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()
Deprecated.
|
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, shouldReexecuteOperationpublic void initialize(AbstractDefinition dcDef)
context - node - source node that represents the metadata to connect to
the data sourcepublic Definition getDefinition(java.lang.String name, int type)
DefinitionProviderDataControlgetDefinition in interface DefinitionProviderDataControlpublic boolean invokeOperation(java.util.Map map,
OperationBinding action)
invokeOperation in interface DataControlmap - A Map of bindingContexts that provide access to all binding
related objects.action - Operartion on the datacontrol to be invoked.public java.lang.String getName()
getName in interface DataControl@Deprecated public void release()
release in interface DataControlpublic java.lang.Object getDataProvider()
getDataProvider in interface DataControlpublic boolean setAttributeValue(AttributeContext ctx, java.lang.Object value)
UpdateableDataControlReturn 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 UpdateableDataControlpublic java.lang.Object createRowData(RowContext ctx)
UpdateableDataControlcreateRowData in interface UpdateableDataControlctx - Context of the new row.public java.lang.Object registerDataProvider(RowContext ctx)
UpdateableDataControlregisterDataProvider in interface UpdateableDataControlctx - Context of the row to be modified or removed.public boolean removeRowData(RowContext ctx)
UpdateableDataControlremoveRowData in interface UpdateableDataControlctx - Context of the row to be removed.public void validate()
UpdateableDataControlvalidate in interface UpdateableDataControl