Class MClientInfo

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

public class MClientInfo extends X_AD_ClientInfo implements ImmutablePOSupport
Client Info Model
Version:
$Id: MClientInfo.java,v 1.2 2006/07/30 00:58:37 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MClientInfo

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

      public MClientInfo(Properties ctx, int ignored, String trxName)
      Standard Constructor
      Parameters:
      ctx - context
      ignored - ignored
      trxName - transaction
    • MClientInfo

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

      public MClientInfo(MClient client, int AD_Tree_Org_ID, int AD_Tree_BPartner_ID, int AD_Tree_Project_ID, int AD_Tree_SalesRegion_ID, int AD_Tree_Product_ID, int AD_Tree_Campaign_ID, int AD_Tree_Activity_ID, String trxName)
      Parent Constructor
      Parameters:
      client - client
      AD_Tree_Org_ID - org tree
      AD_Tree_BPartner_ID - bp tree
      AD_Tree_Project_ID - project tree
      AD_Tree_SalesRegion_ID - sr tree
      AD_Tree_Product_ID - product tree
      AD_Tree_Campaign_ID - campaign tree
      AD_Tree_Activity_ID - activity tree
      trxName - transaction
    • MClientInfo

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

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

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

    • get

      public static MClientInfo get(int AD_Client_ID)
      Get Client Info from cache (immutable)
      Parameters:
      AD_Client_ID - id
      Returns:
      Client Info
    • get

      public static MClientInfo get(Properties ctx, int AD_Client_ID)
      Get Client Info from cache (immutable)
      Parameters:
      ctx - context
      AD_Client_ID - id
      Returns:
      Client Info
    • get

      public static MClientInfo get(Properties ctx, int AD_Client_ID, String trxName)
      Get Client Info from cache (immutable)
      Parameters:
      ctx - context
      AD_Client_ID - id
      trxName - optional trx
      Returns:
      Client Info
    • get

      public static MClientInfo get()
      Get optionally cached client for current context
      Returns:
      client
    • get

      public static MClientInfo get(Properties ctx)
      Get optionally cached client for context (ctx)
      Parameters:
      ctx - context
      Returns:
      client
    • getCopy

      public static MClientInfo getCopy(Properties ctx, int AD_Client_ID, String trxName)
      Get updateable copy of MClientInfo from cache
      Parameters:
      ctx -
      AD_Client_ID -
      trxName -
      Returns:
      MClientInfo
    • getMAcctSchema1

      public MAcctSchema getMAcctSchema1()
      Get primary Acct Schema
      Returns:
      acct schema
    • getC_Currency_ID

      public int getC_Currency_ID()
      Get Default Accounting Currency
      Returns:
      currency or 0
    • save

      public boolean save()
      Overwrite Save
      Specified by:
      save in interface I_Persistent
      Overrides:
      save in class PO
      Returns:
      true if saved
    • markImmutable

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