QueryObject
public final class Insert extends java.lang.Object implements QueryObject
Constructor | Description |
---|---|
Insert(java.lang.String name) |
Construct a SQL insert statement that inserts into the table.
|
Modifier and Type | Method | Description |
---|---|---|
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.
|
java.util.List<Assignment> |
getAssignment() |
Getter returning list of assignments currently set.
|
Qualifier |
getQualifier() |
Getter returning Qualifier currently set.
|
java.lang.String |
toString() |
Method constructing query string.
|
public Insert(java.lang.String name)
name
- Name of the table in update statement.public Qualifier getQualifier()
public java.util.List<Assignment> getAssignment()
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 void accept(Visitor visitor)
accept
in interface QueryObject
visitor
- Visitor to be handled.public java.lang.String toString()
toString
in class java.lang.Object
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com