public class ShortFieldPK extends SingleFieldPK
hashCode, keyAsObject| Constructor and Description |
|---|
ShortFieldPK()
Constructor only for Externalizable.
|
ShortFieldPK(Class pcClass,
short key)
Constructor with class and key.
|
ShortFieldPK(Class pcClass,
Short key)
Constructor with class and key.
|
ShortFieldPK(Class pcClass,
String str)
Constructor with class and key.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o) |
protected Object |
createKeyAsObject()
Create the key as an Object.
|
boolean |
equals(Object obj)
Determine if the other object represents the same object id.
|
short |
getKey()
Return the key.
|
void |
readExternal(ObjectInput in)
Read this object.
|
String |
toString()
Return the String form of the key.
|
void |
writeExternal(ObjectOutput out)
Write this object.
|
assertKeyNotNull, getKeyAsObject, getTargetClass, getTargetClassName, hashClassName, hashCode, setKeyAsObjectpublic ShortFieldPK(Class pcClass, short key)
pcClass - the classkey - the keypublic ShortFieldPK(Class pcClass, Short key)
pcClass - the classkey - the keypublic ShortFieldPK(Class pcClass, String str)
pcClass - the classstr - the keypublic ShortFieldPK()
public short getKey()
public String toString()
public boolean equals(Object obj)
equals in class SingleFieldPKobj - the other objectpublic int compareTo(Object o)
protected Object createKeyAsObject()
createKeyAsObject in class SingleFieldPKpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class SingleFieldPKout - the outputIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class SingleFieldPKin - the inputIOExceptionClassNotFoundExceptionCopyright © 2013. All Rights Reserved.