|
||||||||||
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
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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.empire.db.DBCommandExpr |
---|
DBCommandExpr.DBCmdColumn, DBCommandExpr.DBCmdQuery |
Field Summary | |
---|---|
protected String |
keyWord
|
protected DBCommandExpr |
left
|
protected DBCommandExpr |
right
|
Fields inherited from class org.apache.empire.db.DBCommandExpr |
---|
cmdQuery, orderBy |
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,
String keyWord,
DBCommandExpr right)
Constructs a new DBFuncExpr object and sets the specified parameters to this object. |
Method Summary | |
---|---|
void |
addReferencedColumns(Set<DBColumn> list)
Internal function to obtain all DBColumnExpr-objects used by this expression. |
DBDatabase |
getDatabase()
Returns the current DBDatabase object. |
Object[] |
getParamValues()
Returns the list of parameter values for a prepared statement. |
void |
getSelect(StringBuilder buf)
Creates the SQL-Command. |
DBColumnExpr[] |
getSelectExprList()
Calls the method dbDBCommandExpr.getSelectExprList from the private variable 'left'. |
boolean |
isValid()
|
void |
orderBy(DBOrderByExpr... exprs)
Adds an order by expression the command |
Methods inherited from class org.apache.empire.db.DBCommandExpr |
---|
addListExpr, addSQL, clearLimit, clearOrderBy, getCmdColumn, getInsertInto, getInsertInto, getInsertInto, getSelect, intersect, limitRows, orderBy, orderBy, skipRows, union |
Methods inherited from class org.apache.empire.db.DBExpr |
---|
getObjectValue, getValueClass |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DBCommandExpr left
protected DBCommandExpr right
protected String keyWord
Constructor Detail |
---|
public DBCombinedCmd(DBCommandExpr left, String keyWord, DBCommandExpr right)
left
- the first DBCommandExpr objectkeyWord
- the key word between the two DBCommandExpr objectsright
- the second DBCommandExpr objectMethod Detail |
---|
public boolean isValid()
isValid
in class DBCommandExpr
public DBDatabase getDatabase()
getDatabase
in class DBObject
public void addReferencedColumns(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 Object[] getParamValues()
getParamValues
in class DBCommandExpr
public void getSelect(StringBuilder buf)
getSelect
in class DBCommandExpr
buf
- the SQL-Commandpublic void orderBy(DBOrderByExpr... exprs)
DBCommandExpr
orderBy
in class DBCommandExpr
exprs
- vararg of orderBy expressionsDBCommandExpr.orderBy(DBColumnExpr, boolean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |