org.apache.openjpa.util
public final class IntId extends OpenJPAId
OpenJPAId
subclass appropriate for int fields.Constructor and Description |
---|
IntId(java.lang.Class cls,
int key) |
IntId(java.lang.Class cls,
int key,
boolean subs) |
IntId(java.lang.Class cls,
java.lang.Integer key) |
IntId(java.lang.Class cls,
java.lang.String key) |
Modifier and Type | Method and Description |
---|---|
int |
getId() |
java.lang.Object |
getIdObject()
Return the identity value as an object.
|
protected boolean |
idEquals(OpenJPAId o)
Compare the id to the id of the given instance.
|
protected int |
idHash()
Return the id's hash code.
|
java.lang.String |
toString() |
compareTo, equals, getType, hashCode, hasSubclasses, setManagedInstanceType, setManagedInstanceType
public IntId(java.lang.Class cls, java.lang.Integer key)
public IntId(java.lang.Class cls, java.lang.String key)
public IntId(java.lang.Class cls, int key)
public IntId(java.lang.Class cls, int key, boolean subs)
public int getId()
public java.lang.Object getIdObject()
OpenJPAId
getIdObject
in class OpenJPAId
protected int idHash()
OpenJPAId