|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xerial.db.sql.SQLUtil
public class SQLUtil
Utilities to generate SQL expressions
| Nested Class Summary | |
|---|---|
static class |
SQLUtil.QuotationType
|
| Method Summary | ||
|---|---|---|
static String |
commaSeparatedList(Collection list,
SQLUtil.QuotationType quotationType)
Generates the comma-separated string of the given data |
|
static
|
commaSeparatedList(E[] list,
SQLUtil.QuotationType quotationType)
Generates the comma-separated string of the given data |
|
static String |
doubleQuote(String input)
Adds a double quotation to the input value |
|
static String |
separatedList(Collection list,
String separator,
SQLUtil.QuotationType quotationType)
Generates the concatenation of the given elements in the list |
|
static String |
singleQuote(String input)
Adds a single quotation to the input value |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String commaSeparatedList(Collection list,
SQLUtil.QuotationType quotationType)
list - the elements to concatenatequotationType - the quotation type ( SQLUtil.QuotationType )
public static <E> String commaSeparatedList(E[] list,
SQLUtil.QuotationType quotationType)
list - the elements to concatenatequotationType - the quotation type ( SQLUtil.QuotationType )
public static String separatedList(Collection list,
String separator,
SQLUtil.QuotationType quotationType)
list - the elements to concatenateseparator - the separatorquotationType - the quotation type ( SQLUtil.QuotationType )
public static String doubleQuote(String input)
input -
public static String singleQuote(String input)
input -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
