Class MBPGroup

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

public class MBPGroup extends X_C_BP_Group implements ImmutablePOSupport
Business Partner Group Model
Version:
$Id: MBPGroup.java,v 1.4 2006/09/23 15:54:22 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MBPGroup

      public MBPGroup(Properties ctx, String C_BP_Group_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      C_BP_Group_UU - UUID key
      trxName - Transaction
    • 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)
      Copy constructor
      Parameters:
      copy -
    • MBPGroup

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

      public MBPGroup(Properties ctx, MBPGroup copy, String trxName)
      Copy constructor
      Parameters:
      ctx -
      copy -
      trxName -
    • MBPGroup

      public MBPGroup(Properties ctx, int C_BP_Group_ID, String trxName, String... virtualColumns)
      Parameters:
      ctx -
      C_BP_Group_ID -
      trxName -
      virtualColumns -
  • Method Details

    • 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 of Business Partner
      Parameters:
      ctx - context
      C_BPartner_ID - business partner id
      Returns:
      MBPGroup
    • getCreditWatchPercent

      public BigDecimal getCreditWatchPercent()
      Get Credit Watch Percent
      Specified by:
      getCreditWatchPercent in interface I_C_BP_Group
      Overrides:
      getCreditWatchPercent in class X_C_BP_Group
      Returns:
      90 or defined percent
    • 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
    • markImmutable

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