Class MProductCategory

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

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

    • MProductCategory

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

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

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

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

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

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

    • get

      public static MProductCategory get(int M_Product_Category_ID)
      Get from Cache (immutable)
      Parameters:
      M_Product_Category_ID - id
      Returns:
      category
    • get

      public static MProductCategory get(Properties ctx, int M_Product_Category_ID)
      Get from Cache (immutable)
      Parameters:
      ctx - context
      M_Product_Category_ID - id
      Returns:
      category
    • isCategory

      public static boolean isCategory(int M_Product_Category_ID, int M_Product_ID)
      Is Product in Category
      Parameters:
      M_Product_Category_ID - category
      M_Product_ID - product
      Returns:
      true if product is with M_Product_Category_ID
    • 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
    • isFiFo

      public boolean isFiFo()
      FiFo Material Movement Policy
      Returns:
      true if FiFo
    • hasLoopInTree

      public boolean hasLoopInTree()
      Loop detection of product category tree.
      Returns:
      true if loop detected
    • markImmutable

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