- java.lang.Object
-
- org.datanucleus.identity.SingleFieldId<Byte>
-
- org.datanucleus.identity.ByteId
-
- All Implemented Interfaces:
Externalizable,Serializable,Comparable
public class ByteId extends SingleFieldId<Byte>
This class is for identity with a single byte field.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.datanucleus.identity.SingleFieldId
hashCode, STRING_DELIMITER, targetClassName
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Object o)bytegetKey()BytegetKeyAsObject()protected booleankeyEquals(SingleFieldId obj)voidreadExternal(ObjectInput in)Read this object.StringtoString()Return the String version of the key.voidwriteExternal(ObjectOutput out)Write this object.-
Methods inherited from class org.datanucleus.identity.SingleFieldId
assertKeyNotNull, compare, equals, getTargetClassName, hashCode
-
-
-
-
Method Detail
-
getKey
public byte getKey()
-
getKeyAsObject
public Byte getKeyAsObject()
- Specified by:
getKeyAsObjectin classSingleFieldId<Byte>
-
toString
public String toString()
Return the String version of the key.
-
keyEquals
protected boolean keyEquals(SingleFieldId obj)
- Specified by:
keyEqualsin classSingleFieldId<Byte>
-
compareTo
public int compareTo(Object o)
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
Write this object. Write the superclass first.- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classSingleFieldId<Byte>- Parameters:
out- the output- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
Read this object. Read the superclass first.- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classSingleFieldId<Byte>- Parameters:
in- the input- Throws:
IOExceptionClassNotFoundException
-
-