Class MElementValue

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

public class MElementValue extends X_C_ElementValue implements ImmutablePOSupport
Natural Account
Version:
$Id: MElementValue.java,v 1.3 2006/07/30 00:58:37 jjanke Exp $
Author:
Jorg Janke, Teo Sarca, SC ARHIPAC SERVICE SRL BF [ 1883533 ] Change to summary - valid combination issue BF [ 2320411 ] Translate "Already posted to" message
See Also:
  • Constructor Details

    • MElementValue

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

      public MElementValue(Properties ctx, int C_ElementValue_ID, String trxName)
      Standard Constructor
      Parameters:
      ctx - context
      C_ElementValue_ID - ID or 0 for new
      trxName - transaction
    • MElementValue

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

      public MElementValue(Properties ctx, String Value, String Name, String Description, String AccountType, String AccountSign, boolean IsDocControlled, boolean IsSummary, String trxName)
      Parameters:
      ctx - context
      Value - value
      Name - name
      Description - description
      AccountType - account type
      AccountSign - account sign
      IsDocControlled - doc controlled
      IsSummary - summary
      trxName - transaction
    • MElementValue

      public MElementValue(X_I_ElementValue imp)
      Import Constructor
      Parameters:
      imp - import
    • MElementValue

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

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

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

    • set

      public void set(X_I_ElementValue imp)
      Set/Update values from import
      Parameters:
      imp - import
    • isBalanceSheet

      public boolean isBalanceSheet()
      Is this a Balance Sheet Account
      Returns:
      true if this is a balance sheet account (i.e asset, liability or owner equity)
    • isActiva

      public boolean isActiva()
      Is this an asset Account
      Returns:
      true if this is an asset account
    • isPassiva

      public boolean isPassiva()
      Is this a Liability Account
      Returns:
      true this is liability or owners equity account
    • toString

      public String toString()
      User String Representation
      Overrides:
      toString in class X_C_ElementValue
      Returns:
      info value - name
    • toStringX

      public String toStringX()
      Extended String Representation
      Returns:
      info
    • 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
    • afterDelete

      protected boolean afterDelete(boolean success)
      Description copied from class: PO
      Execute after Delete operations.
      Default implementation is nop, to be implemented in sub-classes that needed it.
      Overrides:
      afterDelete in class PO
      Parameters:
      success - true if record deleted
      Returns:
      true if delete is a success
    • markImmutable

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