@Retention(value=RUNTIME)
@Target(value={FIELD,METHOD})
public @interface Key
| Modifier and Type | Fields and Description |
|---|---|
static java.lang.String |
DEFAULT_NAME |
static int |
DEFAULT_PLACEHOLDER
Use a value of a field definition as a placeholder
|
static int |
GIVEN_PARAMETER
Use a given parameter as a placeholder
|
static int |
IMMEDIATE_CACHE
Do cache data from a data store in constructor first
|
static int |
LAZY_CACHE
Do cache data from a data store lazy
|
static int |
LOWER_CAMEL
Convert a field name to lower camel
e.g.
|
static int |
LOWER_UNDERSCORE
Convert a field name to lower underscore
e.g.
|
static int |
NO_CACHE
Always read data from a data store
|
static int |
NONE
Use a field name as it is
|
static int |
UPPER_CAMEL
Convert a field name to upper camel
e.g.
|
static int |
UPPER_UNDERSCORE
Convert a field name to upper underscore
e.g.
|
| Modifier and Type | Optional Element and Description |
|---|---|
int |
cacheStrategy |
java.lang.String |
name
If you specify this, the value will be used for a key of a store.
|
int |
nameStrategy
Specify a name strategy to convert a key field name.
|
int |
placeholder |
public static final java.lang.String DEFAULT_NAME
name()public static final int IMMEDIATE_CACHE
public static final int LOWER_UNDERSCORE
public static final int UPPER_UNDERSCORE
public static final int DEFAULT_PLACEHOLDER
public abstract java.lang.String name
nameStrategy() and will be used for a key of a store.DEFAULT_NAMEpublic abstract int nameStrategy
name() equals DEFAULT_NAMEKey.NameStrategy