IoT DAS Frameworks - IT Infra Monitoring and Analytics/IOT_Applications/Performance_Dashboard_Application(Reference App)/source/SA-DashBoard/src/java/com/merit/dashboard/util/PropertyUtil.java
public static HashMap<String, String> createMapFromProperty() {
        try {
            Properties properties = DBUtilHelper.getMetrics_mapping_properties();
            for (String key : properties.stringPropertyNames())
                reverseMapping_Properties.put(properties.getProperty(key), key);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return reverseMapping_Properties;

    }
/**
     * ************************************************************************************************
     * This method is for creating HashMap that contains values as key and keys
     * as values of external property files that will be useful when you click
     * on chart according to this summayGrid should be filled In this case we
     * are passing the name of metrictype that we have already changed so this
     * name is not same as database having. so this name will not execute in
     * query that's why we are reversing the property files and storing as once
     * and many times.
     * *************************************************************************************************
     */
This method is for creating HashMap that contains values as key and keys
as values of external property files that will be useful when you click
on chart according to this summayGrid should be filled In this case we
are passing the name of metrictype that we have already changed so this
name is not same as database having. so this name will not execute in
query that's why we are reversing the property files and storing as once
and many times.
This method is for creating HashMap that contains values as key and keys as values of external property files that will be useful when you click on chart according to this summayGrid should be filled In this case we are passing the name of metrictype that we have already changed so this name is not same as database having . so this name will not execute in query that ' s why we are reversing the property files and storing as once and many times .
public static HashMap<String, String> createMapFromProperty() {
        try {
            Properties properties = DBUtilHelper.getMetrics_mapping_properties();
            for (String key : properties.stringPropertyNames())
                reverseMapping_Properties.put(properties.getProperty(key), key);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return reverseMapping_Properties;
    }
public static HashMap < String , String > createMapFromProperty ( ) { try { Properties properties = DBUtilHelper . getMetrics_mapping_properties ( ) ; for ( String key : properties . stringPropertyNames ( ) ) reverseMapping_Properties . put ( properties . getProperty ( key ) , key ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } return reverseMapping_Properties ; }
This method is for creating HashMap that contains values as key and keys
 as values of external property files that will be useful when you click
 on chart according to this summayGrid should be filled In this case we
 are passing the name of metrictype that we have already changed so this
 name is not same as database having.
This method is for creating HashMap that contains values as key and keys as values of external property files that will be useful when you click on chart according to this summayGrid should be filled In this case we are passing the name of metrictype that we have already changed so this name is not same as database having .