public final class Id extends OpenJPAId
subs, type, TYPE_VALUE_SEP
Constructor and Description |
---|
Id(Class cls,
long key)
Construct from key value.
|
Id(Class cls,
Long key)
Construct from key value.
|
Id(Class cls,
long key,
boolean subs)
Construct from key value.
|
Id(Class cls,
String key)
Construct from the result of a
OpenJPAId.toString() call on another
instance. |
Id(String str)
Create an id from the result of a
OpenJPAId.toString() call on another
instance. |
Id(String str,
ClassLoader loader)
Create an id from the result of an
OpenJPAId.toString() call on another
instance. |
Id(String str,
OpenJPAConfiguration conf,
ClassLoader brokerLoader)
Create an id from the result of an
OpenJPAId.toString() call on another
instance. |
Modifier and Type | Method and Description |
---|---|
long |
getId()
Primary key.
|
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(Class cls,
Object val)
Create an id from the given type and value; the value might be an
id instance, a stringified id, or a primary key value.
|
compareTo, equals, getType, hashCode, hasSubclasses, setManagedInstanceType, setManagedInstanceType, toString
public Id(String str)
OpenJPAId.toString()
call on another
instance.public Id(String str, OpenJPAConfiguration conf, ClassLoader brokerLoader)
OpenJPAId.toString()
call on another
instance.public Id(String str, ClassLoader loader)
OpenJPAId.toString()
call on another
instance.public Id(Class cls, String key)
OpenJPAId.toString()
call on another
instance.public Id(Class cls, long key)
public Id(Class cls, long key, boolean subs)
public static Id newInstance(Class cls, Object val)
public long getId()
public Object getIdObject()
OpenJPAId
getIdObject
in class OpenJPAId
protected int idHash()
OpenJPAId
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.