org.objectweb.jac.aspects.persistence
Class OID

java.lang.Object
  |
  +--org.objectweb.jac.aspects.persistence.OID
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
LongOID, StringOID

public abstract class OID
extends Object
implements Serializable

Abstract class that defines an object identifier. It should be subclassed by Storage implementors. Note that you should also define the hashCode method.

See Also:
Serialized Form

Field Summary
protected  Storage storage
          The storage that defines the OID
 
Constructor Summary
OID(Storage storage)
           
 
Method Summary
abstract  boolean equals(Object obj)
          Test if two OIDs are equal.
 Storage getStorage()
           
abstract  int hashCode()
           
abstract  String localId()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

storage

protected Storage storage
The storage that defines the OID

Constructor Detail

OID

public OID(Storage storage)
Method Detail

equals

public abstract boolean equals(Object obj)
Test if two OIDs are equal.

Overrides:
equals in class Object
Parameters:
obj - the OID to test
Returns:
true if obj equals this OID

hashCode

public abstract int hashCode()
Overrides:
hashCode in class Object

getStorage

public final Storage getStorage()

localId

public abstract String localId()