org.axiondb
Interface Row

All Known Implementing Classes:
BaseRow, JoinedRow, LazyRow, RowView, SimpleRow

public interface Row

Contains the data for a single row in a table, view, result set, etc.

Version:
$Revision: 1.15 $ $Date: 2004/08/27 03:21:21 $

Method Summary
 boolean equals(Object that)
          Returns true iff that is a Row with the same number of fields and each is equal to the corresponding field in me.
 Object get(int i)
          Returns the value of the field at i (zero indexed).
 int getIdentifier()
           
 int hashCode()
          Return a hash code for me, in keeping with the generic Object.hashCode() contract.
 void set(int i, Object val)
          Sets the value of the field at i (zero indexed).
 void setIdentifier(int id)
           
 int size()
          Returns the number of fields in me.
 

Method Detail

get

Object get(int i)
Returns the value of the field at i (zero indexed).


set

void set(int i,
         Object val)
         throws UnsupportedOperationException
Sets the value of the field at i (zero indexed). This operation is optional.

Throws:
UnsupportedOperationException

size

int size()
Returns the number of fields in me.


hashCode

int hashCode()
Return a hash code for me, in keeping with the generic Object.hashCode() contract.

Overrides:
hashCode in class Object

equals

boolean equals(Object that)
Returns true iff that is a Row with the same number of fields and each is equal to the corresponding field in me.

Adheres to the generic Object.equals(java.lang.Object)contract.

Overrides:
equals in class Object

getIdentifier

int getIdentifier()

setIdentifier

void setIdentifier(int id)