public class OID
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable
This class is public
as required by the JDO specification.
Modifier and Type | Field and Description |
---|---|
long |
oid
The 'value' of this OID.
|
Constructor and Description |
---|
OID()
Creates an OID with the no value.
|
OID(long oid)
Creates an OID with the given value.
|
OID(java.lang.String str)
Constructor that takes the result of toString() and creates a new
OID.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object obj)
Compare this OID to another OID.
|
boolean |
equals(java.lang.Object other)
Determines if this OID is equal to another.
|
org.apache.jdo.impl.fostore.CLID |
getCLID()
Provides the CLID part of this OID.
|
long |
getUID()
Provides the unique id part of this OID.
|
int |
hashCode()
Provides a JVM-unique hashCode for this OID.
|
boolean |
isProvisional()
Indicates whether this OID is provisional.
|
java.lang.String |
oidString()
Returns the id itself in String form, for debugging.
|
java.lang.String |
toString()
Returns a String representation of this OID.
|
public OID()
public OID(java.lang.String str)
toString()
public OID(long oid)
public boolean isProvisional()
public org.apache.jdo.impl.fostore.CLID getCLID()
public long getUID()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- The other OID in the equality comparison.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String oidString()
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.