Package org.bgerp.cache
Class ProcessTypeCache
In-memory process types cache.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
flush
(Connection con) static ProcessType
getProcessType
(int id) Retrieves process type object.static Map
<Integer, ProcessType> static ProcessType
getProcessTypeOrThrow
(int id) Gets process type by ID.static ProcessType
getProcessTypeSafe
(int id) Retrieves process type object null-safe.static Status
getStatusSafe
(int statusId) static List
<ProcessType> getTypeList
(String area, String objectType, Set<Integer> ids) static List
<ProcessType> getTypePath
(int id) static ProcessType
protected ProcessTypeCache
Creates a new cache instance
-
Constructor Details
-
ProcessTypeCache
public ProcessTypeCache()
-
-
Method Details
-
getProcessTypeMap
-
getProcessType
Retrieves process type object.- Parameters:
id
- ID.- Returns:
- type instance or
null
.
-
getProcessTypeOrThrow
Gets process type by ID.- Parameters:
id
- ID.- Returns:
- Throws:
javassist.NotFoundException
-
getProcessTypeSafe
Retrieves process type object null-safe.- Parameters:
id
- ID.- Returns:
- type instance or mock object with a title, generated out of
id
.
-
getTypeList
-
getTypeTreeRoot
-
getStatusList
-
getStatusMap
-
getStatusSafe
-
getTypePath
-
flush
-
newInstance
Description copied from class:Cache
Creates a new cache instance- Specified by:
newInstance
in classCache<ProcessTypeCache>
- Returns:
- the instance
-