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 |
storage
protected Storage storage
- The storage that defines the OID
OID
public OID(Storage storage)
equals
public abstract boolean equals(Object obj)
- Test if two OIDs are equal.
- Parameters:
obj
- the OID to test
- Returns:
- true if obj equals this OID
hashCode
public abstract int hashCode()
getStorage
public final Storage getStorage()
localId
public abstract String localId()