Class MStatusCategory

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_Persistent, I_R_StatusCategory, Evaluatee, ImmutablePOSupport

public class MStatusCategory extends X_R_StatusCategory implements ImmutablePOSupport
Request Status Category Model
Version:
$Id: MStatusCategory.java,v 1.2 2006/07/30 00:51:02 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MStatusCategory

      public MStatusCategory(Properties ctx, String R_StatusCategory_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      R_StatusCategory_UU - UUID key
      trxName - Transaction
    • MStatusCategory

      public MStatusCategory(Properties ctx, int R_StatusCategory_ID, String trxName)
      Default Constructor
      Parameters:
      ctx - context
      R_StatusCategory_ID - id
      trxName - trx
    • MStatusCategory

      public MStatusCategory(Properties ctx, ResultSet rs, String trxName)
      Load Constructor
      Parameters:
      ctx - context
      rs - result set
      trxName - trx
    • MStatusCategory

      public MStatusCategory(MStatusCategory copy)
      Copy constructor
      Parameters:
      copy -
    • MStatusCategory

      public MStatusCategory(Properties ctx, MStatusCategory copy)
      Copy constructor
      Parameters:
      ctx -
      copy -
    • MStatusCategory

      public MStatusCategory(Properties ctx, MStatusCategory copy, String trxName)
      Copy constructor
      Parameters:
      ctx -
      copy -
      trxName -
  • Method Details

    • getDefault

      public static MStatusCategory getDefault(Properties ctx)
      Get Default Status Category for Client
      Parameters:
      ctx - context
      Returns:
      status category or null
    • createDefault

      public static MStatusCategory createDefault(Properties ctx)
      Create Default Status Category for Client (with name equal to the translated message of "Standard")
      Parameters:
      ctx - context
      Returns:
      status category or null
    • get

      public static MStatusCategory get(int R_StatusCategory_ID)
      Get Request Status Category from Cache (immutable)
      Parameters:
      R_StatusCategory_ID - id
      Returns:
      RStatusCategory
    • get

      public static MStatusCategory get(Properties ctx, int R_StatusCategory_ID)
      Get Request Status Category from Cache (immutable)
      Parameters:
      ctx - context
      R_StatusCategory_ID - id
      Returns:
      RStatusCategory
    • getStatus

      public MStatus[] getStatus(boolean reload)
      Get all Status for this category
      Parameters:
      reload - true to reload from DB
      Returns:
      Status array
    • getDefaultR_Status_ID

      public int getDefaultR_Status_ID()
      Get Default R_Status_ID for this category
      Returns:
      id or 0
    • markImmutable

      public MStatusCategory markImmutable()
      Description copied from interface: ImmutablePOSupport
      mark PO as immutable
      Specified by:
      markImmutable in interface ImmutablePOSupport
      Returns:
      PO
    • toString

      public String toString()
      String Representation
      Overrides:
      toString in class X_R_StatusCategory
      Returns:
      info