uk.ac.ic.doc.automed.util.persist
Class PersistentKey

java.lang.Object
  extended by uk.ac.ic.doc.automed.util.persist.PersistentKey
All Implemented Interfaces:
java.io.Serializable

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

PersistentKey.java

Encapsulates a key to be persisted

Author:
Duc M Le dmle@doc.ic.ac.uk
Created on August 2, 2006
Department of Computing, Imperial College
See Also:
Serialized Form

Constructor Summary
PersistentKey(java.lang.String id)
          Creates a new instance of PersistentKey
 
Method Summary
 boolean equals(java.lang.Object anotherKey)
           
 com.sleepycat.je.DatabaseEntry getKeyObject()
          Return the actual database entry object of the key
 java.lang.String toString()
          Output the key's id
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PersistentKey

public PersistentKey(java.lang.String id)
Creates a new instance of PersistentKey

Method Detail

getKeyObject

public com.sleepycat.je.DatabaseEntry getKeyObject()
Return the actual database entry object of the key


toString

public java.lang.String toString()
Output the key's id

Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object anotherKey)
Overrides:
equals in class java.lang.Object