AnyLogic
Expand
Font size
  • java.lang.Object
    • com.anylogic.engine.database.InsertQuery

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

Constructor Summary

Constructors 
InsertQuery​(ModelDatabase database, com.querydsl.sql.RelationalPath<?> table)  
Constructor Description

Method Summary

All Methods Instance Methods Concrete Methods 
InsertQuery columns​(com.querydsl.core.types.Path<?>... columns)
Set columns to insert
long execute()
Executes insert query
com.querydsl.sql.dml.SQLInsertClause getDSLQuery()  
<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
InsertQuery values​(java.lang.Object... values)
Set values for columns
Modifier and Type Method Description

Methods inherited from class java.lang.Object

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

Constructor Detail

InsertQuery

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

Method Detail

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​(java.lang.Object... values)
Set values for columns
Parameters:
values - values of columns
Returns:
InsertQuery

execute

public long execute()
Executes insert query
Returns:
inserted rows number
How can we improve this article?