- java.lang.Object
-
- net.sf.jsqlparser.parser.ASTNodeAccessImpl
-
- net.sf.jsqlparser.statement.select.Select
-
- net.sf.jsqlparser.statement.select.PlainSelect
-
- All Implemented Interfaces:
Serializable,Expression,Model,net.sf.jsqlparser.parser.ASTNodeAccess,Statement
public class PlainSelect extends Select
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPlainSelect.BigQuerySelectQualifier
-
Field Summary
-
Fields inherited from class net.sf.jsqlparser.statement.select.Select
forUpdateTable
-
-
Constructor Summary
Constructors Constructor Description PlainSelect()PlainSelect(Collection<Expression> selectExpressions, FromItem fromItem)PlainSelect(Collection<Expression> selectExpressions, FromItem fromItem, Collection<Expression> orderByExpressions)PlainSelect(Collection<Expression> selectExpressions, FromItem fromItem, Expression whereExpressions)PlainSelect(Collection<Expression> selectExpressions, FromItem fromItem, Expression whereExpressions, Collection<Expression> orderByExpressions)PlainSelect(FromItem fromItem)PlainSelect(FromItem fromItem, Collection<Expression> orderByExpressions)PlainSelect(FromItem fromItem, Expression whereExpressions)PlainSelect(FromItem fromItem, Expression whereExpressions, Collection<Expression> orderByExpressions)
-
Method Summary
-
Methods inherited from class net.sf.jsqlparser.statement.select.Select
accept, accept, addOrderByElements, addOrderByElements, addOrderByElements, addOrderByExpressions, addWithItemsList, addWithItemsList, appendStringListTo, appendTo, as, getFetch, getForClause, getFormattedList, getFormattedList, getForMode, getForUpdateTable, getIsolation, getLimit, getLimitBy, getOffset, getOrderByElements, getPlainSelect, getSelectBody, getSetOperationList, getStringList, getStringList, getValues, getWait, getWithItemsList, isNoWait, isOracleSiblings, isSkipLocked, orderByToString, orderByToString, setFetch, setForClause, setForMode, setForUpdateTable, setIsolation, setLimit, setLimitBy, setNoWait, setOffset, setOracleSiblings, setOrderByElements, setSkipLocked, setWait, setWithItemsList, withFetch, withForMode, withForUpdateTable, withIsolation, withLimit, withLimitBy, withOffset, withOrderByElements, withSkipLocked, withWait, withWithItemsList
-
Methods inherited from class net.sf.jsqlparser.parser.ASTNodeAccessImpl
getASTNode, getParent, getParent, setASTNode
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.sf.jsqlparser.expression.Expression
accept
-
-
-
-
Constructor Detail
-
PlainSelect
public PlainSelect()
-
PlainSelect
public PlainSelect(FromItem fromItem)
-
PlainSelect
public PlainSelect(FromItem fromItem, Expression whereExpressions)
-
PlainSelect
public PlainSelect(FromItem fromItem, Collection<Expression> orderByExpressions)
-
PlainSelect
public PlainSelect(FromItem fromItem, Expression whereExpressions, Collection<Expression> orderByExpressions)
-
PlainSelect
public PlainSelect(Collection<Expression> selectExpressions, FromItem fromItem)
-
PlainSelect
public PlainSelect(Collection<Expression> selectExpressions, FromItem fromItem, Expression whereExpressions)
-
PlainSelect
public PlainSelect(Collection<Expression> selectExpressions, FromItem fromItem, Collection<Expression> orderByExpressions)
-
PlainSelect
public PlainSelect(Collection<Expression> selectExpressions, FromItem fromItem, Expression whereExpressions, Collection<Expression> orderByExpressions)
-
-
Method Detail
-
isUseBrackets
@Deprecated public boolean isUseBrackets()
Deprecated.
-
getFromItem
public FromItem getFromItem()
-
setFromItem
public void setFromItem(FromItem item)
-
getSelectItems
public List<SelectItem<?>> getSelectItems()
-
setSelectItems
public void setSelectItems(List<SelectItem<?>> list)
-
getSelectItem
public SelectItem<?> getSelectItem(int index)
-
getWhere
public Expression getWhere()
-
setWhere
public void setWhere(Expression where)
-
withFromItem
public PlainSelect withFromItem(FromItem item)
-
withSelectItems
public PlainSelect withSelectItems(List<SelectItem<?>> list)
-
withSelectItems
public PlainSelect withSelectItems(SelectItem<?>... selectItems)
-
addSelectItems
public PlainSelect addSelectItems(SelectItem<?>... items)
-
addSelectExpressions
public PlainSelect addSelectExpressions(Collection<Expression> expressions)
-
addSelectItems
public PlainSelect addSelectItems(Expression... expressions)
-
addSelectItem
public PlainSelect addSelectItem(Expression expression, Alias alias)
-
addSelectItem
public PlainSelect addSelectItem(Expression expression)
-
getLateralViews
public List<LateralView> getLateralViews()
-
setLateralViews
public void setLateralViews(Collection<LateralView> lateralViews)
-
addLateralView
public PlainSelect addLateralView(LateralView lateralView)
-
withLateralViews
public PlainSelect withLateralViews(Collection<LateralView> lateralViews)
-
getJoin
public Join getJoin(int index)
-
addJoins
public PlainSelect addJoins(Join... joins)
-
withJoins
public PlainSelect withJoins(List<Join> joins)
-
isUsingFinal
public boolean isUsingFinal()
-
setUsingFinal
public void setUsingFinal(boolean usingFinal)
-
withUsingFinal
public PlainSelect withUsingFinal(boolean usingFinal)
-
isUsingOnly
public boolean isUsingOnly()
-
setUsingOnly
public void setUsingOnly(boolean usingOnly)
-
withUsingOnly
public PlainSelect withUsingOnly(boolean usingOnly)
-
isUseWithNoLog
public boolean isUseWithNoLog()
-
setUseWithNoLog
public void setUseWithNoLog(boolean useWithNoLog)
-
withUseWithNoLog
public PlainSelect withUseWithNoLog(boolean useWithNoLog)
-
getIntoTempTable
public Table getIntoTempTable()
-
setIntoTempTable
public void setIntoTempTable(Table intoTempTable)
-
withIntoTempTable
public PlainSelect withIntoTempTable(Table intoTempTable)
-
accept
public <T,S> T accept(SelectVisitor<T> selectVisitor, S context)
-
getOptimizeFor
public OptimizeFor getOptimizeFor()
-
setOptimizeFor
public void setOptimizeFor(OptimizeFor optimizeFor)
-
getTop
public Top getTop()
-
setTop
public void setTop(Top top)
-
getSkip
public Skip getSkip()
-
setSkip
public void setSkip(Skip skip)
-
getMySqlHintStraightJoin
public boolean getMySqlHintStraightJoin()
-
setMySqlHintStraightJoin
public void setMySqlHintStraightJoin(boolean mySqlHintStraightJoin)
-
getFirst
public First getFirst()
-
setFirst
public void setFirst(First first)
-
getDistinct
public Distinct getDistinct()
-
setDistinct
public void setDistinct(Distinct distinct)
-
getBigQuerySelectQualifier
public PlainSelect.BigQuerySelectQualifier getBigQuerySelectQualifier()
-
setBigQuerySelectQualifier
public PlainSelect setBigQuerySelectQualifier(PlainSelect.BigQuerySelectQualifier bigQuerySelectQualifier)
-
getHaving
public Expression getHaving()
-
setHaving
public void setHaving(Expression expression)
-
getQualify
public Expression getQualify()
-
setQualify
public PlainSelect setQualify(Expression qualify)
-
getGroupBy
public GroupByElement getGroupBy()
A list ofExpressions of the GROUP BY clause. It is null in case there is no GROUP BY clause- Returns:
- a list of
Expressions
-
setGroupByElement
public void setGroupByElement(GroupByElement groupBy)
-
addGroupByColumnReference
public PlainSelect addGroupByColumnReference(Expression expr)
-
getOracleHierarchical
public OracleHierarchicalExpression getOracleHierarchical()
-
setOracleHierarchical
public void setOracleHierarchical(OracleHierarchicalExpression oracleHierarchical)
-
getOracleHint
public OracleHint getOracleHint()
-
setOracleHint
public void setOracleHint(OracleHint oracleHint)
-
getForXmlPath
public String getForXmlPath()
-
setForXmlPath
public void setForXmlPath(String forXmlPath)
-
getKsqlWindow
public KSQLWindow getKsqlWindow()
-
setKsqlWindow
public void setKsqlWindow(KSQLWindow ksqlWindow)
-
isEmitChanges
public boolean isEmitChanges()
-
setEmitChanges
public void setEmitChanges(boolean emitChanges)
-
getWindowDefinitions
public List<WindowDefinition> getWindowDefinitions()
-
setWindowDefinitions
public void setWindowDefinitions(List<WindowDefinition> windowDefinitions)
-
appendSelectBodyTo
public StringBuilder appendSelectBodyTo(StringBuilder builder)
- Specified by:
appendSelectBodyToin classSelect
-
withMySqlSqlCalcFoundRows
public PlainSelect withMySqlSqlCalcFoundRows(boolean mySqlCalcFoundRows)
-
withMySqlSqlNoCache
public PlainSelect withMySqlSqlNoCache(MySqlSqlCacheFlags mySqlCacheFlag)
-
getMySqlSqlCalcFoundRows
public boolean getMySqlSqlCalcFoundRows()
-
setMySqlSqlCalcFoundRows
public void setMySqlSqlCalcFoundRows(boolean mySqlCalcFoundRows)
-
getMySqlSqlCacheFlag
public MySqlSqlCacheFlags getMySqlSqlCacheFlag()
-
setMySqlSqlCacheFlag
public void setMySqlSqlCacheFlag(MySqlSqlCacheFlags sqlCacheFlag)
-
withDistinct
public PlainSelect withDistinct(Distinct distinct)
-
withIntoTables
public PlainSelect withIntoTables(List<Table> intoTables)
-
withWhere
public PlainSelect withWhere(Expression where)
-
withOptimizeFor
public PlainSelect withOptimizeFor(OptimizeFor optimizeFor)
-
withSkip
public PlainSelect withSkip(Skip skip)
-
withMySqlHintStraightJoin
public PlainSelect withMySqlHintStraightJoin(boolean mySqlHintStraightJoin)
-
withFirst
public PlainSelect withFirst(First first)
-
withTop
public PlainSelect withTop(Top top)
-
withOracleHierarchical
public PlainSelect withOracleHierarchical(OracleHierarchicalExpression oracleHierarchical)
-
withOracleHint
public PlainSelect withOracleHint(OracleHint oracleHint)
-
withOracleSiblings
public PlainSelect withOracleSiblings(boolean oracleSiblings)
- Overrides:
withOracleSiblingsin classSelect
-
withForXmlPath
public PlainSelect withForXmlPath(String forXmlPath)
-
withKsqlWindow
public PlainSelect withKsqlWindow(KSQLWindow ksqlWindow)
-
withNoWait
public PlainSelect withNoWait(boolean noWait)
-
withHaving
public PlainSelect withHaving(Expression having)
-
addSelectItems
public PlainSelect addSelectItems(Collection<? extends SelectItem<?>> selectItems)
-
addIntoTables
public PlainSelect addIntoTables(Table... intoTables)
-
addIntoTables
public PlainSelect addIntoTables(Collection<? extends Table> intoTables)
-
addJoins
public PlainSelect addJoins(Collection<? extends Join> joins)
-
getWhere
public <E extends Expression> E getWhere(Class<E> type)
-
getHaving
public <E extends Expression> E getHaving(Class<E> type)
-
-