| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mysema.query.sql.dml.AbstractSQLClause
com.mysema.query.sql.dml.SQLInsertClause
public class SQLInsertClause
SQLInsertClause defines an INSERT INTO clause
| Field Summary | 
|---|
| Fields inherited from class com.mysema.query.sql.dml.AbstractSQLClause | 
|---|
configuration | 
| Constructor Summary | |
|---|---|
SQLInsertClause(Connection connection,
                Configuration configuration,
                RelationalPath<?> entity)
 | 
|
SQLInsertClause(Connection connection,
                SQLTemplates templates,
                RelationalPath<?> entity)
 | 
|
| Method Summary | ||
|---|---|---|
 SQLInsertClause | 
addBatch()
Add the current state of bindings as a batch item  | 
|
 SQLInsertClause | 
addFlag(QueryFlag.Position position,
        String flag)
Add the given String literal at the given position as a query flag  | 
|
protected  void | 
close(PreparedStatement stmt)
 | 
|
protected  void | 
close(ResultSet rs)
 | 
|
 SQLInsertClause | 
columns(Path<?>... columns)
Define the columns to be populated  | 
|
 long | 
execute()
Execute the clause and return the amount of affected rows  | 
|
 | 
executeWithKey(Path<T> path)
Execute the clause and return the generated key with the type of the given path  | 
|
 ResultSet | 
executeWithKeys()
Execute the clause and return the generated keys as a ResultSet  | 
|
 | 
executeWithKeys(Path<T> path)
Execute the clause and return the generated keys with the type of the given path  | 
|
 SQLInsertClause | 
populate(Object bean)
Populate the INSERT clause with the properties of the given bean.  | 
|
 SQLInsertClause | 
select(SubQueryExpression<?> sq)
Define the populate via subquery  | 
|
 | 
set(Path<T> path,
    Expression<? extends T> expression)
Add an expression binding  | 
|
 | 
set(Path<T> path,
    T value)
Add a value binding  | 
|
 | 
setNull(Path<T> path)
Bind the given path to null  | 
|
 String | 
toString()
 | 
|
 SQLInsertClause | 
values(Object... v)
Define the value bindings  | 
|
| Methods inherited from class com.mysema.query.sql.dml.AbstractSQLClause | 
|---|
setParameters | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public SQLInsertClause(Connection connection,
                       SQLTemplates templates,
                       RelationalPath<?> entity)
public SQLInsertClause(Connection connection,
                       Configuration configuration,
                       RelationalPath<?> entity)
| Method Detail | 
|---|
public SQLInsertClause addFlag(QueryFlag.Position position,
                               String flag)
position - flag - 
public SQLInsertClause addBatch()
protected void close(PreparedStatement stmt)
protected void close(ResultSet rs)
public SQLInsertClause columns(Path<?>... columns)
InsertClause
columns in interface InsertClause<SQLInsertClause>@Nullable public <T> T executeWithKey(Path<T> path)
T - path - 
public <T> List<T> executeWithKeys(Path<T> path)
T - path - 
public ResultSet executeWithKeys()
public long execute()
DMLClause
execute in interface DMLClause<SQLInsertClause>public SQLInsertClause select(SubQueryExpression<?> sq)
InsertClause
select in interface InsertClause<SQLInsertClause>
public <T> SQLInsertClause set(Path<T> path,
                               T value)
StoreClause
set in interface StoreClause<SQLInsertClause>path - path to be updatedvalue - value to set
public <T> SQLInsertClause set(Path<T> path,
                               Expression<? extends T> expression)
StoreClause
set in interface StoreClause<SQLInsertClause>public <T> SQLInsertClause setNull(Path<T> path)
StoreClause
setNull in interface StoreClause<SQLInsertClause>public SQLInsertClause values(Object... v)
InsertClause
values in interface InsertClause<SQLInsertClause>public String toString()
toString in class Objectpublic SQLInsertClause populate(Object bean)
bean - 
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||