|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.edg.info.sqlutil.parsql.InsertStatement
InsertStatement: an SQL INSERT statement.
Constructor Summary | |
InsertStatement(java.lang.String tableName)
Create an INSERT statement on a given table |
Method Summary | |
void |
addColumns(java.util.Vector columns)
Specifies column names. |
void |
addValueSpec(ExpSelConst valueSpec)
Specify the VALUES part or SQL sub-query of the INSERT statement |
java.util.Vector |
getColumns()
Returns vector of columns if specified in the SQL. |
SelectStatement |
getQuery()
Get the sub-query (ex. |
java.lang.String |
getTableName()
|
java.util.Vector |
getValues()
Get the VALUES part of the INSERT statement. |
ExpSelConst |
getValueSpec()
Returns the valueSpec for this INSERT statement. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public InsertStatement(java.lang.String tableName)
Method Detail |
public java.lang.String getTableName()
public void addColumns(java.util.Vector columns)
columns
- A vector of column names (Strings)public java.util.Vector getColumns()
public void addValueSpec(ExpSelConst valueSpec)
valueSpec
- An SQL expression or a SELECT statement.
If it is a list of SQL expressions, valueSpec should be represented by ONE
SQL expression with operator = "," and operands = the expressions in
the list.
If it is a SELECT statement, valueSpec should be a SelectStatement object.public ExpSelConst getValueSpec()
public java.util.Vector getValues()
public SelectStatement getQuery()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |