org.apache.empire.db.expr.compare
Class DBParenthesisExpr

java.lang.Object
  extended by org.apache.empire.db.DBObject
      extended by org.apache.empire.db.DBExpr
          extended by org.apache.empire.db.expr.compare.DBCompareExpr
              extended by org.apache.empire.db.expr.compare.DBParenthesisExpr
All Implemented Interfaces:
Serializable

public class DBParenthesisExpr
extends DBCompareExpr

This class wraps an existing compare expression with parenthesis.

See Also:
Serialized Form

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
DBParenthesisExpr(DBCompareExpr wrap)
           
 
Method Summary
 void addReferencedColumns(Set<DBColumn> list)
          Internal function to obtain all DBColumnExpr-objects used by this expression.
 void addSQL(StringBuilder buf, long context)
          Used to build the SQL command.
 DBDatabase getDatabase()
          Returns the database object to which this object belongs to.
 boolean isMutuallyExclusive(DBCompareExpr other)
           
 
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
 

Constructor Detail

DBParenthesisExpr

public DBParenthesisExpr(DBCompareExpr wrap)
Method Detail

getDatabase

public DBDatabase getDatabase()
Description copied from class: DBObject
Returns the database object to which this object belongs to. For the database object itself this function will return the this pointer.

Specified by:
getDatabase in class DBObject
Returns:
the database object

isMutuallyExclusive

public boolean isMutuallyExclusive(DBCompareExpr other)
Specified by:
isMutuallyExclusive in class DBCompareExpr

addReferencedColumns

public void addReferencedColumns(Set<DBColumn> list)
Description copied from class: DBExpr
Internal function to obtain all DBColumnExpr-objects used by this expression.

Specified by:
addReferencedColumns in class DBExpr
Parameters:
list - list to which all used column expressions must be added

addSQL

public void addSQL(StringBuilder buf,
                   long context)
Description copied from class: DBExpr
Used to build the SQL command. SQL for this expression must be appended to StringBuilder.

Specified by:
addSQL in class DBExpr
Parameters:
buf - the string buffer used to build the sql command
context - context flag for this SQL-Command (see CTX_??? constants).


Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.