Class MBPGroup

    • Constructor Detail

      • MBPGroup

        public MBPGroup​(Properties ctx,
                        int C_BP_Group_ID,
                        String trxName)
        Standard Constructor
        Parameters:
        ctx - context
        C_BP_Group_ID - id
        trxName - transaction
      • MBPGroup

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

        public MBPGroup​(MBPGroup copy)
        Parameters:
        copy -
    • Method Detail

      • get

        public static MBPGroup get​(int C_BP_Group_ID)
        Get MBPGroup from Cache (immutable)
        Parameters:
        C_BP_Group_ID - id
        Returns:
        MBPGroup
      • get

        public static MBPGroup get​(Properties ctx,
                                   int C_BP_Group_ID)
        Get MBPGroup from Cache (immutable)
        Parameters:
        ctx - context
        C_BP_Group_ID - id
        Returns:
        MBPGroup
      • get

        public static MBPGroup get​(Properties ctx,
                                   int C_BP_Group_ID,
                                   String trxName)
        Get MBPGroup from cache (immutable)
        Parameters:
        ctx -
        C_BP_Group_ID -
        trxName -
        Returns:
        MBPGroup
      • getCopy

        public static MBPGroup getCopy​(Properties ctx,
                                       int C_BP_Group_ID,
                                       String trxName)
        Get updateable copy of MBPGroup from cache
        Parameters:
        ctx -
        C_BP_Group_ID -
        trxName -
        Returns:
        MBPGroup
      • getDefault

        public static MBPGroup getDefault​(Properties ctx)
        Get Default MBPGroup
        Parameters:
        ctx - context
        Returns:
        MBPGroup
      • getOfBPartner

        public static MBPGroup getOfBPartner​(Properties ctx,
                                             int C_BPartner_ID)
        Get MBPGroup from Business Partner
        Parameters:
        ctx - context
        C_BPartner_ID - business partner id
        Returns:
        MBPGroup
      • getCreditWatchRatio

        public BigDecimal getCreditWatchRatio()
        Get Credit Watch Ratio
        Returns:
        0.90 or defined percent
      • 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
      • afterSave

        protected boolean afterSave​(boolean newRecord,
                                    boolean success)
        After Save
        Overrides:
        afterSave in class PO
        Parameters:
        newRecord - new record
        success - success
        Returns:
        success