javax.rad.model
Interface IChangeableDataRow

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

public interface IChangeableDataRow
extends IDataRow

The IChangeableDataRow is an IDataRow extension which adds support for monitoring the state of the IDataRow (whether it is currently changing or not, and what changes are occurring).

See Also:
IDataRow, IDataPage, IDataBook

Method Summary
 IDataPage getDataPage()
          Gets the parent IDataPage.
 IDataRow getOriginalDataRow()
          Gets the original IDataRow, before any changes were performed.
 IDataRow getOriginalRow()
          Deprecated. since 2.5, use getOriginalDataRow().
 int getRowIndex()
          Gets the row index within the parent IDataPage.
 java.lang.Object getUID()
          Gets the internal unique identifier for this IDataRow.
 boolean isDeleting()
          Gets if this row is currently being deleted, which means that it has been removed/deleted but this action has not yet been finalized.
 boolean isDetailChanged()
          Gets if any associated detail rows have been modified.
 boolean isInserting()
          Gets if this row is currently being inserted, which means that it has been created but has not yet been saved/finalized.
 boolean isUpdating()
          Gets if this row is currently being updated, which means that its values are changed but these changes have not yet been saved/finalized.
 boolean isWritableColumnChanged()
          Gets if there was a writeable column changed.
 
Methods inherited from interface javax.rad.model.IDataRow
addControl, cancelEditingControls, compareTo, createDataRow, createEmptyDataRow, 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()
Gets the parent IDataPage.

Returns:
the the parent IDataPage, can null if there is no parent IDataPage.

getRowIndex

int getRowIndex()
Gets the row index within the parent IDataPage.

Returns:
the row index inside the parent IDataPage, can be -1 if there is no parent IDataPage.

getUID

java.lang.Object getUID()
                        throws ModelException
Gets the internal unique identifier for this IDataRow.

Returns:
the internal unique identifier for this IDataRow.
Throws:
ModelException - if the unique identifier could not be determined.

isInserting

boolean isInserting()
                    throws ModelException
Gets if this row is currently being inserted, which means that it has been created but has not yet been saved/finalized.

Returns:
true if this row is currently being inserted.
Throws:
ModelException - if the state could not be determined.

isUpdating

boolean isUpdating()
                   throws ModelException
Gets if this row is currently being updated, which means that its values are changed but these changes have not yet been saved/finalized.

Returns:
true if this row is currently being changed.
Throws:
ModelException - if the state could not be determined.

isDeleting

boolean isDeleting()
                   throws ModelException
Gets if this row is currently being deleted, which means that it has been removed/deleted but this action has not yet been finalized.

Returns:
if this row is currently being deleted.
Throws:
ModelException - if the state could not be determined.

isDetailChanged

boolean isDetailChanged()
                        throws ModelException
Gets if any associated detail rows have been modified. A modified row has either been updated, deleted or was inserted.

Returns:
true if any associated detail rows have been modified.
Throws:
ModelException - if the state of the detail rows could not be determined.

getOriginalRow

@Deprecated
IDataRow getOriginalRow()
                        throws ModelException
Deprecated. since 2.5, use getOriginalDataRow().

Gets the original IDataRow, before any changes were performed.

Returns:
the original IDataRow, before any changes were performed.
Throws:
ModelException - if the original IDataRow could not be got.

getOriginalDataRow

IDataRow getOriginalDataRow()
                            throws ModelException
Gets the original IDataRow, before any changes were performed.

Returns:
the original IDataRow, before any changes were performed.
Throws:
ModelException - if the original IDataRow could not be got.

isWritableColumnChanged

boolean isWritableColumnChanged()
                                throws ModelException
Gets if there was a writeable column changed. A writeable column is a column which can be written to/saved.

Returns:
true if there was a writeable column changed.
Throws:
ModelException - if the state could not be determined.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.