Class MProductCategory

    • Constructor Detail

      • 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)
        Parameters:
        copy -
    • Method Detail

      • 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 has category
      • 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:
        boolean