public final class SelectStatement extends DQLStatement
| Constructor and Description |
|---|
SelectStatement() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsSubquery()
Judge contains subquery statement or not.
|
com.google.common.base.Optional<StarSelectItem> |
findStarSelectItem(String tableNameOrAlias)
Find star select item via table name or alias.
|
List<AggregationDistinctSelectItem> |
getAggregationDistinctSelectItems()
Get aggregation distinct select items.
|
List<AggregationSelectItem> |
getAggregationSelectItems()
Get aggregation select items.
|
com.google.common.base.Optional<String> |
getAlias(String name)
Get alias.
|
com.google.common.base.Optional<DistinctSelectItem> |
getDistinctSelectItem()
Get distinct select item optional.
|
Collection<StarSelectItem> |
getQualifiedStarSelectItems()
Get qualified star select items.
|
boolean |
hasUnqualifiedStarSelectItem()
Judge has unqualified star select item.
|
boolean |
isSameGroupByAndOrderByItems()
Judge group by and order by sequence is same or not.
|
SelectStatement |
mergeSubqueryStatement()
Merge subquery statement if contains.
|
void |
setIndexForItems(Map<String,Integer> columnLabelIndexMap)
Set index for select items.
|
void |
setSubqueryStatement(SelectStatement subqueryStatement)
Set subquery statement.
|
isDQLaddSQLToken, findSQLToken, getSQLTokens, increaseParametersIndexclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEncryptConditions, getLogicSQL, getParametersIndex, getRouteConditions, getTables, getType, setLogicSQLpublic com.google.common.base.Optional<String> getAlias(String name)
name - name or aliaspublic List<AggregationSelectItem> getAggregationSelectItems()
public com.google.common.base.Optional<DistinctSelectItem> getDistinctSelectItem()
public List<AggregationDistinctSelectItem> getAggregationDistinctSelectItems()
public boolean hasUnqualifiedStarSelectItem()
public Collection<StarSelectItem> getQualifiedStarSelectItems()
public com.google.common.base.Optional<StarSelectItem> findStarSelectItem(String tableNameOrAlias)
tableNameOrAlias - table name or aliaspublic boolean isSameGroupByAndOrderByItems()
public void setIndexForItems(Map<String,Integer> columnLabelIndexMap)
columnLabelIndexMap - map for column label and indexpublic void setSubqueryStatement(SelectStatement subqueryStatement)
subqueryStatement - subquery statementpublic boolean containsSubquery()
public SelectStatement mergeSubqueryStatement()
Copyright © 2019 The Apache Software Foundation. All rights reserved.