|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gibello.zql.ZInsert
public class ZInsert
ZInsert: an SQL INSERT statement
Constructor Summary | |
---|---|
ZInsert(java.lang.String tab)
Create an INSERT statement on a given table |
Method Summary | |
---|---|
void |
addColumns(java.util.Vector c)
Specify which columns to insert |
void |
addValueSpec(ZExp e)
Specify the VALUES part or SQL sub-query of the INSERT statement |
java.util.Vector |
getColumns()
Get the columns involved in the INSERT statement. |
ZQuery |
getQuery()
Get the sub-query (ex. in INSERT INTO table1 SELECT * FROM table2;, the sub-query is SELECT * FROM table2;) |
java.lang.String |
getTable()
Get the name of the table involved in the INSERT statement. |
java.util.Vector |
getValues()
Get the VALUES part of the INSERT statement |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ZInsert(java.lang.String tab)
Method Detail |
---|
public java.lang.String getTable()
public java.util.Vector getColumns()
public void addColumns(java.util.Vector c)
c
- A vector of column names (Strings)public void addValueSpec(ZExp e)
e
- An SQL expression or a SELECT statement.
If it is a list of SQL expressions, e should be represented by ONE
SQL expression with operator = "," and operands = the expressions in
the list.
If it is a SELECT statement, e should be a ZQuery object.public java.util.Vector getValues()
public ZQuery getQuery()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |