org.apache.empire.db
Class DBCommand.DBCommandParam
java.lang.Object
org.apache.empire.db.DBObject
org.apache.empire.db.DBExpr
org.apache.empire.db.DBCommand.DBCommandParam
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- DBCommand
public static final class DBCommand.DBCommandParam
- extends DBExpr
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cmd
protected DBCommand cmd
type
protected DataType type
value
protected Object value
DBCommand.DBCommandParam
protected DBCommand.DBCommandParam(DBCommand cmd,
DataType type,
Object value)
getCmdParamValue
protected Object getCmdParamValue(Object value)
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 commandcontext
- context flag for this SQL-Command (see CTX_??? constants).
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- 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 Object getValue()
setValue
public void setValue(Object value)
Copyright © 2008-2011 Apache Software Foundation. All Rights Reserved.