public class UpdatableBeanDataControl extends AbstractImpl implements UpdateableDataControl
Modifier and Type | Field and Description |
---|---|
protected oracle.adf.share.logging.ADFLogger |
_logger |
METHOD_CREATE, METHOD_EXECUTE, mName, SORT_CRITERIA
Constructor and Description |
---|
UpdatableBeanDataControl() |
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.String |
getAddMethodName(java.lang.String className,
java.lang.String accessorName) |
java.lang.Object |
getDataProvider()
Returns the data provider for this data control.
|
java.lang.String |
getName()
Returns the name of this Data Control.
|
java.lang.String |
getRemoveMethodName(java.lang.String className,
java.lang.String accessorName) |
boolean |
invokeOperation(java.util.Map bindingContext,
OperationBinding action)
BeanDC invoke method-operations.
|
boolean |
isEagerPersist()
Overridable
JW: If the 'EagerPersist' option is turned on, issue a persistEntity() call on
the new instance.
|
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.
|
void |
resetAccessors()
ADVANCED: Resets all Accessors defined on this data control to their
initial empty state.
|
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 boolean setAttributeValue(AttributeContext ctx, java.lang.Object value)
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 java.lang.Object createRowData(RowContext ctx)
RowContext
, adds it to
the underlying provider Collection, registers it in the given
transaction, and returns the newly created object.createRowData
in interface UpdateableDataControl
ctx
- - description of the Row to createpublic boolean isEagerPersist()
public java.lang.String getAddMethodName(java.lang.String className, java.lang.String accessorName)
className
- accessorName
- public java.lang.String getRemoveMethodName(java.lang.String className, java.lang.String accessorName)
className
- accessorName
- public java.lang.Object registerDataProvider(RowContext ctx)
registerDataProvider
in interface UpdateableDataControl
ctx
- Context of the row to be modified or removed.public boolean removeRowData(RowContext ctx)
removeRowData
in interface UpdateableDataControl
ctx
- Context of the row to be removed.public void validate()
validate
in interface UpdateableDataControl
public java.lang.Object getDataProvider()
getDataProvider
in interface DataControl
public java.lang.String getName()
getName
in interface DataControl
public void resetAccessors()
public boolean invokeOperation(java.util.Map bindingContext, OperationBinding action)
invokeOperation
in interface DataControl
bindingContext
- action
- public void release()
This should close all open DataControl resources.
release
in interface DataControl