Package org.apache.derby.iapi.sql
Interface Row
-
- All Known Subinterfaces:
ExecIndexRow
,ExecRow
- All Known Implementing Classes:
IndexRow
,IndexValueRow
,ValueRow
public interface Row
The Row interface provides methods to get information about the columns in a result row. It uses simple, position (1-based) access to get to columns. Searching for columns by name should be done from the ResultSet interface, where metadata about the rows and columns is available.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataValueDescriptor
getColumn(int position)
Get a DataValueDescriptor in a Row by ordinal position (1-based).int
nColumns()
void
setColumn(int position, DataValueDescriptor value)
Set a DataValueDescriptor in a Row by ordinal position (1-based).
-
-
-
Method Detail
-
nColumns
int nColumns()
-
getColumn
DataValueDescriptor getColumn(int position) throws StandardException
Get a DataValueDescriptor in a Row by ordinal position (1-based).- Parameters:
position
- The ordinal position of the column.- Returns:
- The DataValueDescriptor, null if no such column exists
- Throws:
StandardException
- Thrown on failure.
-
setColumn
void setColumn(int position, DataValueDescriptor value)
Set a DataValueDescriptor in a Row by ordinal position (1-based).- Parameters:
position
- The ordinal position of the column.
-
-