public class DBSetExpr extends DBExpr
There is no need to explicitly create instances of this class.
Instead use DBColumn.to(Object)
factory method.
For the SQL fragment "set name="foo"
you should write: cmd.set( TABLE.NAME.to( "foo" ));
Modifier and Type | Field and Description |
---|---|
DBColumn |
column |
Object |
value |
CTX_ALIAS, CTX_ALL, CTX_DEFAULT, CTX_FULLNAME, CTX_NAME, CTX_NOPARENTHESIS, CTX_VALUE
Constructor and Description |
---|
DBSetExpr(DBColumn expr,
Object value)
Constructs a new DBSetExpr object.
|
Modifier and Type | Method and Description |
---|---|
void |
addReferencedColumns(Set<DBColumn> list)
Internal function to obtain all DBColumnExpr-objects used by this expression.
|
void |
addSQL(DBSQLBuilder sql,
long context)
Creates the SQL-Command.
|
DBSetExpr |
copy(DBCommand newCmd)
Copy Command
|
DBColumn |
getColumn() |
DBDatabase |
getDatabase()
Returns the current DBDatabase object.
|
DBRowSet |
getTable()
Returns the current Table object.
|
Object |
getValue() |
void |
setValue(Object value)
The value to which to set the column
|
checkParamNull
public final DBDatabase getDatabase()
getDatabase
in class DBObject
public DBRowSet getTable()
public DBColumn getColumn()
public Object getValue()
public void setValue(Object value)
value
- the new column valuepublic void addReferencedColumns(Set<DBColumn> list)
DBExpr
addReferencedColumns
in class DBExpr
list
- list to which all used column expressions must be addedpublic DBSetExpr copy(DBCommand newCmd)
newCmd
- the new command objectpublic void addSQL(DBSQLBuilder sql, long context)
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.