|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.util.OpenJPAId
public abstract class OpenJPAId
Identity class extended by builtin OpenJPA identity objects.
Field Summary | |
---|---|
protected boolean |
subs
|
protected Class |
type
|
Constructor Summary | |
---|---|
protected |
OpenJPAId()
|
protected |
OpenJPAId(Class type)
|
protected |
OpenJPAId(Class type,
boolean subs)
|
Method Summary | |
---|---|
int |
compareTo(Object other)
|
boolean |
equals(Object o)
|
abstract Object |
getIdObject()
Return the identity value as an object. |
Class |
getType()
Return the persitent class which this id instance represents. |
int |
hashCode()
|
boolean |
hasSubclasses()
Whether this oid might be for a subclass of the given type. |
protected abstract boolean |
idEquals(OpenJPAId other)
Compare the id to the id of the given instance. |
protected abstract int |
idHash()
Return the id's hash code. |
void |
setManagedInstanceType(Class type)
Set the exact type of the described instance once it is known. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Class type
protected boolean subs
Constructor Detail |
---|
protected OpenJPAId()
protected OpenJPAId(Class type)
protected OpenJPAId(Class type, boolean subs)
Method Detail |
---|
public Class getType()
public boolean hasSubclasses()
public void setManagedInstanceType(Class type)
public abstract Object getIdObject()
protected abstract int idHash()
protected abstract boolean idEquals(OpenJPAId other)
public int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
public String toString()
toString
in class Object
public int compareTo(Object other)
compareTo
in interface Comparable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |