Class MProjectLine

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

public class MProjectLine extends X_C_ProjectLine
Project Line Model
Version:
$Id: MProjectLine.java,v 1.3 2006/07/30 00:51:02 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MProjectLine

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

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

      public MProjectLine(Properties ctx, int C_ProjectLine_ID, String trxName, String... virtualColumns)
      Parameters:
      ctx -
      C_ProjectLine_ID -
      trxName -
      virtualColumns -
    • MProjectLine

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

      public MProjectLine(MProject project)
      Parent Constructor
      Parameters:
      project - parent
  • Method Details

    • setMProjectIssue

      public void setMProjectIssue(MProjectIssue pi)
      Set Product, committed qty, etc.
      Parameters:
      pi - project issue
    • setC_OrderPO_ID

      public void setC_OrderPO_ID(int C_OrderPO_ID)
      Set purchase order
      Specified by:
      setC_OrderPO_ID in interface I_C_ProjectLine
      Overrides:
      setC_OrderPO_ID in class X_C_ProjectLine
      Parameters:
      C_OrderPO_ID - purchase order id
    • getProject

      public MProject getProject()
      Get Project
      Returns:
      parent
    • getLimitPrice

      public BigDecimal getLimitPrice()
      Get Limit Price if exists
      Returns:
      limit price (limit price of product or planned price of this record)
    • toString

      public String toString()
      String Representation
      Overrides:
      toString in class X_C_ProjectLine
      Returns:
      info
    • 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
    • afterSave

      protected boolean afterSave(boolean newRecord, boolean success)
      Description copied from class: PO
      Called after Save for Post-Save Operation.
      Default implementation is nop, to be implemented in sub-classes that needed it.
      Overrides:
      afterSave in class PO
      Parameters:
      newRecord - true if it is a new record
      success - true if save operation was success
      Returns:
      if save was a success
    • afterDelete

      protected boolean afterDelete(boolean success)
      Description copied from class: PO
      Execute after Delete operations.
      Default implementation is nop, to be implemented in sub-classes that needed it.
      Overrides:
      afterDelete in class PO
      Parameters:
      success - true if record deleted
      Returns:
      true if delete is a success