planetj.database
Class RowKey

java.lang.Object
  extended byplanetj.database.RowKey
All Implemented Interfaces:
java.io.Serializable

public class RowKey
extends java.lang.Object
implements java.io.Serializable

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

See Also:
Serialized Form

Method Summary
 boolean equals(java.lang.Object o)
          Tests if this RowKey is equal to another RowKey.
 java.util.List getKeyFieldNames()
          Gets a list containing the names of the fields whose values comprise this key.
 java.util.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
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

equals

public boolean equals(java.lang.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 java.util.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 java.util.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