public class PlainSelect extends java.lang.Object implements SelectBody
Modifier and Type | Field and Description |
---|---|
private Distinct |
distinct |
private FromItem |
fromItem |
private java.util.List<Column> |
groupByColumnReferences |
private Expression |
having |
private Table |
into |
private java.util.List<Join> |
joins |
private Limit |
limit |
private java.util.List<OrderByElement> |
orderByElements |
private java.util.List<SelectItem> |
selectItems |
private Top |
top |
private Expression |
where |
Constructor and Description |
---|
PlainSelect() |
Modifier and Type | Method and Description |
---|---|
void |
accept(SelectVisitor selectVisitor) |
Distinct |
getDistinct() |
static java.lang.String |
getFormatedList(java.util.List list,
java.lang.String expression) |
static java.lang.String |
getFormatedList(java.util.List list,
java.lang.String expression,
boolean useComma,
boolean useBrackets) |
FromItem |
getFromItem()
The
FromItem in this query |
java.util.List<Column> |
getGroupByColumnReferences()
A list of
Expression s of the GROUP BY clause. |
Expression |
getHaving() |
Table |
getInto() |
java.util.List<Join> |
getJoins()
The list of
Join s |
Limit |
getLimit() |
java.util.List<OrderByElement> |
getOrderByElements() |
java.util.List<SelectItem> |
getSelectItems()
The
SelectItem s in this query (for example the A,B,C in "SELECT A,B,C") |
static java.lang.String |
getStringList(java.util.List list)
List the toString out put of the objects in the List comma separated.
|
static java.lang.String |
getStringList(java.util.List list,
boolean useComma,
boolean useBrackets)
List the toString out put of the objects in the List that can be comma separated.
|
Top |
getTop() |
Expression |
getWhere() |
static java.lang.String |
orderByToString(java.util.List<OrderByElement> orderByElements) |
void |
setDistinct(Distinct distinct) |
void |
setFromItem(FromItem item) |
void |
setGroupByColumnReferences(java.util.List<Column> list) |
void |
setHaving(Expression expression) |
void |
setInto(Table table) |
void |
setJoins(java.util.List<Join> list) |
void |
setLimit(Limit limit) |
void |
setOrderByElements(java.util.List<OrderByElement> orderByElements) |
void |
setSelectItems(java.util.List<SelectItem> list) |
void |
setTop(Top top) |
void |
setWhere(Expression where) |
java.lang.String |
toString() |
private Distinct distinct
private java.util.List<SelectItem> selectItems
private Table into
private FromItem fromItem
private java.util.List<Join> joins
private Expression where
private java.util.List<Column> groupByColumnReferences
private java.util.List<OrderByElement> orderByElements
private Expression having
private Limit limit
private Top top
public Table getInto()
public java.util.List<SelectItem> getSelectItems()
SelectItem
s in this query (for example the A,B,C in "SELECT A,B,C")SelectItem
spublic Expression getWhere()
public void setFromItem(FromItem item)
public void setInto(Table table)
public void setSelectItems(java.util.List<SelectItem> list)
public void setWhere(Expression where)
public void setJoins(java.util.List<Join> list)
public void accept(SelectVisitor selectVisitor)
accept
in interface SelectBody
public java.util.List<OrderByElement> getOrderByElements()
public void setOrderByElements(java.util.List<OrderByElement> orderByElements)
public Limit getLimit()
public void setLimit(Limit limit)
public Top getTop()
public void setTop(Top top)
public Distinct getDistinct()
public void setDistinct(Distinct distinct)
public Expression getHaving()
public void setHaving(Expression expression)
public java.util.List<Column> getGroupByColumnReferences()
Expression
s of the GROUP BY clause.
It is null in case there is no GROUP BY clauseExpression
spublic void setGroupByColumnReferences(java.util.List<Column> list)
public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String orderByToString(java.util.List<OrderByElement> orderByElements)
public static java.lang.String getFormatedList(java.util.List list, java.lang.String expression)
public static java.lang.String getFormatedList(java.util.List list, java.lang.String expression, boolean useComma, boolean useBrackets)
public static java.lang.String getStringList(java.util.List list)
list
- list of objects with toString methodsgetStringList(List, boolean, boolean)
public static java.lang.String getStringList(java.util.List list, boolean useComma, boolean useBrackets)
list
- list of objects with toString methodsuseComma
- true if the list has to be comma separateduseBrackets
- true if the list has to be enclosed in brackets