Class MExpenseType

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

public class MExpenseType extends X_S_ExpenseType
Expense Type Model
Version:
$Id: MExpenseType.java,v 1.3 2006/07/30 00:51:05 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MExpenseType

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

      public MExpenseType(Properties ctx, int S_ExpenseType_ID, String trxName)
      Default Constructor
      Parameters:
      ctx - context
      S_ExpenseType_ID - id
      trxName - transaction
    • MExpenseType

      public MExpenseType(Properties ctx, ResultSet rs, String trxName)
      MExpenseType
      Parameters:
      ctx - context
      rs - result set
      trxName - transaction
  • Method Details

    • getProduct

      public MProduct getProduct()
      Get Product
      Returns:
      first product that uses this expense type
    • 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