|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDataRow
An IDataRow
is a list of columns.
The IDataRow
is also storage independent row.
IRowDefinition
,
IDataBook
,
IDataPage
Method Summary | |
---|---|
void |
addControl(IControl pControl)
Adds a IControl to the IDataRow . |
int |
compareTo(IDataRow pDataRow,
SortDefinition pSortDefinition)
It compares the drDataRow with this IDataRow and it uses the columns and
order information (asc, desc) in the SortDefintion. |
IDataRow |
createDataRow(String[] pColumnNames)
Returns a cloned IDataRow with only a subset of specified
column names. |
IDataRow |
createEmptyRow(String[] pColumnNames)
Returns a new empty IDataRow with only a subset of column's,
specified by a String[] of column names. |
boolean |
equals(IDataRow pDataRow,
String[] pColumnNames)
Compares the drDataRow with this IDataRow , but it only compares the
specified columns. |
DataRowHandler |
eventValuesChanged()
Gets the EventHandler for values changed event. |
IControl[] |
getControls()
Returns all IControl 's from the IDataRow . |
IRowDefinition |
getRowDefinition()
Returns the IRowDefinition of the IDataRow . |
Object |
getValue(int pColumnIndex)
Returns the value of the column by index. |
Object |
getValue(String pColumnName)
Returns the value of the named column. |
String |
getValueAsString(String pColumnName)
Returns the value of the named column as String . |
Object[] |
getValues(String[] pColumnNames)
Returns a Object[] of values from the specified columns in this IDataRow . |
String[] |
getValuesAsString(String[] pColumnNames)
Returns the values of the named columns as String[] . |
void |
removeControl(IControl pControl)
Removes the IControl from the IDataRow . |
void |
setValue(String pColumnName,
Object pValue)
Sets the value of the named column in this IDataRow . |
void |
setValues(String[] pColumnNames,
Object[] pValues)
Sets the column's values from the pValues Object[]
to the this IDataRow . |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
IRowDefinition getRowDefinition()
IRowDefinition
of the IDataRow
.
IRowDefinition
of the IDataRow
.Object getValue(int pColumnIndex) throws ModelException
pColumnIndex
- the column index
ModelException
- if the column index is not in this IDataRow
Object getValue(String pColumnName) throws ModelException
pColumnName
- the name of the column
ModelException
- if the ColumnDefinition
name is not in this IDataRow
String getValueAsString(String pColumnName) throws ModelException
String
.
pColumnName
- the name of the column
String
.
ModelException
- if the ColumnDefinition
name is not in this IDataRow
void setValue(String pColumnName, Object pValue) throws ModelException
IDataRow
.
pColumnName
- the column namepValue
- the new value for the column in this IDataRow
ModelException
- if the ColumnDefinition
name is not in this IDataRow
or the pValue is not convertible/too large to/for the IDataType
of the columnObject[] getValues(String[] pColumnNames) throws ModelException
IDataRow
.
pColumnNames
- a String[] of column names
IDataRow
ModelException
- if the ColumnDefinition
name is not in this IDataRow
String[] getValuesAsString(String[] pColumnNames) throws ModelException
String[]
.
pColumnNames
- the names of the columns
String[]
.
ModelException
- if one the ColumnDefinition
name is not in this IDataRow
void setValues(String[] pColumnNames, Object[] pValues) throws ModelException
Object[]
to the this IDataRow
.String[]
.
pColumnNames
- a String[] of column namespValues
- a Object[] of values to set in the corresponding columns of the IDataRow
ModelException
- if the ColumnDefinition
name is not in this IDataRow
or the pValue is not convertible/too large to/for the DataType
of the columnint compareTo(IDataRow pDataRow, SortDefinition pSortDefinition)
IDataRow
and it uses the columns and
order information (asc, desc) in the SortDefintion. It reacts like a normal compareTo with
specific columns, but if in the SortDefinition the order is descending for a columns it
multiplies the result with -1. -> invert the result.
pDataRow
- the DataRow
to compare with this IDataRow
pSortDefinition
- the SortDefinition to us in the compare
IDataRow
is less than, equal to, or greater than the specified DataRow
.boolean equals(IDataRow pDataRow, String[] pColumnNames)
IDataRow
, but it only compares the
specified columns.
pDataRow
- the DataRow
to compare with this IDataRow
pColumnNames
- a String[] of column names to compare
IDataRow createDataRow(String[] pColumnNames) throws ModelException
IDataRow
with only a subset of specified
column names.
pColumnNames
- a String[] of column names
IDataRow
with only a subset of specified
column names.
ModelException
- if the IDataRow
couldn't constructedIDataRow createEmptyRow(String[] pColumnNames) throws ModelException
IDataRow
with only a subset of column's,
specified by a String[] of column names.
pColumnNames
- a String[] of column names
ModelException
- if the IDataRow
couldn't constructedvoid addControl(IControl pControl)
IControl
to the IDataRow
.IDataRow
has changed, restored or stored.
pControl
- the IControl
IControl
void removeControl(IControl pControl)
IControl
from the IDataRow
.
pControl
- the IControl
IControl
IControl[] getControls()
IControl
's from the IDataRow
.
IControl
's from the IDataRow
.DataRowHandler eventValuesChanged()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |