Class MCashBook

    • Constructor Detail

      • MCashBook

        public MCashBook​(Properties ctx,
                         int C_CashBook_ID,
                         String trxName)
        Standard Constructor
        Parameters:
        ctx - context
        C_CashBook_ID - id
        trxName - transaction
      • MCashBook

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

        public MCashBook​(MCashBook copy)
        Parameters:
        copy -
    • Method Detail

      • get

        public static MCashBook get​(int C_CashBook_ID)
        Get MCashBook from Cache (immutable))
        Parameters:
        C_CashBook_ID - id
        Returns:
        MCashBook
      • get

        public static MCashBook get​(Properties ctx,
                                    int C_CashBook_ID)
        Get MCashBook from Cache (immutable)
        Parameters:
        ctx - context
        C_CashBook_ID - id
        Returns:
        MCashBook
      • get

        public static MCashBook get​(Properties ctx,
                                    int C_CashBook_ID,
                                    String trxName)
        Gets MCashBook from Cache (immutabble)
        Parameters:
        ctx - context
        C_CashBook_ID - id of cashbook to load
        trxName - transaction to load mcashbook if it is not in cache
        Returns:
        Cashbook
      • getCopy

        public static MCashBook getCopy​(Properties ctx,
                                        int C_CashBook_ID,
                                        String trxName)
        Get updateable copy of MCashBook from cache
        Parameters:
        ctx -
        C_CashBook_ID -
        trxName -
        Returns:
        MCashBook
      • get

        public static MCashBook get​(Properties ctx,
                                    int AD_Org_ID,
                                    int C_Currency_ID)
        Get CashBook for Org and Currency
        Parameters:
        ctx - context
        AD_Org_ID - org
        C_Currency_ID - currency
        Returns:
        cash book or null
      • afterSave

        protected boolean afterSave​(boolean newRecord,
                                    boolean success)
        After Save
        Overrides:
        afterSave in class PO
        Parameters:
        newRecord - new
        success - success
        Returns:
        success