public class SelectQuery extends AbstractDMLQuery implements Externalizable
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.
|
void |
addTableWithAlias(Object table,
String alias) |
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.
|
List<SelectColumn> |
getGroupColumn() |
List<OrderColumn> |
getOrderColumns() |
boolean |
isAggFunction() |
boolean |
isCollocatedJoin() |
boolean |
isSelectQuery()
Gets whether this query is a SELECT query.
|
void |
readExternal(ObjectInput in) |
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 |
setJoins(List<Join> joins) |
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.
|
void |
writeExternal(ObjectOutput out) |
addColumn, addTableWithAlias, assignParameters, build, buildTemplates, containsSubQueries, executeSubQueries, filterByRownum, getBuilder, getExplainPlan, getExpTree, getIfExists, getMinEntriesToWaitFor, getOperationID, getPreparedValues, getProjectionTemplate, getQueryColumnByAlias, getQueryColumns, getQueryResultType, getReadModifier, getRouting, getRownum, getRownumLimit, getSecurityInterceptor, getSession, getTableByAlias, getTableData, getTableData, getTableName, getTablesData, getTablesNames, 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, validateQuery
protected AggregationSet _aggregationSet
public void addAbsentCol()
public void setAggFunction(boolean flag)
public boolean isAggFunction()
public ResponsePacket executeOnSpace(ISpaceProxy space, Transaction txn) throws SQLException
executeOnSpace
in interface Query
SQLException
public boolean isCollocatedJoin()
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 List<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 List<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
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class AbstractDMLQuery
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class AbstractDMLQuery
IOException
ClassNotFoundException
Copyright © GigaSpaces.