Package org.apache.empire.db
Class DBExpr
java.lang.Object
org.apache.empire.db.DBObject
org.apache.empire.db.DBExpr
- Direct Known Subclasses:
DBCmdParam,DBColumnExpr,DBCommandExpr,DBCompareExpr,DBGeneratedValue,DBJoinExpr,DBOrderByExpr,DBRowSet,DBSetExpr
This abstract class is the base class for all database expression classes (e.g. DBAliasExpr or DBCalsExpr)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaddReferencedColumns(Set<DBColumn> list) Internal function to obtain all DBColumnExpr-objects used by this expression.abstract voidaddSQL(DBSQLBuilder sql, long context) Used to build the SQL command.Methods inherited from class org.apache.empire.db.DBObject
checkParamNull, getDatabase
-
Field Details
-
CTX_DEFAULT
public static final long CTX_DEFAULT- See Also:
-
CTX_ALL
public static final long CTX_ALL- See Also:
-
CTX_NAME
public static final long CTX_NAME- See Also:
-
CTX_FULLNAME
public static final long CTX_FULLNAME- See Also:
-
CTX_VALUE
public static final long CTX_VALUE- See Also:
-
CTX_ALIAS
public static final long CTX_ALIAS- See Also:
-
CTX_NOPARENTHESIS
public static final long CTX_NOPARENTHESIS- See Also:
-
-
Constructor Details
-
DBExpr
public DBExpr()
-
-
Method Details
-
addSQL
Used to build the SQL command. SQL for this expression must be appended to StringBuilder.- Parameters:
sql- the string buffer used to build the sql commandcontext- context flag for this SQL-Command (see CTX_??? constants).
-
addReferencedColumns
Internal function to obtain all DBColumnExpr-objects used by this expression.- Parameters:
list- list to which all used column expressions must be added
-