Class MOrg

    • Constructor Detail

      • 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)
        Parameters:
        copy -
      • MOrg

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

        public MOrg​(Properties ctx,
                    MOrg copy,
                    String trxName)
        Parameters:
        ctx -
        copy -
        trxName -
    • Method Detail

      • getOfClient

        public static MOrg[] getOfClient​(PO po)
        Get Active Organizations Of Client
        Parameters:
        po - persistent object
        Returns:
        array of orgs
      • 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