|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.util.OpenJPAId
public abstract class OpenJPAId
Identity class extended by builtin OpenJPA identity objects.
| Field Summary | |
|---|---|
protected boolean |
subs
|
protected java.lang.Class |
type
|
| Constructor Summary | |
|---|---|
protected |
OpenJPAId()
|
protected |
OpenJPAId(java.lang.Class type)
|
protected |
OpenJPAId(java.lang.Class type,
boolean subs)
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object other)
|
boolean |
equals(java.lang.Object o)
|
abstract java.lang.Object |
getIdObject()
Return the identity value as an object. |
java.lang.Class |
getType()
Return the persitent class which this id instance represents. |
int |
hashCode()
Generate the hashcode for this Id. |
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(java.lang.Class type)
Set the exact type of the described instance once it is known. |
void |
setManagedInstanceType(java.lang.Class type,
boolean subs)
Set the exact type of the described instance once it is known. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.Class type
protected boolean subs
| Constructor Detail |
|---|
protected OpenJPAId()
protected OpenJPAId(java.lang.Class type)
protected OpenJPAId(java.lang.Class type,
boolean subs)
| Method Detail |
|---|
public java.lang.Class getType()
public boolean hasSubclasses()
public void setManagedInstanceType(java.lang.Class type)
public void setManagedInstanceType(java.lang.Class type,
boolean subs)
public abstract java.lang.Object getIdObject()
protected abstract int idHash()
protected abstract boolean idEquals(OpenJPAId other)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(java.lang.Object other)
compareTo in interface java.lang.Comparable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||