org.axiondb.engine.rows
Class BaseRow

java.lang.Object
  extended by org.axiondb.engine.rows.BaseRow
All Implemented Interfaces:
Row
Direct Known Subclasses:
JoinedRow, LazyRow, RowView, SimpleRow

public abstract class BaseRow
extends Object
implements Row

An abstract base implementation of Row, providing equals, hashCode and toString implementations.

Version:
$Revision: 1.2 $ $Date: 2004/09/09 23:47:43 $

Constructor Summary
BaseRow()
           
 
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.
 int getIdentifier()
           
 int hashCode()
          Return a hash code for me, in keeping with the generic Object.hashCode() contract.
 void setIdentifier(int id)
           
 String toString()
          Returns a simple String representation of me, perhaps suitable for debugging purposes.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.axiondb.Row
get, set, size
 

Constructor Detail

BaseRow

public BaseRow()
Method Detail

hashCode

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

Specified by:
hashCode in interface Row
Overrides:
hashCode in class Object

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.

Specified by:
equals in interface Row
Overrides:
equals in class Object

toString

public String toString()
Returns a simple String representation of me, perhaps suitable for debugging purposes.

Overrides:
toString in class Object

getIdentifier

public int getIdentifier()
Specified by:
getIdentifier in interface Row

setIdentifier

public void setIdentifier(int id)
Specified by:
setIdentifier in interface Row