public interface IDataRow
DataRow
represents a row in a DataTable
Modifier and Type | Method and Description |
---|---|
int |
getColumnIndex(java.lang.String columnName)
Returns the internal index for a column
This method is only provided for performance reasons.
|
IDataTable |
getDataTable() |
IDataTableSchema |
getSchema()
Returns the schema of the table of this row.
|
<T> T |
getValue(IContext context,
IDataColumnSchema dataColumnSchema)
Returns the value of the column with the index of the specified schema in this row.
|
<T> T |
getValue(IContext context,
int columnIndex)
Returns the value of the column with the specified index in this row.
|
<T> T |
getValue(IContext context,
java.lang.String columnName)
Returns the value of the column with the specified name in this row.
|
boolean |
hasColumn(java.lang.String columnName)
Returns whether the column name is defined in the schema or not.
|
boolean |
hasReadAccess(int columnIndex)
Returns whether the user which has retrieved the data, has read access to the given column.
|
boolean |
hasWriteAccess(int columnIndex)
Returns whether the user which has retrieved the data, has write access to the given column.
|
<T> T getValue(IContext context, java.lang.String columnName)
context
- the context.columnName
- name of the column from which the value must be returned.java.lang.IllegalArgumentException
- when the columnName does not exist in this Row.<T> T getValue(IContext context, int columnIndex)
context
- the context.columnIndex
- index of the column from which the value must be returned.java.lang.IndexOutOfBoundsException
- when the index exceeds the count of columns of this row.<T> T getValue(IContext context, IDataColumnSchema dataColumnSchema)
getValue(dataColumnSchema.getIndex())
.
The returned value can be a primitive object or another DataTable
object.
When in the original request simply attributes of metaobjects were requested, the returned
values will be of the primitive Java type corresponding to the type of the attribute.
When aggregate functions are combined with simple attributes, this will also be the case.
However, when more complex OQL expressions are used, it isn't always predictable
which type the returned values will have. It depends on the expression type
and the database type.
context
- the contextdataColumnSchema
- schema of the column from which the value must be returnedboolean hasColumn(java.lang.String columnName)
columnName
- int getColumnIndex(java.lang.String columnName)
columnName
- IDataTableSchema getSchema()
boolean hasReadAccess(int columnIndex)
columnIndex
- the column to retrieve the access information.boolean hasWriteAccess(int columnIndex)
columnIndex
- the column to retrieve the access information.IDataTable getDataTable()