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)
      Before Save
      Overrides:
      beforeSave in class PO
      Parameters:
      newRecord - new
      Returns:
      true
    • afterSave

      protected boolean afterSave(boolean newRecord, boolean success)
      After Save
      Overrides:
      afterSave in class PO
      Parameters:
      newRecord - new
      success - success
      Returns:
      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