Package org.bgerp.cache
Class ProcessTypeCache
In-memory process types cache.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidflush(Connection con) static ProcessTypegetProcessType(int id) Retrieves process type object.static Map<Integer, ProcessType> static ProcessTypegetProcessTypeOrThrow(int id) Gets process type by ID.static ProcessTypegetProcessTypeSafe(int id) Retrieves process type object null-safe.static StatusgetStatusSafe(int statusId) static List<ProcessType> static List<ProcessType> getTypePath(int id) static ProcessTypeprotected ProcessTypeCacheCreates 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.
-
getTypeTreeRoot
-
getTypeList
-
getStatusList
-
getStatusMap
-
getStatusSafe
-
getTypePath
-
flush
-
newInstance
Description copied from class:CacheCreates a new cache instance- Specified by:
newInstancein classCache<ProcessTypeCache>- Returns:
- the instance
-