|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.castor.cpa.persistence.sql.query.Update
public final class Update
Class to generate SQL update query statements.
Note: Be aware that the SQL statement will be invalid without any assignment
of for empty compound conditions.
| Constructor Summary | |
|---|---|
Update(String name)
Construct a SQL update statement that updates records of the table provided. |
|
| Method Summary | |
|---|---|
void |
accept(Visitor visitor)
Accept method to handle incoming visitors. |
void |
addAssignment(Assignment assignment)
Appends given assignment to the list of Assignment objects. |
void |
addAssignment(Column column,
Expression value)
Appends an assignment of the given value to the given column. |
List<Assignment> |
getAssignment()
Get method returning current list of assignments. |
Condition |
getCondition()
Get condition that specifies which records to update. |
Qualifier |
getQualifier()
Get method returning qualifier currently set. |
void |
setCondition(Condition condition)
Set condition that specifies which records to update. |
String |
toString()
Method constructing query string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Update(String name)
name - Name of the table in update statement.| Method Detail |
|---|
public void addAssignment(Assignment assignment)
assignment - Assignment object added to the list of assignments that will
be appended to SET clause of sql statement.
public void addAssignment(Column column,
Expression value)
column - Column to assign the value to.value - Expression to be assigned to the column.public Condition getCondition()
public void setCondition(Condition condition)
condition - Condition that specifies which records to update.public Qualifier getQualifier()
public List<Assignment> getAssignment()
public void accept(Visitor visitor)
accept in interface QueryObjectvisitor - Visitor to be handled.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||