Class MStatus

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

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

    • MStatus

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

      public MStatus(Properties ctx, int R_Status_ID, String trxName)
      Default Constructor
      Parameters:
      ctx - context
      R_Status_ID - is
      trxName - trx
    • MStatus

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

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

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

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

    • get

      public static MStatus get(int R_Status_ID)
      Get Request Status (cached) (immutable)
      Parameters:
      R_Status_ID - id
      Returns:
      Request Status or null
    • get

      public static MStatus get(Properties ctx, int R_Status_ID)
      Get Request Status (cached) (immutable)
      Parameters:
      ctx - context
      R_Status_ID - id
      Returns:
      Request Status or null
    • getCopy

      public static MStatus getCopy(Properties ctx, int R_Status_ID, String trxName)
      Get updateable copy of MStatus from cache
      Parameters:
      ctx -
      R_Status_ID -
      trxName -
      Returns:
      MStatus
    • getDefault

      public static MStatus getDefault(Properties ctx, int R_RequestType_ID)
      Get Default Request Status for given request type
      Parameters:
      ctx - context
      R_RequestType_ID - request type
      Returns:
      default Request status or null
    • getClosed

      public static MStatus[] getClosed(Properties ctx)
      Get request status records with IsClosed=Y
      Parameters:
      ctx - context
      Returns:
      array of request status
    • beforeSave

      protected boolean beforeSave(boolean newRecord)
      Before Save
      Overrides:
      beforeSave in class PO
      Parameters:
      newRecord - new
      Returns:
      true
    • toString

      public String toString()
      String Representation
      Overrides:
      toString in class X_R_Status
      Returns:
      info
    • markImmutable

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