Class MPOS

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

public class MPOS extends X_C_POS implements ImmutablePOSupport
POS Terminal definition
Version:
$Id: MPOS.java,v 1.3 2006/07/30 00:51:05 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MPOS

      public MPOS(Properties ctx, String C_POS_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      C_POS_UU - UUID key
      trxName - Transaction
    • MPOS

      public MPOS(Properties ctx, int C_POS_ID, String trxName)
      Standard Constructor
      Parameters:
      ctx - context
      C_POS_ID - id
      trxName - transaction
    • MPOS

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

      public MPOS(MPOS copy)
      Copy constructor
      Parameters:
      copy -
    • MPOS

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

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

    • get

      public static MPOS get(int C_POS_ID)
      Get POS from Cache (immutable)
      Parameters:
      C_POS_ID - id
      Returns:
      MPOS
    • get

      public static MPOS get(Properties ctx, int C_POS_ID)
      Get POS from Cache (immutable)
      Parameters:
      ctx - context
      C_POS_ID - id
      Returns:
      MPOS
    • getAll

      public static MPOS[] getAll(Properties ctx, String field, int ID)
      Get POS records for passed argument
      Parameters:
      ctx - context
      field - column name
      ID - id value for field
      Returns:
      array of MPOS
    • 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
    • getBPartner

      public MBPartner getBPartner()
      Get template Cash BPartner
      Returns:
      BPartner
    • markImmutable

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

      public String toString()
      Description copied from class: PO
      String representation
      Overrides:
      toString in class X_C_POS
      Returns:
      String representation