Class MOrg

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

public class MOrg extends X_AD_Org implements ImmutablePOSupport
Organization Model
Version:
$Id: MOrg.java,v 1.3 2006/07/30 00:58:04 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MOrg

      public MOrg(Properties ctx, String AD_Org_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      AD_Org_UU - UUID key
      trxName - Transaction
    • MOrg

      public MOrg(Properties ctx, int AD_Org_ID, String trxName)
      Standard Constructor
      Parameters:
      ctx - context
      AD_Org_ID - id
      trxName - transaction
    • MOrg

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

      public MOrg(MClient client, String value, String name)
      Parent Constructor
      Parameters:
      client - client
      name - name
    • MOrg

      public MOrg(MOrg copy)
      Copy constructor
      Parameters:
      copy -
    • MOrg

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

      public MOrg(Properties ctx, MOrg copy, String trxName)
      Copy constructor
      Parameters:
      ctx -
      copy -
      trxName -
  • Method Details

    • getOfClient

      public static MOrg[] getOfClient(PO po)
      Get Active Organizations Of Client
      Parameters:
      po - PO to get AD_Client_ID value
      Returns:
      array of organization
    • getOfClient

      public static MOrg[] getOfClient()
      Get Active Organizations Of current Client
      Returns:
      array of organization
    • getOfClient

      public static MOrg[] getOfClient(int clientID)
      Get Active Organizations Of Client
      Parameters:
      clientID - AD_Client_ID
      Returns:
      array of organization
    • get

      public static MOrg get(int AD_Org_ID)
      Get Org from Cache (immutable)
      Parameters:
      AD_Org_ID - id
      Returns:
      MOrg
    • get

      public static MOrg get(Properties ctx, int AD_Org_ID)
      Get Org from Cache (immutable)
      Parameters:
      AD_Org_ID - id
      Returns:
      MOrg
    • getInfo

      public MOrgInfo getInfo()
      Get Org Info
      Returns:
      Org Info
    • afterSave

      protected boolean afterSave(boolean newRecord, boolean success)
      After Save
      Overrides:
      afterSave in class PO
      Parameters:
      newRecord - new Record
      success - save success
      Returns:
      success
    • afterDelete

      protected boolean afterDelete(boolean success)
      After Delete
      Overrides:
      afterDelete in class PO
      Parameters:
      success -
      Returns:
      deleted
    • getLinkedC_BPartner_ID

      public int getLinkedC_BPartner_ID(String trxName)
      Get Linked BPartner
      Returns:
      C_BPartner_ID
    • markImmutable

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