|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.ehcache.annotations.key.AbstractCacheKeyGenerator<T>
com.googlecode.ehcache.annotations.key.AbstractDeepCacheKeyGenerator<G,T>
com.googlecode.ehcache.annotations.key.AbstractHashingCacheKeyGenerator<HashCodeCacheKeyGenerator.LongGenerator,java.lang.Long>
com.googlecode.ehcache.annotations.key.HashCodeCacheKeyGenerator
public class HashCodeCacheKeyGenerator
| Nested Class Summary | |
|---|---|
static class |
HashCodeCacheKeyGenerator.LongGenerator
Little utility class to fake a mutable long |
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_BEAN_NAME
Name of the bean this generator is registered under using the default constructor. |
protected static long |
INITIAL_HASH
|
protected static long |
MULTIPLIER
|
| Constructor Summary | |
|---|---|
HashCodeCacheKeyGenerator()
|
|
HashCodeCacheKeyGenerator(boolean includeMethod,
boolean includeParameterTypes)
|
|
| Method Summary | |
|---|---|
protected void |
append(HashCodeCacheKeyGenerator.LongGenerator generator,
boolean[] a)
Append a boolean array. |
protected void |
append(HashCodeCacheKeyGenerator.LongGenerator generator,
byte[] a)
Append a byte array. |
protected void |
append(HashCodeCacheKeyGenerator.LongGenerator generator,
char[] a)
Append a char array. |
protected void |
append(HashCodeCacheKeyGenerator.LongGenerator generator,
double[] a)
Append a double array. |
protected void |
append(HashCodeCacheKeyGenerator.LongGenerator generator,
float[] a)
Append a float array. |
protected void |
append(HashCodeCacheKeyGenerator.LongGenerator generator,
int[] a)
Append a int array. |
protected void |
append(HashCodeCacheKeyGenerator.LongGenerator generator,
long[] a)
Append a long array. |
protected void |
append(HashCodeCacheKeyGenerator.LongGenerator generator,
short[] a)
Append a short array. |
protected void |
appendGraphCycle(HashCodeCacheKeyGenerator.LongGenerator generator,
java.lang.Object o)
Called if a graph cycle is detected. |
protected void |
appendHash(HashCodeCacheKeyGenerator.LongGenerator generator,
java.lang.Object e)
|
protected void |
appendNull(HashCodeCacheKeyGenerator.LongGenerator generator)
Called if a null value is found in the object graph |
java.lang.Long |
generateKey(HashCodeCacheKeyGenerator.LongGenerator generator)
Generate the cache key from the generator |
HashCodeCacheKeyGenerator.LongGenerator |
getGenerator(java.lang.Object... data)
Create the object used to generate the key. |
| Methods inherited from class com.googlecode.ehcache.annotations.key.AbstractHashingCacheKeyGenerator |
|---|
append, appendClass, appendEnum, shouldReflect |
| Methods inherited from class com.googlecode.ehcache.annotations.key.AbstractDeepCacheKeyGenerator |
|---|
beginRecursion, deepHashCode, deepHashCode, deepHashCode, deepHashCode, endRecursion, generateKey, getReflectionHelper, isUseReflection, reflectionDeepHashCode, setReflectionHelper, setUseReflection, toString |
| Methods inherited from class com.googlecode.ehcache.annotations.key.AbstractCacheKeyGenerator |
|---|
generateKey, isCheckforCycles, isIncludeMethod, isIncludeParameterTypes, register, setCheckforCycles, setIncludeMethod, setIncludeParameterTypes, unregister |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_BEAN_NAME
protected static final long INITIAL_HASH
protected static final long MULTIPLIER
| Constructor Detail |
|---|
public HashCodeCacheKeyGenerator()
AbstractCacheKeyGenerator.AbstractCacheKeyGenerator()
public HashCodeCacheKeyGenerator(boolean includeMethod,
boolean includeParameterTypes)
AbstractCacheKeyGenerator.AbstractCacheKeyGenerator(boolean, boolean)| Method Detail |
|---|
public HashCodeCacheKeyGenerator.LongGenerator getGenerator(java.lang.Object... data)
AbstractDeepCacheKeyGeneratorAbstractDeepCacheKeyGenerator.deepHashCode(G, java.lang.Object[]) and
AbstractDeepCacheKeyGenerator.append(G, java.lang.Object) call.
getGenerator in class AbstractDeepCacheKeyGenerator<HashCodeCacheKeyGenerator.LongGenerator,java.lang.Long>public java.lang.Long generateKey(HashCodeCacheKeyGenerator.LongGenerator generator)
AbstractDeepCacheKeyGenerator
generateKey in class AbstractDeepCacheKeyGenerator<HashCodeCacheKeyGenerator.LongGenerator,java.lang.Long>
protected void append(HashCodeCacheKeyGenerator.LongGenerator generator,
boolean[] a)
AbstractDeepCacheKeyGeneratorAbstractDeepCacheKeyGenerator.append(Object, Object) on each value in
the array. If the implementing class can handle boolean or boolean array primitives
directly this should be overridden to avoid auto-boxing each array element.
append in class AbstractDeepCacheKeyGenerator<HashCodeCacheKeyGenerator.LongGenerator,java.lang.Long>
protected void append(HashCodeCacheKeyGenerator.LongGenerator generator,
byte[] a)
AbstractDeepCacheKeyGeneratorAbstractDeepCacheKeyGenerator.append(Object, Object) on each value in
the array. If the implementing class can handle byte or byte array primitives
directly this should be overridden to avoid auto-boxing each array element.
append in class AbstractDeepCacheKeyGenerator<HashCodeCacheKeyGenerator.LongGenerator,java.lang.Long>
protected void append(HashCodeCacheKeyGenerator.LongGenerator generator,
char[] a)
AbstractDeepCacheKeyGeneratorAbstractDeepCacheKeyGenerator.append(Object, Object) on each value in
the array. If the implementing class can handle char or char array primitives
directly this should be overridden to avoid auto-boxing each array element.
append in class AbstractDeepCacheKeyGenerator<HashCodeCacheKeyGenerator.LongGenerator,java.lang.Long>
protected void append(HashCodeCacheKeyGenerator.LongGenerator generator,
double[] a)
AbstractDeepCacheKeyGeneratorAbstractDeepCacheKeyGenerator.append(Object, Object) on each value in
the array. If the implementing class can handle double or double array primitives
directly this should be overridden to avoid auto-boxing each array element.
append in class AbstractDeepCacheKeyGenerator<HashCodeCacheKeyGenerator.LongGenerator,java.lang.Long>
protected void append(HashCodeCacheKeyGenerator.LongGenerator generator,
float[] a)
AbstractDeepCacheKeyGeneratorAbstractDeepCacheKeyGenerator.append(Object, Object) on each value in
the array. If the implementing class can handle float or float array primitives
directly this should be overridden to avoid auto-boxing each array element.
append in class AbstractDeepCacheKeyGenerator<HashCodeCacheKeyGenerator.LongGenerator,java.lang.Long>
protected void append(HashCodeCacheKeyGenerator.LongGenerator generator,
int[] a)
AbstractDeepCacheKeyGeneratorAbstractDeepCacheKeyGenerator.append(Object, Object) on each value in
the array. If the implementing class can handle int or int array primitives
directly this should be overridden to avoid auto-boxing each array element.
append in class AbstractDeepCacheKeyGenerator<HashCodeCacheKeyGenerator.LongGenerator,java.lang.Long>
protected void append(HashCodeCacheKeyGenerator.LongGenerator generator,
long[] a)
AbstractDeepCacheKeyGeneratorAbstractDeepCacheKeyGenerator.append(Object, Object) on each value in
the array. If the implementing class can handle long or long array primitives
directly this should be overridden to avoid auto-boxing each array element.
append in class AbstractDeepCacheKeyGenerator<HashCodeCacheKeyGenerator.LongGenerator,java.lang.Long>
protected void append(HashCodeCacheKeyGenerator.LongGenerator generator,
short[] a)
AbstractDeepCacheKeyGeneratorAbstractDeepCacheKeyGenerator.append(Object, Object) on each value in
the array. If the implementing class can handle short or short array primitives
directly this should be overridden to avoid auto-boxing each array element.
append in class AbstractDeepCacheKeyGenerator<HashCodeCacheKeyGenerator.LongGenerator,java.lang.Long>
protected void appendGraphCycle(HashCodeCacheKeyGenerator.LongGenerator generator,
java.lang.Object o)
AbstractDeepCacheKeyGenerator
appendGraphCycle in class AbstractDeepCacheKeyGenerator<HashCodeCacheKeyGenerator.LongGenerator,java.lang.Long>o - The object that started the cycleprotected void appendNull(HashCodeCacheKeyGenerator.LongGenerator generator)
AbstractDeepCacheKeyGenerator
appendNull in class AbstractDeepCacheKeyGenerator<HashCodeCacheKeyGenerator.LongGenerator,java.lang.Long>
protected void appendHash(HashCodeCacheKeyGenerator.LongGenerator generator,
java.lang.Object e)
appendHash in class AbstractHashingCacheKeyGenerator<HashCodeCacheKeyGenerator.LongGenerator,java.lang.Long>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||