Class SQLParameterParser
java.lang.Object
ecmwf.common.database.SQLParameterParser
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String
The Constant CASE_INSENSITIVE.protected static final String
The Constant CASE_SENSITIVE.protected static final String[]
The Constant OPERATORS.protected static final String
The Constant TYPE_BOOLEAN.protected static final String
The Constant TYPE_BYTES.protected static final String
The Constant TYPE_DIGITS.protected static final String
The Constant TYPE_STRING. -
Constructor Summary
ConstructorsConstructorDescriptionSQLParameterParser
(String search, String defaultOption, String... otherOptions) Instantiates a new SQL parameter parser. -
Method Summary
-
Field Details
-
OPERATORS
The Constant OPERATORS. -
TYPE_STRING
-
TYPE_DIGITS
-
TYPE_BYTES
-
TYPE_BOOLEAN
-
CASE_SENSITIVE
-
CASE_INSENSITIVE
-
-
Constructor Details
-
SQLParameterParser
public SQLParameterParser(String search, String defaultOption, String... otherOptions) throws IOException Instantiates a new SQL parameter parser.- Parameters:
search
- the searchdefaultOption
- the default optionotherOptions
- the other options- Throws:
IOException
- Signals that an I/O exception has occurred.
-
-
Method Details
-
getSearch
-
isCaseSensitive
public boolean isCaseSensitive()Checks if is case sensitive.- Returns:
- true, if is case sensitive
-
remove
-
remove
-
has
public boolean has(int keyPosition) Checks for.- Parameters:
keyPosition
- the key position- Returns:
- true, if successful
-
has
-
get
Gets the.- Parameters:
keyPosition
- the key positiondataBaseFieldNames
- the data base field names- Returns:
- the string
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
get
Gets the.- Parameters:
keyName
- the key namedataBaseFieldNames
- the data base field names- Returns:
- the string
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
main
The main method.- Parameters:
args
- the arguments- Throws:
IOException
- Signals that an I/O exception has occurred.
-