Class QueryUtils
java.lang.Object
org.sqlite.util.QueryUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringEscapes a value for use between the given SQL quote characters, by doubling every occurrence of the quote character.static StringquoteIdentifier(String val) Quotes a value as a SQLite identifier, so that it is always read as a single identifier.static StringBuild a SQLite query using the VALUES clause to return arbitrary values.
-
Constructor Details
-
QueryUtils
public QueryUtils()
-
-
Method Details
-
escape
Escapes a value for use between the given SQL quote characters, by doubling every occurrence of the quote character.- Parameters:
val- the value to escape, may be nullquote- the quote character the value will be wrapped in,'for a string literal or"for an identifier- Returns:
- the escaped value, or null if
valis null
-
quoteIdentifier
-
valuesQuery
-