Package org.datanucleus.cache
Class CacheUniqueKey
- java.lang.Object
- 
- org.datanucleus.cache.CacheUniqueKey
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<CacheUniqueKey>
 
 public class CacheUniqueKey extends Object implements 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:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description CacheUniqueKey(String className, String[] fieldNames, Object[] fieldValues)Constructor for a unique cache key.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(CacheUniqueKey o)booleanequals(Object other)booleanequals(CacheUniqueKey other)inthashCode()StringtoString()
 
- 
- 
- 
Constructor Detail- 
CacheUniqueKeypublic CacheUniqueKey(String className, String[] fieldNames, Object[] fieldValues) Constructor for a unique cache key.- Parameters:
- className- Name of the class of the persistable object
- fieldNames- Names of the fields used to form the unique key
- fieldValues- Values of the fields used to form the unique key
 
 
- 
 - 
Method Detail- 
compareTopublic int compareTo(CacheUniqueKey o) - Specified by:
- compareToin interface- Comparable<CacheUniqueKey>
 
 - 
equalspublic boolean equals(CacheUniqueKey other) 
 
- 
 
-