Class MAssetType

    • Method Detail

      • get

        public static MAssetType get​(int A_Asset_Type_ID)
        Get Asset Type from cache (immutable)
        Parameters:
        A_Asset_Type_ID -
        Returns:
        asset type object
      • get

        public static MAssetType get​(Properties ctx,
                                     int A_Asset_Type_ID)
        Get Asset Type from cache (immutable)
        Parameters:
        ctx - context
        A_Asset_Type_ID -
        Returns:
        asset type object
      • isFixedAsset

        public boolean isFixedAsset()
        Is Fixed Asset
      • isFixedAsset

        public static boolean isFixedAsset​(int A_Asset_ID)
      • isFixedAsset

        public static boolean isFixedAsset​(MAsset asset)
      • isFixedAssetGroup

        public static boolean isFixedAssetGroup​(Properties ctx,
                                                int A_Asset_Group_ID)
      • isInventoryObject

        public boolean isInventoryObject()
        Is Inventory Object
      • getBoolean

        protected static Boolean getBoolean​(String value,
                                            boolean useDefaults)
        Convert an Yes-No-Unknown field to Boolean
      • validate

        public static void validate​(MAssetType.Model m)
        Validate a Model
        Parameters:
        m - model
        Throws:
        ContextUserException
      • update

        public boolean update​(SetGetModel model,
                              boolean useDefaults)
        Update the given SetGetModel; Does not set A_Asset_Type_ID
        Parameters:
        model -
        useDefaults - in case is not a concrete value, use defaults