org.apache.ws.jaxme.sqls.impl
Class InsertStatementImpl

java.lang.Object
  extended byorg.apache.ws.jaxme.sqls.impl.StatementImpl
      extended byorg.apache.ws.jaxme.sqls.impl.SetStatementImpl
          extended byorg.apache.ws.jaxme.sqls.impl.InsertStatementImpl
All Implemented Interfaces:
InsertStatement, SetStatement, Statement

public class InsertStatementImpl
extends SetStatementImpl
implements InsertStatement

Author:
Jochen Wiedmann

Nested Class Summary
 
Nested classes inherited from class org.apache.ws.jaxme.sqls.impl.SetStatementImpl
SetStatementImpl.SetValueImpl
 
Nested classes inherited from class org.apache.ws.jaxme.sqls.SetStatement
SetStatement.SetValue
 
Method Summary
 SelectStatement getSubSelect()
          Returns a subselect previously being added with setSubSelect(SelectStatement), or null.
 void setSubSelect(SelectStatement pStatement)
          Adds a subselect; the columns returned by the subselect will be inserted.
 
Methods inherited from class org.apache.ws.jaxme.sqls.impl.SetStatementImpl
addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSetDate, addSetDate, addSetDate, addSetDateTime, addSetDateTime, addSetDateTime, addSetNull, addSetNull, addSetNull, addSetTime, addSetTime, addSetTime, getSetValues
 
Methods inherited from class org.apache.ws.jaxme.sqls.impl.StatementImpl
createFunction, getSQLFactory, getTableReference, newCase, newTableReference, setTable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.ws.jaxme.sqls.SetStatement
addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSet, addSetDate, addSetDate, addSetDate, addSetDateTime, addSetDateTime, addSetDateTime, addSetNull, addSetNull, addSetNull, addSetTime, addSetTime, addSetTime, getSetValues
 
Methods inherited from interface org.apache.ws.jaxme.sqls.Statement
createFunction, getSQLFactory, getTableReference, newCase, setTable
 

Method Detail

setSubSelect

public void setSubSelect(SelectStatement pStatement)
Description copied from interface: InsertStatement

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 ...).

Specified by:
setSubSelect in interface InsertStatement
Parameters:
pStatement - The statement being performed to create the rows being inserted.

getSubSelect

public SelectStatement getSubSelect()
Description copied from interface: InsertStatement

Returns a subselect previously being added with InsertStatement.setSubSelect(SelectStatement), or null.

Specified by:
getSubSelect in interface InsertStatement