|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Used to store Generic configuration values (mostly default values for certain fields). Implementations should aim
to manage any plain java object. Two implementations of this interface exist in JIRA: An in memory cache (see
CachedGenericConfigManager) and an implementation responsible for storing the config values in the DB (see
DefaultGenericConfigManager). For DB persistence, objects are serialized to XML.
| Field Summary | |
static String |
ENTITY_DATA_KEY
|
static String |
ENTITY_DATA_TYPE
|
static String |
ENTITY_ID
|
static String |
ENTITY_TABLE_NAME
|
static String |
ENTITY_XML_VALUE
|
| Method Summary | |
void |
create(String dataType,
String key,
Object obj)
Stores a new entry for the config manager. |
void |
remove(String dataType,
String key)
Removes a generic config value. |
Object |
retrieve(String dataType,
String key)
Retrieves a particular entry. |
void |
update(String dataType,
String key,
Object obj)
Updates an entry. |
| Field Detail |
public static final String ENTITY_TABLE_NAME
public static final String ENTITY_ID
public static final String ENTITY_DATA_TYPE
public static final String ENTITY_DATA_KEY
public static final String ENTITY_XML_VALUE
| Method Detail |
public void create(String dataType,
String key,
Object obj)
dataType - The datatype for which to store the generic config (e.g.: DefaultValue)key - A key that identifies the element (e.g.: 10000)obj - The actual object to store.
public void update(String dataType,
String key,
Object obj)
dataType - key - obj -
public Object retrieve(String dataType,
String key)
dataType - key -
public void remove(String dataType,
String key)
dataType - key -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||