|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jsqlparser.statement.select.PlainSelect
public class PlainSelect
The core of a "SELECT" statement (no UNION, no ORDER BY)
Field Summary | |
---|---|
private Distinct |
distinct
|
private FromItem |
fromItem
|
private java.util.List |
groupByColumnReferences
|
private Expression |
having
|
private Table |
into
|
private java.util.List |
joins
|
private Limit |
limit
|
private java.util.List |
orderByElements
|
private java.util.List |
selectItems
|
private Top |
top
|
private Expression |
where
|
Constructor Summary | |
---|---|
PlainSelect()
|
Method Summary | |
---|---|
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 |
getGroupByColumnReferences()
A list of ColumnReference s of the GROUP BY clause. |
Expression |
getHaving()
|
Table |
getInto()
|
java.util.List |
getJoins()
The list of Join s |
Limit |
getLimit()
|
java.util.List |
getOrderByElements()
|
java.util.List |
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 orderByElements)
|
void |
setDistinct(Distinct distinct)
|
void |
setFromItem(FromItem item)
|
void |
setGroupByColumnReferences(java.util.List list)
|
void |
setHaving(Expression expression)
|
void |
setInto(Table table)
|
void |
setJoins(java.util.List list)
|
void |
setLimit(Limit limit)
|
void |
setOrderByElements(java.util.List orderByElements)
|
void |
setSelectItems(java.util.List list)
|
void |
setTop(Top top)
|
void |
setWhere(Expression where)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private Distinct distinct
private java.util.List selectItems
private Table into
private FromItem fromItem
private java.util.List joins
private Expression where
private java.util.List groupByColumnReferences
private java.util.List orderByElements
private Expression having
private Limit limit
private Top top
Constructor Detail |
---|
public PlainSelect()
Method Detail |
---|
public FromItem getFromItem()
FromItem
in this query
FromItem
public Table getInto()
public java.util.List 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 list)
public void setWhere(Expression where)
public java.util.List getJoins()
Join
s
Join
spublic void setJoins(java.util.List list)
public void accept(SelectVisitor selectVisitor)
accept
in interface SelectBody
public java.util.List getOrderByElements()
public void setOrderByElements(java.util.List 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 getGroupByColumnReferences()
ColumnReference
s of the GROUP BY clause.
It is null in case there is no GROUP BY clause
ColumnReference
spublic void setGroupByColumnReferences(java.util.List list)
public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String orderByToString(java.util.List 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 methods
getStringList(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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |