Package org.datanucleus.cache
Class CacheUniqueKey
java.lang.Object
org.datanucleus.cache.CacheUniqueKey
- All Implemented Interfaces:
Serializable
,Comparable<CacheUniqueKey>
Key representing a unique key for a persistable object.
This is used to cache a CachedPC against a key other than its primary key.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int
private static final long
(package private) String
-
Constructor Summary
ConstructorsConstructorDescriptionCacheUniqueKey
(String className, String[] fieldNames, Object[] fieldValues) Constructor for a unique cache key. -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
boolean
equals
(CacheUniqueKey other) int
hashCode()
toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
toString
String toString -
hashCode
int hashCode
-
-
Constructor Details
-
CacheUniqueKey
Constructor for a unique cache key.- Parameters:
className
- Name of the class of the persistable objectfieldNames
- Names of the fields used to form the unique keyfieldValues
- Values of the fields used to form the unique key
-
-
Method Details
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<CacheUniqueKey>
-
equals
-
equals
-
toString
-