Class DataSourceUtils

java.lang.Object
de.xima.fc.web.common.utils.DataSourceUtils

public class DataSourceUtils extends Object
Author:
XIMA MEDIA GmbH
  • Field Details

  • Method Details

    • getCSVParameterString

      public static final String getCSVParameterString(boolean firstRowIsHeader)
      Puts the given parameters in a JSON string and returns it
      Parameters:
      firstRowIsHeader - Boolean whether or not the first line of the CSV data should be interpreted as a header
      Returns:
      String in JSON format
    • getFirstRowIsHeader

      public static final boolean getFirstRowIsHeader(String jsonString)
      Gets the parameter that determines whether the first line of the CSV data should be interpreted as header. (This should be updated to return an object if more parameters are supposed to be stored inside the parameter string)
      Parameters:
      jsonString - String in JSON format storing the parameters of the data source
      Returns:
      Boolean whether or not the first line of the CSV data should be interpreted as a header