public abstract class DBExpr extends DBObject
Modifier and Type | Field and Description |
---|---|
static long |
CTX_ALIAS |
static long |
CTX_ALL |
static long |
CTX_DEFAULT |
static long |
CTX_FULLNAME |
static long |
CTX_NAME |
static long |
CTX_NOPARENTHESES |
static long |
CTX_VALUE |
Constructor and Description |
---|
DBExpr() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addReferencedColumns(Set<DBColumn> list)
Internal function to obtain all DBColumnExpr-objects used by this expression.
|
abstract void |
addSQL(StringBuilder buf,
long context)
Used to build the SQL command.
|
protected String |
getObjectValue(DataType dataType,
Object value,
long context,
String arraySep)
Returns the sql representation of a value.
|
static Class |
getValueClass(DataType type)
Returns the java class type for a given dataType
|
getDatabase
public static final long CTX_DEFAULT
public static final long CTX_ALL
public static final long CTX_NAME
public static final long CTX_FULLNAME
public static final long CTX_VALUE
public static final long CTX_ALIAS
public static final long CTX_NOPARENTHESES
public abstract void addSQL(StringBuilder buf, long context)
buf
- the string buffer used to build the sql commandcontext
- context flag for this SQL-Command (see CTX_??? constants).public abstract void addReferencedColumns(Set<DBColumn> list)
list
- list to which all used column expressions must be addedprotected String getObjectValue(DataType dataType, Object value, long context, String arraySep)
dataType
- the DataTypevalue
- an DBExpr object, array or a basis data type(e.g. int, String)context
- the context of the DBColumnExpr objectarraySep
- the separator valueCopyright © 2008–2015 Apache Software Foundation. All rights reserved.