Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.0.0)

E10653-01

oracle.adfinternal.model.adapter.bean
Class DefaultUpdateableBeanDataControl

java.lang.Object
  extended by oracle.adf.model.adapter.AbstractImpl
      extended by oracle.adf.model.adapter.bean.UpdatableBeanDataControl
          extended by oracle.adfinternal.model.adapter.bean.DefaultUpdateableBeanDataControl
All Implemented Interfaces:
DataControl, UpdateableDataControl
Direct Known Subclasses:
TopLinkDataControl

public class DefaultUpdateableBeanDataControl
extends UpdatableBeanDataControl

Purpose: Data control for Updateable JavaBeans

Description: This data control provides default implemenations


Field Summary
 
Fields inherited from class oracle.adf.model.adapter.AbstractImpl
METHOD_CREATE, METHOD_EXECUTE, mName, SORT_CRITERIA
 
Constructor Summary
DefaultUpdateableBeanDataControl()
           
 
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 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.bean.UpdatableBeanDataControl
getDataProvider, getName, invokeOperation, resetAccessors
 
Methods inherited from class oracle.adf.model.adapter.AbstractImpl
addParameter, createAndAddNewRow, createEmptyDataSet, getAdapterContext, getDefinition, getParameterNames, getParameterValue, getSortCriteria, getStructureDef, getStructureDef, processResult, 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

DefaultUpdateableBeanDataControl

public DefaultUpdateableBeanDataControl()
Method Detail

setAttributeValue

public 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. 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
Overrides:
setAttributeValue in class UpdatableBeanDataControl

createRowData

public 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.

Specified by:
createRowData in interface UpdateableDataControl
Overrides:
createRowData in class UpdatableBeanDataControl
Parameters:
ctx - Context of the new row.
Returns:
A data object for the new row.

registerDataProvider

public 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.

Specified by:
registerDataProvider in interface UpdateableDataControl
Overrides:
registerDataProvider in class UpdatableBeanDataControl
Parameters:
ctx - Context of the row to be modified or removed.
Returns:
The data object that the row represents.

removeRowData

public boolean removeRowData(RowContext ctx)
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
Overrides:
removeRowData in class UpdatableBeanDataControl
Parameters:
ctx - Context of the row to be removed.
Returns:
true if the operation is sucessful, false otherwise.

validate

public void validate()
Validates transaction if dirty.

Specified by:
validate in interface UpdateableDataControl
Overrides:
validate in class UpdatableBeanDataControl

release

public void release()
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
Overrides:
release in class UpdatableBeanDataControl

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.0.0)

E10653-01

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