public enum CacheKeyType extends java.lang.Enum<CacheKeyType>
PrimaryKey.cacheKeyType()
,
ClassDescriptor.setCacheKeyType(CacheKeyType)
Enum Constant and Description |
---|
AUTO
The cache key type is automatically configured depending on what is optimal for the class.
|
CACHE_ID
Optimized cache key type that allows composite and complex values.
|
ID_VALUE
This can only be used for simple singleton Ids, such as long/int/String.
|
Modifier and Type | Method and Description |
---|---|
static CacheKeyType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CacheKeyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CacheKeyType ID_VALUE
public static final CacheKeyType CACHE_ID
public static final CacheKeyType AUTO
public static CacheKeyType[] values()
for (CacheKeyType c : CacheKeyType.values()) System.out.println(c);
public static CacheKeyType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null