Package com.anylogic.engine.database
- java.lang.Object
- com.anylogic.engine.database.InsertQuery
public class InsertQuery extends Object
InsertQuery for building and execution INSERT SQL statements
Constructor | Description |
---|---|
InsertQuery |
Modifier and Type | Method | Description |
---|---|---|
InsertQuery | columns |
Set columns to insert
|
long | execute() |
Executes insert query
|
com.querydsl.sql.dml.SQLInsertClause | getDSLQuery() | |
<T> InsertQuery | set |
Set column with its value to insert
|
InsertQuery | values |
Set values for columns
|
@AnyLogicInternalAPI public InsertQuery(ModelDatabase database, com.querydsl.sql.RelationalPath<?> table)
@AnyLogicInternalAPI public com.querydsl.sql.dml.SQLInsertClause getDSLQuery()
public InsertQuery columns(com.querydsl.core.types.Path<?>... columns)
Set columns to insert
- Parameters:
columns
- columns to insert- Returns:
- InsertQuery
public <T> InsertQuery set(com.querydsl.core.types.Path<T> column, com.querydsl.core.types.Expression<? extends T> value)
Set column with its value to insert
- Parameters:
column
- columnvalue
- value of that column- Returns:
- InsertQuery
public InsertQuery values(Object... values)
Set values for columns
- Parameters:
values
- values of columns- Returns:
- InsertQuery
public long execute()
Executes insert query
- Returns:
- inserted rows number