public class Cache extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
delegatorName |
protected EntityCache |
entityCache |
protected EntityListCache |
entityListCache |
protected EntityObjectCache |
entityObjectCache |
static String |
module |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
GenericValue |
get(GenericPK pk) |
List<GenericValue> |
get(String entityName,
EntityCondition condition,
List<String> orderBy) |
<T> T |
get(String entityName,
EntityCondition condition,
String name) |
GenericValue |
put(GenericPK pk,
GenericValue entity) |
GenericValue |
put(GenericValue entity) |
List<GenericValue> |
put(String entityName,
EntityCondition condition,
List<String> orderBy,
List<GenericValue> entities) |
<T> T |
put(String entityName,
EntityCondition condition,
String name,
T value) |
GenericValue |
remove(GenericEntity entity) |
GenericValue |
remove(GenericPK pk) |
void |
remove(String entityName) |
void |
remove(String entityName,
EntityCondition condition) |
List<GenericValue> |
remove(String entityName,
EntityCondition condition,
List<String> orderBy) |
<T> T |
remove(String entityName,
EntityCondition condition,
String name) |
public static final String module
protected EntityCache entityCache
protected EntityListCache entityListCache
protected EntityObjectCache entityObjectCache
protected String delegatorName
public Cache(String delegatorName)
public void clear()
public void remove(String entityName)
public GenericValue get(GenericPK pk)
public List<GenericValue> get(String entityName, EntityCondition condition, List<String> orderBy)
public <T> T get(String entityName, EntityCondition condition, String name)
public List<GenericValue> put(String entityName, EntityCondition condition, List<String> orderBy, List<GenericValue> entities)
public <T> T put(String entityName, EntityCondition condition, String name, T value)
public GenericValue put(GenericValue entity)
public GenericValue put(GenericPK pk, GenericValue entity)
public List<GenericValue> remove(String entityName, EntityCondition condition, List<String> orderBy)
public void remove(String entityName, EntityCondition condition)
public <T> T remove(String entityName, EntityCondition condition, String name)
public GenericValue remove(GenericEntity entity)
public GenericValue remove(GenericPK pk)