Class MElement

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

public class MElement extends X_C_Element
Accounting Element Model.
Version:
$Id: MElement.java,v 1.3 2006/07/30 00:58:04 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MElement

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

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

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

      public MElement(MClient client, String Name, String ElementType, int AD_Tree_ID)
      Parameters:
      client - client
      Name - name
      ElementType - type
      AD_Tree_ID - tree
  • Method Details

    • getTree

      public X_AD_Tree getTree()
      Get Tree
      Returns:
      tree
    • 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