public class GridSqlSelect extends GridSqlQuery
distinct, limit, offset, sort| Constructor and Description |
|---|
GridSqlSelect() |
| Modifier and Type | Method and Description |
|---|---|
GridSqlSelect |
addColumn(GridSqlElement expression,
boolean visible) |
int |
allColumns() |
GridSqlSelect |
clearColumns()
Clears select expressions list.
|
protected GridSqlElement |
column(int col) |
List<GridSqlElement> |
columns(boolean visibleOnly) |
GridSqlElement |
from() |
GridSqlSelect |
from(GridSqlElement from) |
String |
getSQL() |
int[] |
groupColumns() |
GridSqlSelect |
groupColumns(int[] grpCols) |
GridSqlElement |
having() |
int |
havingColumn() |
GridSqlSelect |
havingColumn(int col) |
GridSqlSelect |
setColumn(int colIdx,
GridSqlElement expression) |
boolean |
simpleQuery() |
int |
visibleColumns() |
GridSqlElement |
where() |
GridSqlSelect |
where(GridSqlElement where) |
GridSqlSelect |
whereAnd(GridSqlElement cond) |
public int visibleColumns()
visibleColumns in class GridSqlQuerypublic int allColumns()
protected GridSqlElement column(int col)
column in class GridSqlQuerycol - Column index.public String getSQL()
getSQL in class GridSqlQuerypublic boolean simpleQuery()
True if this simple SQL query like 'SELECT A, B, C from SOME_TABLE' without any conditions
and expressions.public List<GridSqlElement> columns(boolean visibleOnly)
visibleOnly - If only visible expressions needed.public GridSqlSelect clearColumns()
this.public GridSqlSelect addColumn(GridSqlElement expression, boolean visible)
expression - Expression.visible - Expression is visible in select phrase.this.public GridSqlSelect setColumn(int colIdx, GridSqlElement expression)
colIdx - Column index.expression - Expression.this.public int[] groupColumns()
public GridSqlSelect groupColumns(int[] grpCols)
grpCols - Group columns.this.public GridSqlElement from()
public GridSqlSelect from(GridSqlElement from)
from - From element.this.public GridSqlElement where()
public GridSqlSelect where(GridSqlElement where)
where - New where.this.public GridSqlSelect whereAnd(GridSqlElement cond)
cond - Adds new WHERE condition using AND operator.this.public GridSqlElement having()
public GridSqlSelect havingColumn(int col)
col - Index of HAVING column.this.public int havingColumn()
Follow @ApacheIgnite
Ignite Fabric : ver. 1.6.0 Release Date : May 18 2016