org.axiondb
Interface Row

All Known Implementing Classes:
BaseRow, LazyRow, RowView

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

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


set

public 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

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


hashCode

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


equals

public 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.


getIdentifier

public int getIdentifier()

setIdentifier

public void setIdentifier(int id)