org.apache.ws.jaxme.sqls

Interface InsertStatement

public interface InsertStatement extends SetStatement

Interface of an INSERT statement.

Author: Jochen Wiedmann

Method Summary
SelectStatementgetSubSelect()

Returns a subselect previously being added with setSubSelect, or null.

voidsetSubSelect(SelectStatement pStatement)

Adds a subselect; the columns returned by the subselect will be inserted.

Method Detail

getSubSelect

public SelectStatement getSubSelect()

Returns a subselect previously being added with setSubSelect, or null.

setSubSelect

public void setSubSelect(SelectStatement pStatement)

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.