|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mysema.query.sql.dml.SQLInsertClause
public class SQLInsertClause
SQLInsertClause defines an INSERT INTO clause
| Constructor Summary | |
|---|---|
SQLInsertClause(java.sql.Connection connection,
Configuration configuration,
PEntity<?> entity)
|
|
SQLInsertClause(java.sql.Connection connection,
SQLTemplates templates,
PEntity<?> entity)
|
|
| Method Summary | ||
|---|---|---|
protected void |
close(java.sql.PreparedStatement stmt)
|
|
protected void |
close(java.sql.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)
|
|
java.sql.ResultSet |
executeWithKeys()
|
|
|
executeWithKeys(Path<T> path)
|
|
SQLInsertClause |
select(SubQuery<?> subQuery)
Define the populate via subquery |
|
|
set(Path<T> path,
T value)
Add a value binding |
|
java.lang.String |
toString()
|
|
SQLInsertClause |
values(java.lang.Object... v)
Define the value bindings |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SQLInsertClause(java.sql.Connection connection,
SQLTemplates templates,
PEntity<?> entity)
public SQLInsertClause(java.sql.Connection connection,
Configuration configuration,
PEntity<?> entity)
| Method Detail |
|---|
protected void close(java.sql.PreparedStatement stmt)
protected void close(java.sql.ResultSet rs)
public SQLInsertClause columns(Path<?>... columns)
InsertClause
columns in interface InsertClause<SQLInsertClause>@Nullable public <T> T executeWithKey(Path<T> path)
public <T> java.util.List<T> executeWithKeys(Path<T> path)
public java.sql.ResultSet executeWithKeys()
public long execute()
DMLClause
execute in interface DMLClause<SQLInsertClause>public SQLInsertClause select(SubQuery<?> subQuery)
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 SQLInsertClause values(java.lang.Object... v)
InsertClause
values in interface InsertClause<SQLInsertClause>public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||