public class CacheId extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<CacheId>
Constructor and Description |
---|
CacheId() |
CacheId(java.lang.Object[] primaryKey) |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.Object value)
Append the value to the end of the primary key values.
|
int |
compareTo(CacheId id)
Determine if the receiver is greater or less than the key.
|
boolean |
equals(CacheId id)
Determine if the receiver is equal to key.
|
boolean |
equals(java.lang.Object object)
Determine if the receiver is equal to anObject.
|
java.lang.Object[] |
getPrimaryKey() |
boolean |
hasArray() |
int |
hashCode()
Return the precomputed hashcode.
|
void |
set(int index,
java.lang.Object value)
Set the value in the primary key values.
|
void |
setPrimaryKey(java.lang.Object[] primaryKey) |
java.lang.String |
toString() |
public static final CacheId EMPTY
public java.lang.Object[] getPrimaryKey()
public void setPrimaryKey(java.lang.Object[] primaryKey)
public void add(java.lang.Object value)
public void set(int index, java.lang.Object value)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
CacheKey.equals(CacheKey)
public boolean equals(CacheId id)
public int compareTo(CacheId id)
compareTo
in interface java.lang.Comparable<CacheId>
public boolean hasArray()
public java.lang.String toString()
toString
in class java.lang.Object
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference