public class PlainSelect extends Object implements SelectBody
Constructor and Description |
---|
PlainSelect() |
Modifier and Type | Method and Description |
---|---|
void |
accept(SelectVisitor selectVisitor) |
Distinct |
getDistinct() |
static String |
getFormatedList(List<?> list,
String expression) |
static String |
getFormatedList(List<?> list,
String expression,
boolean useComma,
boolean useBrackets) |
FromItem |
getFromItem()
The
FromItem in this query |
List<Expression> |
getGroupByColumnReferences()
A list of
Expression s of the GROUP BY clause. |
Expression |
getHaving() |
Table |
getInto() |
List<Join> |
getJoins()
The list of
Join s |
Limit |
getLimit() |
List<OrderByElement> |
getOrderByElements() |
List<SelectItem> |
getSelectItems()
The
SelectItem s in this query (for example the A,B,C in "SELECT
A,B,C") |
static String |
getStringList(List<?> list)
List the toString out put of the objects in the List comma separated.
|
static String |
getStringList(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 String |
orderByToString(List<OrderByElement> orderByElements) |
void |
setDistinct(Distinct distinct) |
void |
setFromItem(FromItem item) |
void |
setGroupByColumnReferences(List<Expression> list) |
void |
setHaving(Expression expression) |
void |
setInto(Table table) |
void |
setJoins(List<Join> list) |
void |
setLimit(Limit limit) |
void |
setOrderByElements(List<OrderByElement> orderByElements) |
void |
setSelectItems(List<SelectItem> list) |
void |
setTop(Top top) |
void |
setWhere(Expression where) |
String |
toString() |
public Table getInto()
public 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(List<SelectItem> list)
public void setWhere(Expression where)
public void accept(SelectVisitor selectVisitor)
accept
in interface SelectBody
public List<OrderByElement> getOrderByElements()
public void setOrderByElements(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 List<Expression> getGroupByColumnReferences()
Expression
s of the GROUP BY clause. It is null in case
there is no GROUP BY clauseExpression
spublic void setGroupByColumnReferences(List<Expression> list)
public static String orderByToString(List<OrderByElement> orderByElements)
public static String getFormatedList(List<?> list, String expression, boolean useComma, boolean useBrackets)
public static String getStringList(List<?> list)
list
- list of objects with toString methodsgetStringList(List, boolean, boolean)
public static String getStringList(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 bracketsCopyright © 2013. All Rights Reserved.