Package org.datanucleus.identity
Class LongId
- All Implemented Interfaces:
Externalizable
,Serializable
,Comparable<LongId>
This class is for identity with a single long field.
- See Also:
-
Field Summary
FieldsFields inherited from class org.datanucleus.identity.SingleFieldId
hashCode, STRING_DELIMITER, targetClassName
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.datanucleus.identity.SingleFieldId
assertKeyNotNull, compare, equals, getTargetClassName, hashCode
-
Field Details
-
key
private long key
-
-
Constructor Details
-
LongId
-
LongId
-
LongId
-
LongId
public LongId()
-
-
Method Details
-
getKey
public long getKey() -
getKeyAsObject
Description copied from class:SingleFieldId
Accessor for the key- Specified by:
getKeyAsObject
in classSingleFieldId<Long,
LongId> - Returns:
- The key
-
toString
Return the String form of the key. -
keyEquals
- Specified by:
keyEquals
in classSingleFieldId<Long,
LongId>
-
compareTo
-
writeExternal
Write this object. Write the superclass first.- Specified by:
writeExternal
in interfaceExternalizable
- Overrides:
writeExternal
in classSingleFieldId<Long,
LongId> - Parameters:
out
- the output- Throws:
IOException
-
readExternal
Read this object. Read the superclass first.- Specified by:
readExternal
in interfaceExternalizable
- Overrides:
readExternal
in classSingleFieldId<Long,
LongId> - Parameters:
in
- the input- Throws:
IOException
ClassNotFoundException
-