Class MBankAccount

    • Constructor Detail

      • MBankAccount

        public MBankAccount​(Properties ctx,
                            int C_BankAccount_ID,
                            String trxName)
        Bank Account Model
        Parameters:
        ctx - context
        C_BankAccount_ID - bank account
        trxName - transaction
      • MBankAccount

        public MBankAccount​(Properties ctx,
                            ResultSet rs,
                            String trxName)
        Bank Account Model
        Parameters:
        ctx - context
        rs - result set
        trxName - transaction
      • MBankAccount

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

      • get

        public static MBankAccount get​(int C_BankAccount_ID)
        Get BankAccount from Cache (immutable)
        Parameters:
        C_BankAccount_ID - id
        Returns:
        MBankAccount
      • get

        public static MBankAccount get​(Properties ctx,
                                       int C_BankAccount_ID)
        Get BankAccount from Cache (immutable)
        Parameters:
        ctx - context
        C_BankAccount_ID - id
        Returns:
        MBankAccount
      • getCopy

        public static MBankAccount getCopy​(Properties ctx,
                                           int C_BankAccount_ID,
                                           String trxName)
        Get updateable copy of MBankAccount from cache
        Parameters:
        ctx -
        C_BankAccount_ID -
        trxName -
        Returns:
        MBankAccount
      • getBank

        public MBank getBank()
        Get Bank
        Returns:
        bank parent
      • beforeSave

        protected boolean beforeSave​(boolean newRecord)
        Before Save
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - new record
        Returns:
        success
      • afterSave

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