|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.util.OpenJPAId org.apache.openjpa.util.Id
public final class Id
Datastore identity type. Implementations may choose to use this type, or choose to use their own datastore identity values.
Field Summary |
---|
Fields inherited from class org.apache.openjpa.util.OpenJPAId |
---|
subs, type |
Constructor Summary | |
---|---|
Id(java.lang.Class cls,
long key)
Construct from key value. |
|
Id(java.lang.Class cls,
java.lang.Long key)
Construct from key value. |
|
Id(java.lang.Class cls,
long key,
boolean subs)
Construct from key value. |
|
Id(java.lang.Class cls,
java.lang.String key)
Construct from the result of a OpenJPAId.toString() call on another
instance. |
|
Id(java.lang.String str)
Create an id from the result of a OpenJPAId.toString() call on another
instance. |
|
Id(java.lang.String str,
java.lang.ClassLoader loader)
Create an id from the result of an OpenJPAId.toString() call on another
instance. |
|
Id(java.lang.String str,
OpenJPAConfiguration conf,
java.lang.ClassLoader brokerLoader)
Create an id from the result of an OpenJPAId.toString() call on another
instance. |
Method Summary | |
---|---|
long |
getId()
Primary key. |
java.lang.Object |
getIdObject()
Return the identity value as an object. |
protected boolean |
idEquals(OpenJPAId other)
Compare the id to the id of the given instance. |
protected int |
idHash()
Return the id's hash code. |
static Id |
newInstance(java.lang.Class cls,
java.lang.Object val)
Create an id from the given type and value; the value might be an id instnace, a stringified id, or a primary key value. |
Methods inherited from class org.apache.openjpa.util.OpenJPAId |
---|
compareTo, equals, getType, hashCode, hasSubclasses, setManagedInstanceType, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Id(java.lang.String str)
OpenJPAId.toString()
call on another
instance.
public Id(java.lang.String str, OpenJPAConfiguration conf, java.lang.ClassLoader brokerLoader)
OpenJPAId.toString()
call on another
instance.
public Id(java.lang.String str, java.lang.ClassLoader loader)
OpenJPAId.toString()
call on another
instance.
public Id(java.lang.Class cls, java.lang.String key)
OpenJPAId.toString()
call on another
instance.
public Id(java.lang.Class cls, java.lang.Long key)
public Id(java.lang.Class cls, long key)
public Id(java.lang.Class cls, long key, boolean subs)
Method Detail |
---|
public static Id newInstance(java.lang.Class cls, java.lang.Object val)
public long getId()
public java.lang.Object getIdObject()
OpenJPAId
getIdObject
in class OpenJPAId
protected int idHash()
OpenJPAId
idHash
in class OpenJPAId
protected boolean idEquals(OpenJPAId other)
OpenJPAId
idEquals
in class OpenJPAId
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |