Class MAssetGroupAcct

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_A_Asset_Group_Acct, I_Persistent, SetGetModel, Evaluatee, org.idempiere.fa.feature.UseLife

public class MAssetGroupAcct extends X_A_Asset_Group_Acct implements org.idempiere.fa.feature.UseLife
Asset Group Accounting Model
Author:
Teo Sarca, SC ARHIPAC SERVICE SRL
See Also:
  • Constructor Details

    • MAssetGroupAcct

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

      public MAssetGroupAcct(Properties ctx, int X_A_Asset_Group_Acct_ID, String trxName)
      Default ConstructorX_A_Asset_Group_Acct
      Parameters:
      ctx - context
      X_A_Asset_Group_Acct_ID - id
    • MAssetGroupAcct

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

    • forA_Asset_Group_ID

      public static List<MAssetGroupAcct> forA_Asset_Group_ID(Properties ctx, int A_Asset_Group_ID)
      Deprecated.
      use the version with postingType and trxName
      Parameters:
      ctx -
      A_Asset_Group_ID -
      Returns:
    • forA_Asset_Group_ID

      public static List<MAssetGroupAcct> forA_Asset_Group_ID(Properties ctx, int A_Asset_Group_ID, String postingType)
      Deprecated.
      use the version with trxName
      Parameters:
      ctx -
      A_Asset_Group_ID -
      postingType -
      Returns:
    • forA_Asset_Group_ID

      public static List<MAssetGroupAcct> forA_Asset_Group_ID(Properties ctx, int A_Asset_Group_ID, String postingType, String trxName)
      Get Asset Group Accountings for given group
      Parameters:
      ctx -
      A_Asset_Group_ID -
      postingType -
      trxName -
      Returns:
      list of MAssetGroupAcct
    • getParent

      public MAssetGroup getParent()
      Get Asset Group
      Returns:
      MAssetGroup
    • getAssetServiceDate

      public Timestamp getAssetServiceDate()
      Specified by:
      getAssetServiceDate in interface org.idempiere.fa.feature.UseLife
    • copy

      public MAssetGroupAcct copy(MAssetGroup grp)
      Clone this object, using specified group
      Parameters:
      grp - the new asset group
      Returns:
      new asset group accounting (NOTE: it's not saved)
    • beforeSave

      public 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
    • set_AttrValue

      public boolean set_AttrValue(String ColumnName, Object value)
      Description copied from interface: SetGetModel
      Set column value
      Specified by:
      set_AttrValue in interface SetGetModel
      Parameters:
      ColumnName - column name
      Returns:
      true if successfully set
    • get_AttrValue

      public Object get_AttrValue(String ColumnName)
      Description copied from interface: SetGetModel
      Get column value
      Specified by:
      get_AttrValue in interface SetGetModel
      Parameters:
      ColumnName - column name
      Returns:
      column value
    • is_AttrValueChanged

      public boolean is_AttrValueChanged(String ColumnName)
      Description copied from interface: SetGetModel
      Is column change
      Specified by:
      is_AttrValueChanged in interface SetGetModel
      Returns:
      true if column has change
    • forA_Asset_Group_ID

      public static MAssetGroupAcct forA_Asset_Group_ID(Properties ctx, int A_Asset_Group_ID, String postingType, int C_AcctSchema_ID)
      Get Asset Group Accountings for given group
      Parameters:
      ctx -
      A_Asset_Group_ID -
      postingType -
      C_AcctSchema_ID -
      Returns:
      MAssetGroupAcct