Class MCashBook

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

public class MCashBook extends X_C_CashBook implements ImmutablePOSupport
Cash Book Model
Version:
$Id: MCashBook.java,v 1.3 2006/07/30 00:51:02 jjanke Exp $
Author:
Jorg Janke, red1 - FR: [ 2214883 ] Remove SQL code and Replace for Query
See Also:
  • Constructor Details

    • MCashBook

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

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

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

    • 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)
      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 MCashBook markImmutable()
      Description copied from interface: ImmutablePOSupport
      mark PO as immutable
      Specified by:
      markImmutable in interface ImmutablePOSupport
      Returns:
      PO