|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.empire.commons.ErrorObject
org.apache.empire.db.DBObject
org.apache.empire.db.DBExpr
org.apache.empire.db.DBCommandExpr
org.apache.empire.db.DBCombinedCmd
public class DBCombinedCmd
This class is used for building up a partition of a SQL-Command. It handles the insert from a specified key word between two DBCommandExpr objects.
Field Summary |
---|
Fields inherited from class org.apache.empire.db.DBExpr |
---|
CTX_ALIAS, CTX_ALL, CTX_DEFAULT, CTX_FULLNAME, CTX_NAME, CTX_NOPARENTHESES, CTX_VALUE |
Constructor Summary | |
---|---|
DBCombinedCmd(DBCommandExpr left,
java.lang.String keyWord,
DBCommandExpr right)
Constructs a new DBFuncExpr object and sets the specified parameters to this object. |
Method Summary | |
---|---|
void |
addReferencedColumns(java.util.Set<DBColumn> list)
Internal function to obtain all DBColumnExpr-objects used by this expression. |
DBDatabase |
getDatabase()
Returns the current DBDatabase object. |
boolean |
getSelect(java.lang.StringBuilder buf)
Creates the SQL-Command. |
DBColumnExpr[] |
getSelectExprList()
Calls the method dbDBCommandExpr.getSelectExprList from the private variable 'left'. |
boolean |
isValid()
|
void |
orderBy(DBColumnExpr expr,
boolean desc)
This helper function adds the DBColumnExpr objects to the Vector: 'orderBy'. |
Methods inherited from class org.apache.empire.db.DBCommandExpr |
---|
addSQL, clearOrderBy, getCmdColumn, getCmdColumn, getInsertInto, getInsertInto, getSelect, intersect, orderBy, union |
Methods inherited from class org.apache.empire.db.DBExpr |
---|
getValueClass |
Methods inherited from class org.apache.empire.commons.ErrorObject |
---|
clearError, getErrorMessage, getErrorParams, getErrorSource, getErrorType, getMessage, hasError, isExceptionsEnabled, setExceptionsEnabled |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DBCombinedCmd(DBCommandExpr left, java.lang.String keyWord, DBCommandExpr right)
left
- the first DBCommandExpr objectkeyWord
- the key word between the wo DBCommandExpr objectsright
- the second DBCommandExpr objectMethod Detail |
---|
public boolean isValid()
isValid
in class DBCommandExpr
public DBDatabase getDatabase()
getDatabase
in class DBObject
public void addReferencedColumns(java.util.Set<DBColumn> list)
DBExpr
addReferencedColumns
in class DBExpr
list
- list to which all used column expressions must be addedDBExpr.addReferencedColumns(Set)
public DBColumnExpr[] getSelectExprList()
getSelectExprList
in class DBCommandExpr
DBCommandExpr.getSelectExprList()
public boolean getSelect(java.lang.StringBuilder buf)
getSelect
in class DBCommandExpr
buf
- the SQL-Command
public void orderBy(DBColumnExpr expr, boolean desc)
orderBy
in class DBCommandExpr
expr
- the first DBColumnExpr objectdesc
- an boolean value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |