Class MOrgInfo

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

public class MOrgInfo extends X_AD_OrgInfo implements ImmutablePOSupport
Organization Info Model
Version:
$Id: MOrgInfo.java,v 1.3 2006/07/30 00:58:37 jjanke Exp $
Author:
Jorg Janke, Teo Sarca, www.arhipac.ro
  • BF [ 2107083 ] Caching of MOrgInfo issue
  • See Also:
    • Constructor Details

      • MOrgInfo

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

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

        public MOrgInfo(MOrg org)
        Organization constructor
        Parameters:
        org - org
      • MOrgInfo

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

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

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

      • get

        public static MOrgInfo get(Properties ctx, int AD_Org_ID)
        Get MOrgInfo from cache (immutable)
        Parameters:
        AD_Org_ID - id
        Returns:
        MOrgInfo
      • get

        public static MOrgInfo get(int AD_Org_ID, String trxName)
        Get MOrgInfo from cache (immutable)
        Parameters:
        AD_Org_ID - id
        trxName -
        Returns:
        Org Info
      • get

        public static MOrgInfo get(int AD_Org_ID)
        Get MOrgInfo from cache (immutable)
        Parameters:
        AD_Org_ID - id
        Returns:
        Org Info
      • get

        public static MOrgInfo get(Properties ctx, int AD_Org_ID, String trxName)
        Get MOrgInfo from cache (immutable)
        Parameters:
        ctx - context
        AD_Org_ID - id
        trxName -
        Returns:
        Org Info
      • getCopy

        public static MOrgInfo getCopy(Properties ctx, int AD_Org_ID, String trxName)
        Get updateable copy of MOrgInfo from cache
        Parameters:
        ctx -
        AD_Org_ID -
        trxName -
        Returns:
        MOrgInfo
      • markImmutable

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

        protected boolean beforeSave(boolean newRecord)
        Description copied from class: PO
        Called before Save for Pre-Save Operation.
        Default implementation is nop, to be implemented in sub-classes that needed it.
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - true if it is a new record
        Returns:
        true if record can be saved