|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.empire.db.DBObject
org.apache.empire.db.DBExpr
public abstract class DBExpr
This abstract class is the base class for all database expression classes (e.g. DBAliasExpr or DBCalsExpr)
Field Summary | |
---|---|
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 Summary | |
---|---|
DBExpr()
|
Method Summary | |
---|---|
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 |
Methods inherited from class org.apache.empire.db.DBObject |
---|
getDatabase |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public DBExpr()
Method Detail |
---|
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 value
public static final Class getValueClass(DataType type)
type
- the data type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |