|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.model.mem.DataRow
com.sibvisions.rad.model.mem.ChangeableDataRow
public class ChangeableDataRow
An IChangeableDataRow extends the IDataRow with support for
the change state of the row, some supporting methods and an unique ID column.
IDataRow,
IDataPage,
IDataBook,
Serialized Form| Field Summary | |
|---|---|
protected static Integer |
DELETING
Internal state for DELETING. |
protected static Integer |
INSERTING
Internal state for INSERTING. |
protected static int |
INTERNAL_OFFSET
Internal Offset in the AbstractStorage Array for the Inserting, etc.. states. |
protected static Integer |
UPDATING
Internal state for UPDATING. |
| Fields inherited from class com.sibvisions.rad.model.mem.DataRow |
|---|
oaStorage, rdRowDefinition |
| Constructor Summary | |
|---|---|
protected |
ChangeableDataRow()
Internal default constructor for the MemDataBook. |
|
ChangeableDataRow(IRowDefinition pRowDefinition)
Constructs a DataRow with a given IRowDefinition. |
protected |
ChangeableDataRow(IRowDefinition pRowDefinition,
Object[] pData,
IDataPage pDataPage,
int pRowIndex)
Constructs a DataRow with a given IRowDefinition
and initialize it a copy of the Object[]<> data. |
| Method Summary | |
|---|---|
IDataPage |
getDataPage()
Returns the corresponding IDataPage 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. |
String |
toString()
|
| Methods inherited from class com.sibvisions.rad.model.mem.DataRow |
|---|
addControl, compareTo, compareTo, createDataRow, createEmptyRow, equals, equals, eventValuesChanged, getControls, getRowDefinition, getValue, getValue, getValueAsString, getValues, getValuesAsString, hashCode, invokeCancelEditingControl, invokeRepaintListeners, invokeSaveEditingControl, removeControl, setValue, setValueDRInternal, setValues |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.rad.model.IDataRow |
|---|
addControl, compareTo, createDataRow, createEmptyRow, equals, eventValuesChanged, getControls, getRowDefinition, getValue, getValue, getValueAsString, getValues, getValuesAsString, removeControl, setValue, setValues |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Field Detail |
|---|
protected static final int INTERNAL_OFFSET
protected static final Integer INSERTING
protected static final Integer UPDATING
protected static final Integer DELETING
| Constructor Detail |
|---|
protected ChangeableDataRow()
public ChangeableDataRow(IRowDefinition pRowDefinition)
throws ModelException
DataRow with a given IRowDefinition.
pRowDefinition - the IRowDefinition
ModelException - if the IRowDefintion is null or empty
protected ChangeableDataRow(IRowDefinition pRowDefinition,
Object[] pData,
IDataPage pDataPage,
int pRowIndex)
throws ModelException
DataRow with a given IRowDefinition
and initialize it a copy of the Object[]<> data.
pRowDefinition - the IRowDefinitionpData - the Object[]<> with data of the DataRow.pDataPage - the correspondingIDataPage of the IDataRow in the IDataBookpRowIndex - the row index of the IDataRow in the IDataBook
ModelException - if the RowDefinition is empty.| Method Detail |
|---|
public IDataPage getDataPage()
IDataPage of the IDataRow.
That returns != null only if the IDataRow is from a IDataBook
getDataPage in interface IChangeableDataRowIDataPage of the IDataRow.public int getRowIndex()
IDataRows in the IDataPage.
That returns != -1 only if the IDataRow is from a IDataPage
getRowIndex in interface IChangeableDataRowIDataRows in the IDataPage.public Object getUID()
IChangeableDataRow, which
isInserting().
getUID in interface IChangeableDataRowIChangeableDataRow, which
isInserting().
public boolean isInserting()
throws ModelException
isInserting in interface IChangeableDataRowModelException - if a exception occurs during synchronize.
public boolean isUpdating()
throws ModelException
isUpdating in interface IChangeableDataRowModelException - if a exception occurs during synchronize.
public boolean isDeleting()
throws ModelException
isDeleting in interface IChangeableDataRowModelException - if a exception occurs during synchronize.
public boolean isDetailChanged()
throws ModelException
isDetailChanged in interface IChangeableDataRowModelException - if a exception occurs during synchronize.
public IDataRow getOriginalRow()
throws ModelException
getOriginalRow in interface IChangeableDataRowModelException - if the original row couldn't determinedpublic String toString()
toString in class DataRow
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||