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()
      Check Costing Setup
    • afterSave

      protected boolean afterSave(boolean newRecord, boolean success)
      After Save
      Overrides:
      afterSave in class PO
      Parameters:
      newRecord - new
      success - success
      Returns:
      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
      Overrides:
      beforeSave in class PO
      Parameters:
      newRecord - new record
      Returns:
      true if record can be saved