Class SQLParameterParser

java.lang.Object
ecmwf.common.database.SQLParameterParser

public class SQLParameterParser extends Object
The Class SQLParameterParser.
  • Field Details

  • Constructor Details

    • SQLParameterParser

      public SQLParameterParser(String search, String defaultOption, String... otherOptions) throws IOException
      Instantiates a new SQL parameter parser.
      Parameters:
      search - the search
      defaultOption - the default option
      otherOptions - the other options
      Throws:
      IOException - Signals that an I/O exception has occurred.
  • Method Details

    • getSearch

      public String getSearch()
      Gets the search.
      Returns:
      the search
    • isCaseSensitive

      public boolean isCaseSensitive()
      Checks if is case sensitive.
      Returns:
      true, if is case sensitive
    • remove

      public List<Map.Entry<String,String>> remove(int keyPosition)
      Removes the.
      Parameters:
      keyPosition - the key position
      Returns:
      the list
    • remove

      public List<Map.Entry<String,String>> remove(String keyName)
      Removes the.
      Parameters:
      keyName - the key name
      Returns:
      the list
    • has

      public boolean has(int keyPosition)
      Checks for.
      Parameters:
      keyPosition - the key position
      Returns:
      true, if successful
    • has

      public boolean has(String key)
      Checks for.
      Parameters:
      key - the key
      Returns:
      true, if successful
    • get

      public String get(int keyPosition, String... dataBaseFieldNames) throws IOException
      Gets the.
      Parameters:
      keyPosition - the key position
      dataBaseFieldNames - the data base field names
      Returns:
      the string
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • get

      public String get(String keyName, String... dataBaseFieldNames) throws IOException
      Gets the.
      Parameters:
      keyName - the key name
      dataBaseFieldNames - the data base field names
      Returns:
      the string
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • main

      public static void main(String[] args) throws IOException
      The main method.
      Parameters:
      args - the arguments
      Throws:
      IOException - Signals that an I/O exception has occurred.