org.apache.empire.db
Class DBCommand.DBCommandParam

java.lang.Object
  extended by org.apache.empire.commons.ErrorObject
      extended by org.apache.empire.db.DBObject
          extended by org.apache.empire.db.DBExpr
              extended by org.apache.empire.db.DBCommand.DBCommandParam
All Implemented Interfaces:
java.io.Serializable, ErrorInfo
Enclosing class:
DBCommand

public static final class DBCommand.DBCommandParam
extends DBExpr

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.empire.commons.ErrorObject
ErrorObject.ObjectErrorInfo
 
Field Summary
protected  DBCommand cmd
           
protected  DataType type
           
protected  java.lang.Object value
           
 
Fields inherited from class org.apache.empire.db.DBExpr
CTX_ALIAS, CTX_ALL, CTX_DEFAULT, CTX_FULLNAME, CTX_NAME, CTX_NOPARENTHESES, CTX_VALUE, log
 
Constructor Summary
protected DBCommand.DBCommandParam(DBCommand cmd, DataType type, java.lang.Object value)
           
 
Method Summary
 void addReferencedColumns(java.util.Set<DBColumn> list)
          Internal function to obtain all DBColumnExpr-objects used by this expression.
 void addSQL(java.lang.StringBuilder buf, long context)
          Used to build the SQL command.
protected  java.lang.Object getCmdParamValue(java.lang.Object value)
           
 DBDatabase getDatabase()
          Returns the database object to which this object belongs to.
 DataType getDataType()
           
 java.lang.Object getValue()
           
 void setValue(java.lang.Object value)
           
 
Methods inherited from class org.apache.empire.db.DBExpr
getObjectValue, getValueClass
 
Methods inherited from class org.apache.empire.db.DBObject
error, error
 
Methods inherited from class org.apache.empire.commons.ErrorObject
clearError, clearErrorInfo, error, error, error, error, error, getErrorInfo, getErrorMessage, getErrorParams, getErrorSource, getErrorType, getMessage, hasError, internalSetError, isExceptionsEnabled, setExceptionsEnabled, success
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cmd

protected DBCommand cmd

type

protected DataType type

value

protected java.lang.Object value
Constructor Detail

DBCommand.DBCommandParam

protected DBCommand.DBCommandParam(DBCommand cmd,
                                   DataType type,
                                   java.lang.Object value)
Method Detail

getCmdParamValue

protected java.lang.Object getCmdParamValue(java.lang.Object value)

addSQL

public void addSQL(java.lang.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).

addReferencedColumns

public void addReferencedColumns(java.util.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
See Also:
DBExpr.addReferencedColumns(Set)

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

getDataType

public DataType getDataType()

getValue

public java.lang.Object getValue()

setValue

public void setValue(java.lang.Object value)


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