|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.impl.fostore.OID
org.apache.jdo.impl.fostore.AID
public class AID
Represents the identity of a JDO object in the File/Object store. This implementation uses application identity. The identity is based on the class of the object and a byte[] buffer that represents values in the user object Id instance which creates a unique identifier within that class. These ID's are unique only within a single datastore.
Field Summary |
---|
Fields inherited from class org.apache.jdo.impl.fostore.OID |
---|
oid |
Constructor Summary | |
---|---|
AID()
Default constructor. |
|
AID(long oid)
Creates an AID with the given value. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
Determines if this AID is equal to another. |
int |
hashCode()
Provides a unique hashCode for this AID. |
java.lang.String |
oidString()
Returns the id itself in String form, for debugging. |
void |
readObject(java.io.ObjectInputStream in)
Reads this AID's value from the input stream. |
java.lang.String |
toString()
Returns a String representation of this AID. |
void |
writeObject(java.io.ObjectOutputStream out)
Writes this AID to the output stream. |
Methods inherited from class org.apache.jdo.impl.fostore.OID |
---|
compareTo, getCLID, getUID, isProvisional |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AID()
public AID(long oid)
Method Detail |
---|
public boolean equals(java.lang.Object other)
equals
in class OID
other
- The other AID in the equality comparison.
public java.lang.String toString()
toString
in class OID
public java.lang.String oidString()
oidString
in class OID
public int hashCode()
hashCode
in class OID
public void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException
java.io.IOException
public void readObject(java.io.ObjectInputStream in) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |