Class MDocumentStatus

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

public class MDocumentStatus extends X_PA_DocumentStatus implements ImmutablePOSupport
Named status of records in a table via SQL criteria
See Also:
  • Constructor Details

    • MDocumentStatus

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

      public MDocumentStatus(Properties ctx, int PA_DocumentStatus_ID, String trxName)
      Parameters:
      ctx -
      PA_DocumentStatus_ID -
      trxName -
    • MDocumentStatus

      public MDocumentStatus(Properties ctx, ResultSet rs, String trxName)
      Parameters:
      ctx -
      rs -
      trxName -
    • MDocumentStatus

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

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

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

    • get

      public static MDocumentStatus get(Properties ctx, int PA_DocumentStatus_ID)
      Get from Cache (immutable)
      Parameters:
      ctx - context
      PA_DocumentStatus_ID - id
      Returns:
      document status
    • getDocumentStatusIndicators

      public static MDocumentStatus[] getDocumentStatusIndicators(Properties ctx, int AD_User_ID, int AD_Role_ID)
      Get Document Status Indicators
      Parameters:
      ctx - context
      AD_User_ID - user
      AD_Role_ID -
      Returns:
      array of document status
    • getDocumentStatusIndicators

      public static MDocumentStatus[] getDocumentStatusIndicators(Properties ctx, int AD_User_ID, int AD_Role_ID, String trxName)
      Get Document Status Indicators
      Parameters:
      ctx -
      AD_User_ID -
      AD_Role_ID -
      trxName -
      Returns:
      array of document status
    • evaluate

      public static int evaluate(MDocumentStatus documentStatus)
      Parameters:
      documentStatus -
      Returns:
      number of matching records
    • getWhereClause

      public static String getWhereClause(MDocumentStatus documentStatus)
      Parameters:
      documentStatus -
      Returns:
      where clause to find matching records
    • toString

      public String toString()
      Description copied from class: PO
      String representation
      Overrides:
      toString in class X_PA_DocumentStatus
      Returns:
      String representation
    • markImmutable

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