public class SelectQuery extends AbstractDMLQuery
Modifier and Type | Field and Description |
---|---|
protected AggregationSet |
_aggregationSet |
_buildOnly, _containsQuery, _convertResultToArray, _executor, _operationID, _projectionTemplate, _queryResultType, _tablesData, expTree, isPrepared, preparedValues, queryColumns, rownum, securityInterceptor, tables, valueMap
Constructor and Description |
---|
SelectQuery() |
Modifier and Type | Method and Description |
---|---|
void |
addAbsentCol() |
void |
addColumn(SelectColumn column)
Add a column to the list of columns.
|
SelectQuery |
clone()
Return a cloned SelectQuery
|
ResponsePacket |
executeOnSpace(ISpaceProxy space,
Transaction txn)
Execute the query
|
BatchResponsePacket |
executePreparedValuesBatch(ISpaceProxy space,
Transaction transaction,
GPreparedStatement.PreparedValuesCollection preparedValuesCollection)
Executes a query with batched prepared values.
|
ArrayList<SelectColumn> |
getGroupColumn() |
ArrayList<OrderColumn> |
getOrderColumns() |
boolean |
isAggFunction() |
boolean |
isSelectQuery()
Gets whether this query is a SELECT query.
|
void |
setAggFunction(boolean flag) |
void |
setDistinct(boolean isDistinct) |
void |
setForUpdate(boolean forUpdate)
Mark this select as a SELECT FOR UPDATE.
|
void |
setGroupColumn(ArrayList<SelectColumn> groupColumnList)
Sets the order column.
|
void |
setOrderColumns(ArrayList<OrderColumn> ordCol)
Sets the order column.
|
void |
validateQuery(ISpaceProxy space)
This method pre-validates the query, in terms of selected tables and columns.
|
addColumn, addTableWithAlias, assignParameters, build, buildTemplates, containsSubQueries, executeSubQueries, filterByRownum, getBuilder, getExplainPlan, getExpTree, getIfExists, getMinEntriesToWaitFor, getOperationID, getPreparedValues, getProjectionTemplate, getQueryColumns, getQueryResultType, getReadModifier, getRouting, getRownum, getRownumLimit, getSecurityInterceptor, getSession, getTableByAlias, getTableData, getTableData, getTableName, getTablesData, getTemplatePacketIfExists, getTimeout, getTypeInfo, isBuildOnly, isContainsQuery, isConvertResultToArray, isDirtyState, isForceUnderTransaction, isJoined, isPrepared, isReturnResult, prepare, setBuildOnly, setContainsQuery, setContainsSubQueries, setConvertResultToArray, setExplainPlan, setExpTree, setIfExists, setMaxResults, setMinEntriesToWaitFor, setOperationID, setPrepared, setPreparedValues, setProjectionTemplate, setQueryResultType, setReadModifier, setReturnResult, setRouting, setRownum, setSecurityInterceptor, setSession, setTableName, setTemplatePreparedValues, setTimeout, validateBuiltTemplates
protected AggregationSet _aggregationSet
public void addAbsentCol()
public void setAggFunction(boolean flag)
public boolean isAggFunction()
public ResponsePacket executeOnSpace(ISpaceProxy space, Transaction txn) throws SQLException
SQLException
public SelectQuery clone()
clone
in class AbstractDMLQuery
public void addColumn(SelectColumn column)
column
- the column to addpublic void setOrderColumns(ArrayList<OrderColumn> ordCol)
public void setGroupColumn(ArrayList<SelectColumn> groupColumnList)
public ArrayList<SelectColumn> getGroupColumn()
public void setForUpdate(boolean forUpdate)
public void validateQuery(ISpaceProxy space) throws SQLException
validateQuery
in interface Query
validateQuery
in class AbstractDMLQuery
SQLException
public void setDistinct(boolean isDistinct)
public ArrayList<OrderColumn> getOrderColumns()
public boolean isSelectQuery()
AbstractDMLQuery
isSelectQuery
in class AbstractDMLQuery
public BatchResponsePacket executePreparedValuesBatch(ISpaceProxy space, Transaction transaction, GPreparedStatement.PreparedValuesCollection preparedValuesCollection) throws SQLException
AbstractDMLQuery
executePreparedValuesBatch
in class AbstractDMLQuery
SQLException
Copyright © GigaSpaces.