public abstract class OpenJPAId extends Object implements Comparable, Serializable
Modifier and Type | Field and Description |
---|---|
protected boolean |
subs |
protected Class |
type |
static char |
TYPE_VALUE_SEP |
Modifier | Constructor and Description |
---|---|
protected |
OpenJPAId() |
protected |
OpenJPAId(Class type) |
protected |
OpenJPAId(Class type,
boolean subs) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object other) |
boolean |
equals(Object o) |
abstract Object |
getIdObject()
Return the identity value as an object.
|
Class |
getType()
Return the persistent class which this id instance represents.
|
int |
hashCode()
Generate the hash code 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(Class type)
Set the exact type of the described instance once it is known.
|
void |
setManagedInstanceType(Class type,
boolean subs)
Set the exact type of the described instance once it is known.
|
String |
toString() |
public static final char TYPE_VALUE_SEP
protected Class type
protected boolean subs
protected OpenJPAId()
protected OpenJPAId(Class type)
protected OpenJPAId(Class type, boolean subs)
public Class getType()
public boolean hasSubclasses()
public void setManagedInstanceType(Class type)
public void setManagedInstanceType(Class type, boolean subs)
public abstract Object getIdObject()
protected abstract int idHash()
protected abstract boolean idEquals(OpenJPAId other)
public int hashCode()
public int compareTo(Object other)
compareTo
in interface Comparable
Copyright © 2006–2017 Apache Software Foundation. All rights reserved.