Class MRefTable

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

public class MRefTable extends X_AD_Ref_Table implements ImmutablePOSupport
See Also:
  • Constructor Details

    • MRefTable

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

      public MRefTable(Properties ctx, int AD_Reference_ID, String trxName)
      Standard Constructor
      Parameters:
      ctx - context
      AD_Reference_ID - id warning if you are referring to reference list or table type should be used AD_Reference_Value_ID
      trxName - trx
    • MRefTable

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

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

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

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

    • getAD_Table

      public I_AD_Table getAD_Table() throws RuntimeException
      Specified by:
      getAD_Table in interface I_AD_Ref_Table
      Overrides:
      getAD_Table in class X_AD_Ref_Table
      Throws:
      RuntimeException
    • get

      public static MRefTable get(int AD_Reference_ID)
      Get from Cache (immutable)
      Parameters:
      AD_Reference_ID - id
      Returns:
      category
    • get

      public static MRefTable get(Properties ctx, int AD_Reference_ID)
      Get from Cache (immutable)
      Parameters:
      ctx - context
      AD_Reference_ID - id
      Returns:
      category
    • get

      public static MRefTable get(Properties ctx, int AD_Reference_ID, String trxName)
      Get from Cache (immutable)
      Parameters:
      ctx - context
      AD_Reference_ID - id
      trxName - trx
      Returns:
      category
    • markImmutable

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

      protected boolean beforeSave(boolean newRecord)
      Description copied from class: PO
      Called before Save for Pre-Save Operation.
      Default implementation is nop, to be implemented in sub-classes that needed it.
      Overrides:
      beforeSave in class PO
      Parameters:
      newRecord - true if it is a new record
      Returns:
      true if record can be saved