org.apache.ws.jaxme.sqls
public interface InsertStatement extends SetStatement
Interface of an INSERT statement.
Method Summary | |
---|---|
SelectStatement | getSubSelect() Returns a subselect previously being added with {@link #setSubSelect(SelectStatement)}, or null. |
void | setSubSelect(SelectStatement pStatement) Adds a subselect; the columns returned by the subselect will be inserted. |
Returns a subselect previously being added with {@link #setSubSelect(SelectStatement)}, or null.
Adds a subselect; the columns returned by the subselect
will be inserted. This is used for bulk inserts like
INSERT INTO foo (col1, col2, col2) (SELECT * FROM ...)
.
Parameters: pStatement The statement being performed to create the rows being inserted.