public class ObjectId extends SingleFieldId
hashCode, STRING_DELIMITER, targetClassName| Constructor and Description |
|---|
ObjectId() |
ObjectId(Class pcClass,
Object param)
Constructor with class and key.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o) |
boolean |
equals(Object obj)
Check the class and class name and object type.
|
Object |
getKey() |
Object |
getKeyAsObject() |
void |
readExternal(ObjectInput in)
Read this object.
|
String |
toString()
Return the String form of the object id.
|
void |
writeExternal(ObjectOutput out)
Write this object.
|
assertKeyNotNull, compare, getTargetClassName, hashCodepublic ObjectId(Class pcClass, Object param)
pcClass - the classparam - the keypublic ObjectId()
public Object getKey()
public Object getKeyAsObject()
getKeyAsObject in class SingleFieldIdpublic String toString()
public boolean equals(Object obj)
SingleFieldIdequals in class SingleFieldIdobj - the other objectpublic int compareTo(Object o)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class SingleFieldIdout - the outputIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class SingleFieldIdin - the inputIOExceptionClassNotFoundExceptionCopyright © 2017. All rights reserved.