public class SQLValue extends Object implements SQLFragment
Modifier and Type | Class and Description |
---|---|
static class |
SQLValue.ValueType
An internal Enumeration to denote the types of values a
SQLValue can represent |
Modifier and Type | Field and Description |
---|---|
static SQLValue |
INSERT_VALUE |
Modifier | Constructor and Description |
---|---|
protected |
SQLValue(SQLValue.ValueType type,
String... values) |
Modifier and Type | Method and Description |
---|---|
static SQLValue[] |
columnList(String tableName,
String... columnNames)
Convenience method to create a list of
SQLValue s representing columns from one table |
static SQLValue |
integerValue(long longValue)
Creates a
SQLValue representing a long constant. |
static SQLValue |
stringValue(String value)
Creates a
SQLValue representing a string constant. |
static SQLValue |
tableColumn(String tableName,
String columnName)
Create a
SQLValue representation of an arbitrary table column |
String |
toSQL(SQLDialect dialect) |
static SQLValue[] |
valueList(SQLValue... values)
Convenience method to create a list of
SQLValue s |
public static final SQLValue INSERT_VALUE
protected SQLValue(SQLValue.ValueType type, String... values)
public static SQLValue integerValue(long longValue)
SQLValue
representing a long constant.longValue
- public static SQLValue stringValue(String value)
SQLValue
representing a string constant.value
- public static SQLValue tableColumn(String tableName, String columnName)
SQLValue
representation of an arbitrary table columntableName
- columnName
- public static SQLValue[] valueList(SQLValue... values)
SQLValue
svalues
- public static SQLValue[] columnList(String tableName, String... columnNames)
SQLValue
s representing columns from one tabletableName
- columnNames
- public String toSQL(SQLDialect dialect)
toSQL
in interface SQLFragment
Copyright © 2017 Clazzes.org. All rights reserved.