public final class ShortId extends OpenJPAId
OpenJPAId subclass appropriate for short fields.subs, type, TYPE_VALUE_SEP| Constructor and Description |
|---|
ShortId(java.lang.Class cls,
short key) |
ShortId(java.lang.Class cls,
java.lang.Short key) |
ShortId(java.lang.Class cls,
short key,
boolean subs) |
ShortId(java.lang.Class cls,
java.lang.String key) |
| Modifier and Type | Method and Description |
|---|---|
short |
getId() |
java.lang.Object |
getIdObject()
Return the identity value as an object.
|
protected boolean |
idEquals(OpenJPAId o)
Compare the id to the id of the given instance.
|
protected int |
idHash()
Return the id's hash code.
|
java.lang.String |
toString() |
compareTo, equals, getType, hashCode, hasSubclasses, setManagedInstanceType, setManagedInstanceTypepublic ShortId(java.lang.Class cls,
java.lang.Short key)
public ShortId(java.lang.Class cls,
java.lang.String key)
public ShortId(java.lang.Class cls,
short key)
public ShortId(java.lang.Class cls,
short key,
boolean subs)
public short getId()
public java.lang.Object getIdObject()
OpenJPAIdgetIdObject in class OpenJPAIdprotected int idHash()
OpenJPAIdCopyright © 2006-2013 Apache Software Foundation. All Rights Reserved.