Class MProductCategoryAcct

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

public class MProductCategoryAcct extends X_M_Product_Category_Acct implements ImmutablePOSupport
Product Category Account Model
Version:
$Id: MProductCategoryAcct.java,v 1.3 2006/07/30 00:51:05 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MProductCategoryAcct

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

      public MProductCategoryAcct(Properties ctx, int ignored, String trxName)
      Standard Constructor
      Parameters:
      ctx - context
      ignored - ignored
      trxName -
    • MProductCategoryAcct

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

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

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

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

    • get

      public static MProductCategoryAcct get(int M_Product_Category_ID, int C_AcctSchema_ID)
      Get Category Acct
      Parameters:
      M_Product_Category_ID - category
      C_AcctSchema_ID - acct schema
      Returns:
      category acct
    • get

      public static MProductCategoryAcct get(int M_Product_Category_ID, int C_AcctSchema_ID, String trxName)
      Get Category Acct
      Parameters:
      M_Product_Category_ID - category
      C_AcctSchema_ID - acct schema
      trxName - trx
      Returns:
      category acct
    • get

      public static MProductCategoryAcct get(Properties ctx, int M_Product_Category_ID, int C_AcctSchema_ID, String trxName)
      Get Category Acct from cache (immutable)
      Parameters:
      ctx - context
      M_Product_Category_ID - category
      C_AcctSchema_ID - acct schema
      trxName - trx
      Returns:
      category acct
    • checkCosting

      public void checkCosting()
      Create cost element for costing method
    • 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
    • markImmutable

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

      public String toString()
      String Representation
      Overrides:
      toString in class X_M_Product_Category_Acct
      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