Class MAssetClass

    • Constructor Detail

      • MAssetClass

        public MAssetClass​(Properties ctx,
                           int A_Asset_Class_ID,
                           String trxName)
      • MAssetClass

        public MAssetClass​(Properties ctx,
                           ResultSet rs,
                           String trxName)
        Load Constructor
        Parameters:
        ctx - context
        rs - result set record
      • MAssetClass

        public MAssetClass​(MAssetClass copy)
        Parameters:
        copy -
    • Method Detail

      • get

        public static MAssetClass get​(int id)
        Get Asset Class from cache
        Parameters:
        id - A_Asset_Class_ID
        Returns:
        MAssetClass or null if not found
      • get

        public static MAssetClass get​(Properties ctx,
                                      int id)
        Get Asset Class from cache
        Parameters:
        ctx - context
        id - A_Asset_Class_ID
        Returns:
        MAssetClass or null if not found
      • setDescription

        public void setDescription()
      • setLevels

        public void setLevels()
      • getA_Life_Period_Min

        public int getA_Life_Period_Min​(Timestamp serviceDate)
      • validate

        public String validate​(boolean saveError,
                               int A_Life_Period,
                               Timestamp serviceDate)
        Validate
      • validate

        public boolean validate​(org.idempiere.fa.feature.UseLifeImpl asset)
        Validate UseLifeImpl model
      • isDepreciated

        public boolean isDepreciated()
        Depreciated check
      • beforeSave

        public boolean beforeSave​(boolean newRecord)
        Description copied from class: PO
        Called before Save for Pre-Save Operation
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - new record
        Returns:
        true if record can be saved