IoT CAS Frameworks/IOT_Server/Report_Generator_Framework/IT/source/DashBoard-JSONgenerator/src/com/merit/dashboard/bizlogic/BizLogic.java
public String ChangeMetricNameAsPropertyname(String dbMetricName) {

        String propertyMetricName = "";
        String[] dbMetricNameArray = dbMetricName.replaceAll("\"", "").split(",");
        for (int i = 0; i < dbMetricNameArray.length; i++) {
            propertyMetricName = propertyMetricName + ",\"" + DBUtilHelper.getMetrics_mapping_properties().getProperty(dbMetricNameArray[i]) + "\"";
        }
        propertyMetricName = "[" + propertyMetricName.substring(1) + "]";
        return propertyMetricName;

    }
/**
     * ************************************************************************************************
     * Here we are converting Metric Name Written in DataBase to User Defined
     * Easily readable format accessing from Property File
     *
     * @param dbMetricName String MetricName spell in DataBase to be changed in
     * Readable format
     * @return propertyMetricName String Readable format as written in external
     * property file
     * ************************************************************************************************
     *
     */
Here we are converting Metric Name Written in DataBase to User Defined
Easily readable format accessing from Property File

@param dbMetricName String MetricName spell in DataBase to be changed in
Readable format
@return propertyMetricName String Readable format as written in external
property file
Here we are converting Metric Name Written in DataBase to User Defined Easily readable format accessing from Property File @param dbMetricName String MetricName spell in DataBase to be changed in Readable format @return propertyMetricName String Readable format as written in external property file
public String ChangeMetricNameAsPropertyname(String dbMetricName) {
        String propertyMetricName = "";
        String[] dbMetricNameArray = dbMetricName.replaceAll("\"", "").split(",");
        for (int i = 0; i < dbMetricNameArray.length; i++) {
            propertyMetricName = propertyMetricName + ",\"" + DBUtilHelper.getMetrics_mapping_properties().getProperty(dbMetricNameArray[i]) + "\"";
        }
        propertyMetricName = "[" + propertyMetricName.substring(1) + "]";
        return propertyMetricName;
    }
public String ChangeMetricNameAsPropertyname ( String dbMetricName ) { String propertyMetricName = "" ; String [ ] dbMetricNameArray = dbMetricName . replaceAll ( "\"" , "" ) . split ( "," ) ; for ( int i = 0 ; i < dbMetricNameArray . length ; i ++ ) { propertyMetricName = propertyMetricName + ",\"" + DBUtilHelper . getMetrics_mapping_properties ( ) . getProperty ( dbMetricNameArray [ i ] ) + "\"" ; } propertyMetricName = "[" + propertyMetricName . substring ( 1 ) + "]" ; return propertyMetricName ; }
Here we are converting Metric Name Written in DataBase to User Defined
 Easily readable format accessing from Property File
Here we are converting Metric Name Written in DataBase to User Defined Easily readable format accessing from Property File