Package org.apache.ofbiz.entity.cache
Class Cache
java.lang.Object
org.apache.ofbiz.entity.cache.Cache
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear.<T> T
get
(String entityName, EntityCondition condition, String name) Get t.get
(String entityName, EntityCondition condition, List<String> orderBy) Get list.Get generic value.<T> T
put
(String entityName, EntityCondition condition, String name, T value) Put t.put
(String entityName, EntityCondition condition, List<String> orderBy, List<GenericValue> entities) Put list.put
(GenericPK pk, GenericValue entity) Put generic value.put
(GenericValue entity) Put generic value.void
Remove.void
remove
(String entityName, EntityCondition condition) Remove.<T> T
remove
(String entityName, EntityCondition condition, String name) Remove t.remove
(String entityName, EntityCondition condition, List<String> orderBy) Remove list.remove
(GenericEntity entity) Remove generic value.Remove generic value.
-
Constructor Details
-
Cache
-
-
Method Details
-
clear
public void clear()Clear. -
remove
Remove.- Parameters:
entityName
- the entity name
-
get
Get generic value.- Parameters:
pk
- the pk- Returns:
- the generic value
-
get
Get list.- Parameters:
entityName
- the entity namecondition
- the conditionorderBy
- the order by- Returns:
- the list
-
get
Get t.- Type Parameters:
T
- the type parameter- Parameters:
entityName
- the entity namecondition
- the conditionname
- the name- Returns:
- the t
-
put
public List<GenericValue> put(String entityName, EntityCondition condition, List<String> orderBy, List<GenericValue> entities) Put list.- Parameters:
entityName
- the entity namecondition
- the conditionorderBy
- the order byentities
- the entities- Returns:
- the list
-
put
Put t.- Type Parameters:
T
- the type parameter- Parameters:
entityName
- the entity namecondition
- the conditionname
- the namevalue
- the value- Returns:
- the t
-
put
Put generic value.- Parameters:
entity
- the entity- Returns:
- the generic value
-
put
Put generic value.- Parameters:
pk
- the pkentity
- the entity- Returns:
- the generic value
-
remove
public List<GenericValue> remove(String entityName, EntityCondition condition, List<String> orderBy) Remove list.- Parameters:
entityName
- the entity namecondition
- the conditionorderBy
- the order by- Returns:
- the list
-
remove
Remove.- Parameters:
entityName
- the entity namecondition
- the condition
-
remove
Remove t.- Type Parameters:
T
- the type parameter- Parameters:
entityName
- the entity namecondition
- the conditionname
- the name- Returns:
- the t
-
remove
Remove generic value.- Parameters:
entity
- the entity- Returns:
- the generic value
-
remove
Remove generic value.- Parameters:
pk
- the pk- Returns:
- the generic value
-