AnyLogic
Expand
Font size

public class InsertQuery
extends Object
InsertQuery for building and execution INSERT SQL statements

Constructor Summary

ConstructorDescription
InsertQuery(ModelDatabase database, com.querydsl.sql.RelationalPath<?> table) 

Method Summary

Modifier and TypeMethodDescription
InsertQuerycolumns(com.querydsl.core.types.Path<?>... columns)
Set columns to insert
longexecute()
Executes insert query
com.querydsl.sql.dml.SQLInsertClausegetDSLQuery() 
<T> InsertQueryset(com.querydsl.core.types.Path<T> column, com.querydsl.core.types.Expression<? extends T> value)
Set column with its value to insert
InsertQueryvalues(Object... values)
Set values for columns

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

InsertQuery

@AnyLogicInternalAPI
public InsertQuery(ModelDatabase database,
 com.querydsl.sql.RelationalPath<?> table)

Method Details

getDSLQuery

@AnyLogicInternalAPI
public com.querydsl.sql.dml.SQLInsertClause getDSLQuery()

columns

public InsertQuery columns(com.querydsl.core.types.Path<?>... columns)
Set columns to insert
Parameters:
columns - columns to insert
Returns:
InsertQuery

set

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 - column
value - value of that column
Returns:
InsertQuery

values

public InsertQuery values(Object... values)
Set values for columns
Parameters:
values - values of columns
Returns:
InsertQuery

execute

public long execute()
Executes insert query
Returns:
inserted rows number