Class MBankAccount

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

public class MBankAccount extends X_C_BankAccount implements ImmutablePOSupport
Bank Account Model
Version:
$Id: MBankAccount.java,v 1.3 2006/07/30 00:51:05 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MBankAccount

      public MBankAccount(Properties ctx, String C_BankAccount_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      C_BankAccount_UU - UUID key
      trxName - Transaction
    • 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)
      Copy constructor
      Parameters:
      copy -
    • MBankAccount

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

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

    • 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 (immutable)
      Parameters:
      ctx -
      C_BankAccount_ID -
      trxName -
      Returns:
      MBankAccount
    • toString

      public String toString()
      String representation
      Overrides:
      toString in class X_C_BankAccount
      Returns:
      info
    • getBank

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

      public String getName()
      Get Bank Name and Account No
      Specified by:
      getName in interface I_C_BankAccount
      Overrides:
      getName in class X_C_BankAccount
      Returns:
      Bank/Account
    • 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
    • afterSave

      protected boolean afterSave(boolean newRecord, boolean success)
      Description copied from class: PO
      Called after Save for Post-Save Operation.
      Default implementation is nop, to be implemented in sub-classes that needed it.
      Overrides:
      afterSave in class PO
      Parameters:
      newRecord - true if it is a new record
      success - true if save operation was success
      Returns:
      if save was a success
    • markImmutable

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