| Modifier and Type | Field and Description |
|---|---|
| private static final CacheIdComparator | |
| public static final CacheId | |
| protected boolean | hasArray
Indicates whether at least one element of primaryKey is array. |
| protected int | hash
Cached hashcode. |
| protected Object[] | primaryKey
The primary key values. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public int | compareTo(CacheId
the object to be compared. otherId)Implements java. |
| private int | |
| protected int | |
| public boolean | equals(Object
the reference object with which to compare. object)Overrides java. |
| public boolean | |
| public Object[] | |
| public boolean | |
| public int | |
| public void | |
| public void | |
| public String |
| COMPARATOR | back to summary |
|---|---|
| private static final CacheIdComparator COMPARATOR | |
| EMPTY | back to summary |
|---|---|
| public static final CacheId EMPTY | |
| hasArray | back to summary |
|---|---|
| protected boolean hasArray Indicates whether at least one element of primaryKey is array. | |
| hash | back to summary |
|---|---|
| protected int hash Cached hashcode. | |
| primaryKey | back to summary |
|---|---|
| protected Object[] primaryKey The primary key values. | |
| CacheId | back to summary |
|---|---|
| public CacheId() | |
| CacheId | back to summary |
|---|---|
| public CacheId(Object[] primaryKey) | |
| add | back to summary |
|---|---|
| public void add(Object value) Append the value to the end of the primary key values. | |
| compareTo | back to summary |
|---|---|
| public int compareTo(CacheId otherId) Implements java. Determine if the receiver is greater or less than the key.
| |
| computeArrayHashCode | back to summary |
|---|---|
| private int computeArrayHashCode(int result, Object obj) Compute the hashcode for supported array types. | |
| computeHash | back to summary |
|---|---|
| protected int computeHash(Object[] primaryKey) Pre-compute the hash to optimize hash calls. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides java. Determine if the receiver is equal to anObject. If anObject is a CacheKey, do further comparison, otherwise, return false.
| |
| equals | back to summary |
|---|---|
| public boolean equals(CacheId id) Determine if the receiver is equal to key. Use an index compare, because it is much faster than enumerations. | |
| getPrimaryKey | back to summary |
|---|---|
| public Object[] getPrimaryKey() | |
| hasArray | back to summary |
|---|---|
| public boolean hasArray() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Return the precomputed hashcode.
| |
| set | back to summary |
|---|---|
| public void set(int index, Object value) Set the value in the primary key values. | |
| setPrimaryKey | back to summary |
|---|---|
| public void setPrimaryKey(Object[] primaryKey) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |