javax.rad.model
Interface IChangeableDataRow

All Superinterfaces:
Comparable<IDataRow>, IDataRow
All Known Subinterfaces:
IDataBook
All Known Implementing Classes:
ChangeableDataRow, MemDataBook, RemoteDataBook, StorageDataBook

public interface IChangeableDataRow
extends IDataRow

An IChangeableDataRow extends the IDataRow with support for the change state of the row, belonging DataPage and row index and some supporting methods and an unique ID column.

See Also:
IDataRow, IDataPage, IDataBook

Method Summary
 IDataPage getDataPage()
          Returns the correspondingIDataPage of the IDataRow.
 IDataRow getOriginalRow()
          Returns the original row, before the first change is made.
 int getRowIndex()
          Returns the row index of the IDataRows in the IDataPage.
 Object getUID()
          Returns the internal unique identifier for a IChangeableDataRow, which isInserting().
 boolean isDeleting()
          Returns if this row is deleted.
 boolean isDetailChanged()
          Returns true if under this row in the detail DataBook one or more changed (isInserting/Updating/Deleting() == true) detail rows existing.
 boolean isInserting()
          Returns if this row is new.
 boolean isUpdating()
          Returns if this row is changed.
 boolean isWritableColumnChanged()
          Returns true if one isWritableColumnChanged() column is changed.
 
Methods inherited from interface javax.rad.model.IDataRow
addControl, cancelEditingControls, compareTo, createDataRow, createEmptyRow, equals, eventValuesChanged, eventValuesChanged, getControls, getRowDefinition, getValue, getValue, getValueAsString, getValues, getValuesAsString, notifyRepaintControls, removeControl, saveEditingControls, setValue, setValues
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getDataPage

IDataPage getDataPage()
Returns the correspondingIDataPage of the IDataRow. That returns != null only if the IDataRow is from a IDataBook

Returns:
the correspondingIDataPage of the IDataRow.

getRowIndex

int getRowIndex()
Returns the row index of the IDataRows in the IDataPage. That returns != -1 only if the IDataRow is from a IDataPage

Returns:
the row index of the IDataRows in the IDataPage.

getUID

Object getUID()
              throws ModelException
Returns the internal unique identifier for a IChangeableDataRow, which isInserting().

Returns:
the internal unique identifier for a IChangeableDataRow, which isInserting().
Throws:
ModelException - if UID couldn't be determined

isInserting

boolean isInserting()
                    throws ModelException
Returns if this row is new.

Returns:
if this row is new.
Throws:
ModelException - if is inserting couldn't be determined

isUpdating

boolean isUpdating()
                   throws ModelException
Returns if this row is changed.

Returns:
if this row is changed.
Throws:
ModelException - if is updating couldn't determined

isDeleting

boolean isDeleting()
                   throws ModelException
Returns if this row is deleted.

Returns:
if this row is deleted.
Throws:
ModelException - if is deleting couldn't determined

isDetailChanged

boolean isDetailChanged()
                        throws ModelException
Returns true if under this row in the detail DataBook one or more changed (isInserting/Updating/Deleting() == true) detail rows existing.

Returns:
true if under this row in the detail DataBook one or more changed (isInserting/Updating/Deleting() == true) detail rows existing.
Throws:
ModelException - if is detail changed couldn't determined

getOriginalRow

IDataRow getOriginalRow()
                        throws ModelException
Returns the original row, before the first change is made.

Returns:
the original row, before the first change is made.
Throws:
ModelException - if original row couldn't determined

isWritableColumnChanged

boolean isWritableColumnChanged()
                                throws ModelException
Returns true if one isWritableColumnChanged() column is changed.

Returns:
true if one isWritableColumnChanged() column is changed.
Throws:
ModelException - if writable column changed couldn't determined


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.