Package com.anylogic.engine.database
- java.lang.Object
- com.anylogic.engine.database.SelectQueryBasic<SelectQuery>
- com.anylogic.engine.database.SelectQuery
public class SelectQuery extends SelectQueryBasic<SelectQuery>
SelectQuery for building and execution of SELECT SQL statements
Constructor | Description |
---|---|
SelectQuery |
Modifier and Type | Method | Description |
---|---|---|
double[] | arrayOfDouble |
Executes the given SELECT query which should return 1 column with numbers.
|
int[] | arrayOfInt |
Executes the given SELECT query which should return 1 column with numbers.
|
ResultSet | getResults |
Get the results as an JDBC result set
|
TableFunction | tableFunction |
Executes the given SELECT query which should return 2 columns of data:
the first column contains arguments numbers,
the second column contains values numbers.
|
count, count, distinct, exists, firstResult, firstResult, firstResult, firstResult, firstResult, firstResult, fullJoin, fullJoin, getDSLQuery, getSQL, groupBy, groupBy, hasResults, hasResults, innerJoin, innerJoin, join, join, leftJoin, leftJoin, limit, list, list, list, offset, on, on, orderBy, orderBy, rightJoin, rightJoin, uniqueResult, uniqueResult, uniqueResult, uniqueResult, uniqueResult, uniqueResult, where, where
@AnyLogicInternalAPI public SelectQuery(ModelDatabase database, com.querydsl.sql.RelationalPathBase<?> table, Utilities owner)
public ResultSet getResults(com.querydsl.core.types.Expression<?>... columns)
Get the results as an JDBC result set
- Parameters:
columns
- to select- Returns:
- selected ResultSet
public TableFunction tableFunction(TableFunction tableFunction, com.querydsl.core.types.Expression<? extends Number> argumentColumn, com.querydsl.core.types.Expression<? extends Number> valueColumn)
Executes the given SELECT query which should return 2 columns of data:
the first column contains arguments numbers,
the second column contains values numbers.
- Parameters:
tableFunction
- the table function to fillargumentColumn
- column with argumentsvalueColumn
- column with values- Returns:
- the given table function, for convenience
public double[] arrayOfDouble(com.querydsl.core.types.Expression<? extends Number> valueColumn)
Executes the given SELECT query which should return 1 column with numbers.
Returns the array of numbers from the column.
An empty array is returned for no results
- Parameters:
valueColumn
- column with values- Returns:
- array of 'double' numbers
public int[] arrayOfInt(com.querydsl.core.types.Expression<? extends Number> valueColumn)
Executes the given SELECT query which should return 1 column with numbers.
Returns the array of numbers from the column.
An empty array is returned for no results
- Parameters:
valueColumn
- column with values- Returns:
- array of 'int' numbers