Class MPriceListVersion

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

public class MPriceListVersion extends X_M_PriceList_Version implements ImmutablePOSupport
Price List Version Model
Version:
$Id: MPriceListVersion.java,v 1.3 2006/07/30 00:51:03 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Field Details

  • Constructor Details

    • MPriceListVersion

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

      public MPriceListVersion(Properties ctx, int M_PriceList_Version_ID, String trxName)
      Standard Constructor
      Parameters:
      ctx - context
      M_PriceList_Version_ID - id
      trxName - transaction
    • MPriceListVersion

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

      public MPriceListVersion(MPriceList pl)
      Parent Constructor
      Parameters:
      pl - parent
    • MPriceListVersion

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

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

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

    • getPriceList

      public MPriceList getPriceList()
      Get Parent PriceList
      Returns:
      price List
    • getProductPrice

      public MProductPrice[] getProductPrice(boolean refresh)
      Get Product Price
      Parameters:
      refresh - true if refresh
      Returns:
      product price
    • getProductPrice

      public MProductPrice[] getProductPrice(String whereClause)
      Get Product Price
      Parameters:
      whereClause - optional where clause
      Returns:
      product price
    • setName

      public void setName()
      Set Name to Valid From Date.
      If valid from is null, set valid from to today date.
    • 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
    • markImmutable

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