public interface

Row

implements ColumnType
com.neomades.database.Row
Known Indirect Subclasses

Class Overview

Represents a row (line) of a Cursor.

See Also

Summary

[Expand]
Inherited Constants
From interface com.neomades.database.ColumnType
Public Methods
abstract byte[] getBlob(int columnIndex)
Returns the value of the requested column as a byte array.
abstract int getColumnCount()
Returns total number of columns
abstract int getColumnIndex(String columnName)
Returns the zero-based index for the given column name, or -1 if the column doesn't exist.
abstract String getColumnName(int columnIndex)
Returns the column name at the given zero-based column index.
abstract String[] getColumnNames()
Returns a string array holding the names of all of the columns in the result set in the order in which they were listed in the result.
abstract double getDouble(int columnIndex)
Returns the value of the requested column as a double.
abstract float getFloat(int columnIndex)
Returns the value of the requested column as a float.
abstract int getInt(int columnIndex)
Returns the value of the requested column as an integer.
abstract long getLong(int columnIndex)
Returns the value of the requested column as a long.
abstract int getPosition()
Returns the position of the current row in the row set.
abstract short getShort(int columnIndex)
Returns the value of the requested column as a short.
abstract String getString(int columnIndex)
Returns the value of the requested column as a String.
abstract int getType(int columnIndex)
Returns data type of the given column's value.
abstract boolean isNull(int columnIndex)
Returns true if the value in the indicated column is null.

Public Methods

public abstract byte[] getBlob (int columnIndex)

Returns the value of the requested column as a byte array.

Parameters
columnIndex the zero-based index of the target column
Returns
  • the value of that column as a byte array

public abstract int getColumnCount ()

Returns total number of columns

Returns
  • number of columns

public abstract int getColumnIndex (String columnName)

Returns the zero-based index for the given column name, or -1 if the column doesn't exist.

Parameters
columnName the name of the target column
Returns
  • the zero-based column index for the given column name, or -1 if the column name does not exist.

public abstract String getColumnName (int columnIndex)

Returns the column name at the given zero-based column index.

Parameters
columnIndex the zero-based index of the target column
Returns
  • the column name for the given column index

public abstract String[] getColumnNames ()

Returns a string array holding the names of all of the columns in the result set in the order in which they were listed in the result.

Returns
  • the names of the columns returned in this query.

public abstract double getDouble (int columnIndex)

Returns the value of the requested column as a double.

Parameters
columnIndex the zero-based index of the target column
Returns
  • the value of that column as a double

public abstract float getFloat (int columnIndex)

Returns the value of the requested column as a float.

Parameters
columnIndex the zero-based index of the target column
Returns
  • the value of that column as a float

public abstract int getInt (int columnIndex)

Returns the value of the requested column as an integer.

Parameters
columnIndex the zero-based index of the target column
Returns
  • the value of that column as an integer

public abstract long getLong (int columnIndex)

Returns the value of the requested column as a long.

Parameters
columnIndex the zero-based index of the target column
Returns
  • the value of that column as a long

public abstract int getPosition ()

Returns the position of the current row in the row set. The value is zero-based. When the row set is first returned the position will be at -1, which is before the first row.

Returns
  • the current cursor position

public abstract short getShort (int columnIndex)

Returns the value of the requested column as a short.

Parameters
columnIndex the zero-based index of the target column
Returns
  • the value of that column as a short

public abstract String getString (int columnIndex)

Returns the value of the requested column as a String.

Parameters
columnIndex the zero-based index of the target column
Returns
  • the value of that column as a string

public abstract int getType (int columnIndex)

Returns data type of the given column's value. The preferred type of the column is returned but the data may be converted to other types as documented in the get-type methods such as getInt(int), getFloat(int) etc.

Returned column types are

Parameters
columnIndex the zero-based index of the target column
Returns
  • column value type

public abstract boolean isNull (int columnIndex)

Returns true if the value in the indicated column is null.

Parameters
columnIndex the zero-based index of the target column.
Returns
  • whether the column value is null.