com.mysema.query.sql.dml
Class SQLInsertClause

java.lang.Object
  extended by com.mysema.query.sql.dml.SQLInsertClause
All Implemented Interfaces:
InsertClause<SQLInsertClause>

public class SQLInsertClause
extends Object
implements InsertClause<SQLInsertClause>

SQLInsertClause defines an INSERT INTO clause

Author:
tiwe

Constructor Summary
SQLInsertClause(Connection connection, SQLTemplates templates, PEntity<?> entity)
           
 
Method Summary
protected  void close(PreparedStatement stmt)
           
 SQLInsertClause columns(Path<?>... columns)
          Define the columns of to be populated
 long execute()
          Execute the insert clause and return the amount of inserted rows/items
 SQLInsertClause select(SubQuery<?> subQuery)
          Define the populate via subquery
 SQLInsertClause values(Object... v)
          Define the value bindings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLInsertClause

public SQLInsertClause(Connection connection,
                       SQLTemplates templates,
                       PEntity<?> entity)
Method Detail

close

protected void close(PreparedStatement stmt)

columns

public SQLInsertClause columns(Path<?>... columns)
Description copied from interface: InsertClause
Define the columns of to be populated

Specified by:
columns in interface InsertClause<SQLInsertClause>
Returns:

execute

public long execute()
Description copied from interface: InsertClause
Execute the insert clause and return the amount of inserted rows/items

Specified by:
execute in interface InsertClause<SQLInsertClause>
Returns:

select

public SQLInsertClause select(SubQuery<?> subQuery)
Description copied from interface: InsertClause
Define the populate via subquery

Specified by:
select in interface InsertClause<SQLInsertClause>
Returns:

values

public SQLInsertClause values(Object... v)
Description copied from interface: InsertClause
Define the value bindings

Specified by:
values in interface InsertClause<SQLInsertClause>
Returns:


Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.