Class MCommission

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

public class MCommission extends X_C_Commission
Model for Commission. (has Lines)
Version:
$Id: MCommission.java,v 1.3 2006/07/30 00:51:02 jjanke Exp $
Author:
Jorg Janke, victor.perez@e-evolution.com www.e-evolution.com [ 1867477 ] https://sourceforge.net/p/adempiere/bugs/924/ FR: [ 2214883 ] Remove SQL code and Replace for Query - red1
See Also:
  • Constructor Details

    • MCommission

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

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

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

      public MCommission(Properties ctx, int C_Commission_ID, String trxName, String... virtualColumns)
      Parameters:
      ctx -
      C_Commission_ID -
      trxName -
      virtualColumns -
  • Method Details

    • getLines

      public MCommissionLine[] getLines()
      Get Lines
      Returns:
      array of lines
    • setDateLastRun

      public void setDateLastRun(Timestamp DateLastRun)
      Set Date Last Run
      Specified by:
      setDateLastRun in interface I_C_Commission
      Overrides:
      setDateLastRun in class X_C_Commission
      Parameters:
      DateLastRun - date
    • copyLinesFrom

      public int copyLinesFrom(MCommission otherCom)
      Copy Lines From other Commission
      Parameters:
      otherCom - commission
      Returns:
      number of lines copied
    • 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