|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mysema.query.sql.dml.AbstractSQLClause<SQLInsertClause>
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,
Configuration configuration,
RelationalPath<?> entity,
AbstractSQLSubQuery<?> subQuery)
|
|
SQLInsertClause(Connection connection,
SQLTemplates templates,
RelationalPath<?> entity)
|
|
SQLInsertClause(Connection connection,
SQLTemplates templates,
RelationalPath<?> entity,
AbstractSQLSubQuery<?> subQuery)
|
Method Summary | ||
---|---|---|
SQLInsertClause |
addBatch()
Add the current state of bindings as a batch item |
|
SQLInsertClause |
addFlag(com.mysema.query.QueryFlag.Position position,
com.mysema.query.types.Expression<?> flag)
Add the given Expression at the given position as a query flag |
|
SQLInsertClause |
addFlag(com.mysema.query.QueryFlag.Position position,
String flag)
Add the given String literal at the given position as a query flag |
|
SQLInsertClause |
columns(com.mysema.query.types.Path<?>... columns)
|
|
long |
execute()
|
|
|
executeWithKey(Class<T> type)
|
|
|
executeWithKey(com.mysema.query.types.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(Class<T> type)
|
|
|
executeWithKeys(com.mysema.query.types.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. |
|
|
populate(T obj,
Mapper<T> mapper)
Populate the INSERT clause with the properties of the given bean using the given Mapper. |
|
SQLInsertClause |
select(com.mysema.query.types.SubQueryExpression<?> sq)
|
|
|
set(com.mysema.query.types.Path<T> path,
com.mysema.query.types.Expression<? extends T> expression)
|
|
|
set(com.mysema.query.types.Path<T> path,
T value)
|
|
|
setNull(com.mysema.query.types.Path<T> path)
|
|
String |
toString()
|
|
SQLInsertClause |
values(Object... v)
|
Methods inherited from class com.mysema.query.sql.dml.AbstractSQLClause |
---|
close, close, executeBatch, 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, SQLTemplates templates, RelationalPath<?> entity, AbstractSQLSubQuery<?> subQuery)
public SQLInsertClause(Connection connection, Configuration configuration, RelationalPath<?> entity, AbstractSQLSubQuery<?> subQuery)
public SQLInsertClause(Connection connection, Configuration configuration, RelationalPath<?> entity)
Method Detail |
---|
public SQLInsertClause addFlag(com.mysema.query.QueryFlag.Position position, String flag)
position
- flag
-
public SQLInsertClause addFlag(com.mysema.query.QueryFlag.Position position, com.mysema.query.types.Expression<?> flag)
position
- flag
-
public SQLInsertClause addBatch()
public SQLInsertClause columns(com.mysema.query.types.Path<?>... columns)
columns
in interface com.mysema.query.dml.InsertClause<SQLInsertClause>
@Nullable public <T> T executeWithKey(com.mysema.query.types.Path<T> path)
T
- path
-
public <T> T executeWithKey(Class<T> type)
public <T> List<T> executeWithKeys(com.mysema.query.types.Path<T> path)
T
- path
-
public <T> List<T> executeWithKeys(Class<T> type)
public ResultSet executeWithKeys()
public long execute()
execute
in interface com.mysema.query.dml.DMLClause<SQLInsertClause>
public SQLInsertClause select(com.mysema.query.types.SubQueryExpression<?> sq)
select
in interface com.mysema.query.dml.InsertClause<SQLInsertClause>
public <T> SQLInsertClause set(com.mysema.query.types.Path<T> path, T value)
set
in interface com.mysema.query.dml.StoreClause<SQLInsertClause>
public <T> SQLInsertClause set(com.mysema.query.types.Path<T> path, com.mysema.query.types.Expression<? extends T> expression)
set
in interface com.mysema.query.dml.StoreClause<SQLInsertClause>
public <T> SQLInsertClause setNull(com.mysema.query.types.Path<T> path)
setNull
in interface com.mysema.query.dml.StoreClause<SQLInsertClause>
public SQLInsertClause values(Object... v)
values
in interface com.mysema.query.dml.InsertClause<SQLInsertClause>
public String toString()
toString
in class Object
public SQLInsertClause populate(Object bean)
bean
-
public <T> SQLInsertClause populate(T obj, Mapper<T> mapper)
obj
- mapper
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |