|
||||||||||
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.expr.compare.DBCompareExpr
org.apache.empire.db.expr.compare.DBExistsExpr
public class DBExistsExpr
This class is used for building up the SQL-Command for the EXISTS syntax.
Field Summary | |
---|---|
DBCommandExpr |
cmd
|
DBCompareExpr |
compareExpr
|
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 | |
---|---|
DBExistsExpr(DBCommandExpr cmd)
Constructs a DBExistsExpr object set the specified parameters to this object. |
|
DBExistsExpr(DBCommandExpr cmd,
DBCompareExpr compareExpr)
Constructs a DBExistsExpr object set the specified parameters to this object. |
Method Summary | |
---|---|
void |
addReferencedColumns(Set<DBColumn> list)
Internal function to obtain all DBColumnExpr-objects used by this expression. |
void |
addSQL(StringBuilder buf,
long context)
Creates the SQL-Command. |
DBDatabase |
getDatabase()
Returns the current DBDatabase object. |
boolean |
isMutuallyExclusive(DBCompareExpr other)
Returns wheter the constraint should replace another one or not. |
Methods inherited from class org.apache.empire.db.expr.compare.DBCompareExpr |
---|
and, not, or |
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 |
---|
public final DBCommandExpr cmd
public final DBCompareExpr compareExpr
Constructor Detail |
---|
public DBExistsExpr(DBCommandExpr cmd)
cmd
- the DBCommandExpr objectpublic DBExistsExpr(DBCommandExpr cmd, DBCompareExpr compareExpr)
cmd
- the DBCommandExpr objectcompareExpr
- The expression to append to the end of the exists statementMethod Detail |
---|
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 void addSQL(StringBuilder buf, long context)
addSQL
in class DBExpr
buf
- the SQL-Commandcontext
- the current SQL-Command context (CTX_DEFAULT, CTX_SELECT, CTX_NAME, CTX_VALUE)public boolean isMutuallyExclusive(DBCompareExpr other)
isMutuallyExclusive
in class DBCompareExpr
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |