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
    • 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
    • markImmutable

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