org.h2.result
Interface SearchRow

All Known Implementing Classes:
Row, SimpleRow, SimpleRowValue

public interface SearchRow

The interface for rows stored in a table, and for partial rows stored in the index.


Method Summary
 int getColumnCount()
          Get the column count.
 long getKey()
          Get the unique key of the row.
 Value getValue(int index)
          Get the value for the column
 int getVersion()
          Get the version of the row.
 void setKey(long key)
          Set the unique key of the row.
 void setKeyAndVersion(SearchRow old)
          Set the position and version to match another row.
 void setValue(int index, Value v)
          Set the value for given column
 

Method Detail

getColumnCount

int getColumnCount()
Get the column count.

Returns:
the column count

getValue

Value getValue(int index)
Get the value for the column

Parameters:
index - the column number (starting with 0)
Returns:
the value

setValue

void setValue(int index,
              Value v)
Set the value for given column

Parameters:
index - the column number (starting with 0)
v - the new value

setKeyAndVersion

void setKeyAndVersion(SearchRow old)
Set the position and version to match another row.

Parameters:
old - the other row.

getVersion

int getVersion()
Get the version of the row.

Returns:
the version

setKey

void setKey(long key)
Set the unique key of the row.

Parameters:
key - the key

getKey

long getKey()
Get the unique key of the row.

Returns:
the key