Class ProcessTypeCache

java.lang.Object
org.bgerp.cache.Cache<ProcessTypeCache>
org.bgerp.cache.ProcessTypeCache

public class ProcessTypeCache extends Cache<ProcessTypeCache>
In-memory process types cache.
  • Constructor Details

    • ProcessTypeCache

      public ProcessTypeCache()
  • Method Details

    • getProcessTypeMap

      public static Map<Integer,ProcessType> getProcessTypeMap()
    • getProcessType

      public static ProcessType getProcessType(int id)
      Retrieves process type object.
      Parameters:
      id - ID.
      Returns:
      type instance or null.
    • getProcessTypeOrThrow

      public static ProcessType getProcessTypeOrThrow(int id) throws javassist.NotFoundException
      Gets process type by ID.
      Parameters:
      id - ID.
      Returns:
      Throws:
      javassist.NotFoundException
    • getProcessTypeSafe

      public static ProcessType getProcessTypeSafe(int id)
      Retrieves process type object null-safe.
      Parameters:
      id - ID.
      Returns:
      type instance or mock object with a title, generated out of id.
    • getTypeList

      public static List<ProcessType> getTypeList(Set<Integer> ids)
    • getTypeList

      public static List<ProcessType> getTypeList(String objectType) throws Exception
      Throws:
      Exception
    • getTypeTreeRoot

      public static ProcessType getTypeTreeRoot()
    • getTypeStatusList

      public static List<Status> getTypeStatusList(ProcessType type, int currentStatusId)
    • getStatusList

      public static List<Status> getStatusList()
    • getStatusMap

      public static Map<Integer,Status> getStatusMap()
    • getStatusSafe

      public static Status getStatusSafe(int statusId)
    • getTypePath

      public static List<ProcessType> getTypePath(int id)
    • flush

      public static void flush(Connection con)
    • newInstance

      protected ProcessTypeCache newInstance()
      Specified by:
      newInstance in class Cache<ProcessTypeCache>