Package utility

Class UtilDataset


  • public class UtilDataset
    extends Object
    Utility Class for Dataset related static helper methods.
    Version:
    1.0
    Author:
    Nikunj Goyal
    • Constructor Detail

      • UtilDataset

        public UtilDataset()
    • Method Detail

      • createDatasetObjFromJson

        public static Dataset createDatasetObjFromJson​(org.json.simple.JSONObject json)
        Formulate and return a Dataset document/object based on incoming Json object.
        Parameters:
        json - JSONObject object
        Returns:
        dataset document/Object
      • checkHttpErrors

        public static void checkHttpErrors​(String errMsg,
                                           List<String> dsNames,
                                           UtilDataset.Operation type)
                                    throws Exception
        Formulate and return a more redefined error exception message based on a CRUD operation.
        Parameters:
        errMsg - error message
        dsNames - dataset representations
        type - crud type value of operation taken place
        Throws:
        Exception - with a possible customized error msg