Class MAssetChange

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

public class MAssetChange extends X_A_Asset_Change
Asset Change Model (to record changes to asset)
Author:
Teo Sarca, SC ARHIPAC SERVICE SRL
See Also:
  • Constructor Details

    • MAssetChange

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

      public MAssetChange(Properties ctx, int A_Asset_Change_ID, String trxName)
      Default Constructor
      Parameters:
      ctx - context
      A_Asset_Change_ID -
      trxName -
    • MAssetChange

      public MAssetChange(Properties ctx, ResultSet rs, String trxName)
      Load Constructor
      Parameters:
      ctx - context
      rs - result set
  • Method Details

    • 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
    • createAddition

      public static MAssetChange createAddition(MAssetAddition assetAdd, MDepreciationWorkfile assetwk)
      Create and save new MAssetChange record
      Parameters:
      assetAdd -
      assetwk -
      Returns:
      MAssetChange
    • create

      public static MAssetChange create(Properties ctx, String changeType, PO[] pos, String trxName)
      Parameters:
      ctx -
      changeType -
      pos -
      trxName -
      Returns:
      MAssetChange
    • createAndSave

      public static MAssetChange createAndSave(Properties ctx, String changeType, PO[] pos, String trxName)
      TODO
      Parameters:
      ctx -
      changeType -
      pos -
      trxName -
      Returns:
    • create

      public static MAssetChange create(Properties ctx, String changeType, PO[] pos, boolean save, String trxName)
      Parameters:
      ctx -
      changeType -
      pos -
      save -
      trxName -
      Returns:
      MAssetChange
    • addChanges

      public void addChanges(PO po)
      TODO
      Parameters:
      po -
    • get

      public static MAssetChange get(Properties ctx, int A_Asset_ID, String changeType, String trxName, int C_AcctSchema_ID)
      Parameters:
      ctx -
      A_Asset_ID -
      changeType -
      trxName -
      C_AcctSchema_ID -
      Returns:
      MAssetChange