planetj.database
Class RowKey

java.lang.Object
  |
  +--planetj.database.RowKey

public class RowKey
extends Object

An object which uniquely identifies a row within a table. No two rows in the same table should have the same key. Two rows in different table may have the same key


Method Summary
 boolean equals(Object o)
          Tests if this RowKey is equal to another RowKey.
 List getKeyFieldNames()
          Gets a list containing the names of the fields whose values comprise this key.
 List getKeyFields()
          Gets a list containing the fields whose values comprise this key
 Row getRow()
          Gets the row whose key this object represents
 int hashCode()
          Gets the hashCode for this row key
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

equals

public boolean equals(Object o)
Tests if this RowKey is equal to another RowKey. (Rows in different tables can have equals keys). If two RowKeys are equal, it can mean one of two things

getKeyFieldNames

public final List getKeyFieldNames()
Gets a list containing the names of the fields whose values comprise this key. This list is ALWAYS derived from whatever is in the current List of KeyFields.


getKeyFields

public final List getKeyFields()
Gets a list containing the fields whose values comprise this key


getRow

public final Row getRow()
Gets the row whose key this object represents


hashCode

public int hashCode()
Gets the hashCode for this row key

Overrides:
hashCode in class Object