public class SelectUnion extends Query
| 限定符和类型 | 类和说明 |
|---|---|
static class |
SelectUnion.UnionType |
create, parameters, prepareAlways, session, sqlStatement, sqlTokens| 构造器和说明 |
|---|
SelectUnion(SessionLocal session,
SelectUnion.UnionType unionType,
Query query,
Query right) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addGlobalCondition(Parameter param,
int columnId,
int comparisonType)
Add a condition to the query.
|
boolean |
allowGlobalConditions()
Check whether adding condition to the query is allowed.
|
void |
fireBeforeSelectTriggers()
Call the before triggers on all tables.
|
double |
getCost()
Calculate the cost to execute this query.
|
LocalResult |
getEmptyResult() |
Query |
getLeft() |
String |
getPlanSQL(int sqlFlags)
Get the SQL statement with the execution plan.
|
Query |
getRight() |
HashSet<Table> |
getTables()
Get all tables that are involved in this query.
|
SelectUnion.UnionType |
getUnionType() |
void |
init()
Initialize the query.
|
boolean |
isConstantQuery()
Check if this query will always return the same value and has no side
effects.
|
boolean |
isEverything(ExpressionVisitor visitor)
Check if this expression and all sub-expressions can fulfill a criteria.
|
boolean |
isUnion()
Check if this is a UNION query.
|
void |
mapColumns(ColumnResolver resolver,
int level)
Map the columns to the given column resolver.
|
void |
prepareExpressions() |
void |
preparePlan() |
protected ResultInterface |
queryWithoutCache(long maxRows,
ResultTarget target)
Execute the query without checking the cache.
|
void |
setEvaluatable(TableFilter tableFilter,
boolean b)
Change the evaluatable flag.
|
void |
setForUpdate(boolean forUpdate)
Set the 'for update' flag.
|
void |
updateAggregate(SessionLocal s,
int stage)
Update all aggregate function values.
|
collectDependencies, disableCache, exists, getColumnCount, getCostAsExpression, getExpressions, getFetch, getIfSingleRow, getMaxDataModificationId, getOffset, getRowDataType, getType, hasOrder, isAnyDistinct, isFetchPercent, isNeverLazy, isQuery, isRandomAccessResult, isReadOnly, isStandardDistinct, isTransactional, isWithTies, prepare, query, query, queryMeta, setDistinctIfPossible, setFetch, setFetchPercent, setNeverLazy, setOffset, setOrder, setRandomAccessResult, setWithTies, toTablecheckCanceled, checkParameters, getCteCleanups, getCurrentRowNumber, getObjectId, getParameters, getPersistedObjectId, getSession, getSimpleSQL, getSQL, getSQLTokens, isCacheable, isWithParamValues, needRecompile, setCommand, setCteCleanups, setCurrentRowNumber, setParameterList, setPersistedObjectId, setPrepareAlways, setRow, setSession, setSQL, setWithParamValues, toString, updatepublic SelectUnion(SessionLocal session, SelectUnion.UnionType unionType, Query query, Query right)
public boolean isUnion()
Querypublic SelectUnion.UnionType getUnionType()
public Query getLeft()
public Query getRight()
public LocalResult getEmptyResult()
protected ResultInterface queryWithoutCache(long maxRows, ResultTarget target)
QueryqueryWithoutCache 在类中 QuerymaxRows - the limit as specified in the JDBC method calltarget - the target to write results topublic void prepareExpressions()
prepareExpressions 在类中 Querypublic void preparePlan()
preparePlan 在类中 Querypublic double getCost()
Querypublic HashSet<Table> getTables()
Querypublic void setForUpdate(boolean forUpdate)
QuerysetForUpdate 在类中 QueryforUpdate - the new settingpublic void mapColumns(ColumnResolver resolver, int level)
QuerymapColumns 在类中 Queryresolver - the resolverlevel - the subquery level (0 is the top level query, 1 is the first
subquery level)public void setEvaluatable(TableFilter tableFilter, boolean b)
QuerysetEvaluatable 在类中 QuerytableFilter - the table filterb - the new valuepublic void addGlobalCondition(Parameter param, int columnId, int comparisonType)
QueryaddGlobalCondition 在类中 Queryparam - the parametercolumnId - the column index (0 meaning the first column)comparisonType - the comparison typepublic String getPlanSQL(int sqlFlags)
PreparedgetPlanSQL 在类中 PreparedsqlFlags - formatting flagspublic boolean isEverything(ExpressionVisitor visitor)
QueryisEverything 在类中 Queryvisitor - the visitorpublic void updateAggregate(SessionLocal s, int stage)
QueryupdateAggregate 在类中 Querys - the sessionstage - select stagepublic void fireBeforeSelectTriggers()
QueryfireBeforeSelectTriggers 在类中 Querypublic boolean allowGlobalConditions()
QueryallowGlobalConditions 在类中 Querypublic boolean isConstantQuery()
QueryisConstantQuery 在类中 QueryCopyright © 2022. All rights reserved.