public class PlainSelect extends java.lang.Object implements SelectBody
构造器和说明 |
---|
PlainSelect() |
限定符和类型 | 方法和说明 |
---|---|
void |
accept(SelectVisitor selectVisitor) |
void |
addGroupByColumnReference(Expression expr) |
void |
addSelectItems(SelectItem... items) |
Distinct |
getDistinct() |
Fetch |
getFetch() |
First |
getFirst() |
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) |
Table |
getForUpdateTable() |
FromItem |
getFromItem()
The
FromItem in this query |
java.util.List<Expression> |
getGroupByColumnReferences()
A list of
Expression s of the GROUP BY clause. |
Expression |
getHaving() |
java.util.List<Table> |
getIntoTables() |
java.util.List<Join> |
getJoins()
The list of
Join s |
Limit |
getLimit() |
Offset |
getOffset() |
OracleHierarchicalExpression |
getOracleHierarchical() |
OracleHint |
getOracleHint() |
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") |
Skip |
getSkip() |
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() |
Wait |
getWait()
Returns the value of the
Wait set for this SELECT |
Expression |
getWhere() |
boolean |
isForUpdate() |
boolean |
isOracleSiblings() |
boolean |
isUseBrackets() |
static java.lang.String |
orderByToString(boolean oracleSiblings,
java.util.List<OrderByElement> orderByElements) |
static java.lang.String |
orderByToString(java.util.List<OrderByElement> orderByElements) |
void |
setDistinct(Distinct distinct) |
void |
setFetch(Fetch fetch) |
void |
setFirst(First first) |
void |
setForUpdate(boolean forUpdate) |
void |
setForUpdateTable(Table forUpdateTable) |
void |
setFromItem(FromItem item) |
void |
setGroupByColumnReferences(java.util.List<Expression> list) |
void |
setHaving(Expression expression) |
void |
setIntoTables(java.util.List<Table> intoTables) |
void |
setJoins(java.util.List<Join> list) |
void |
setLimit(Limit limit) |
void |
setOffset(Offset offset) |
void |
setOracleHierarchical(OracleHierarchicalExpression oracleHierarchical) |
void |
setOracleHint(OracleHint oracleHint) |
void |
setOracleSiblings(boolean oracleSiblings) |
void |
setOrderByElements(java.util.List<OrderByElement> orderByElements) |
void |
setSelectItems(java.util.List<SelectItem> list) |
void |
setSkip(Skip skip) |
void |
setTop(Top top) |
void |
setUseBrackets(boolean useBrackets) |
void |
setWait(Wait wait)
Sets the
Wait for this SELECT |
void |
setWhere(Expression where) |
java.lang.String |
toString() |
public boolean isUseBrackets()
public void setUseBrackets(boolean useBrackets)
public java.util.List<Table> getIntoTables()
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 setIntoTables(java.util.List<Table> intoTables)
public void setSelectItems(java.util.List<SelectItem> list)
public void addSelectItems(SelectItem... items)
public void setWhere(Expression where)
public void setJoins(java.util.List<Join> list)
public void accept(SelectVisitor selectVisitor)
accept
在接口中 SelectBody
public java.util.List<OrderByElement> getOrderByElements()
public void setOrderByElements(java.util.List<OrderByElement> orderByElements)
public Limit getLimit()
public void setLimit(Limit limit)
public Offset getOffset()
public void setOffset(Offset offset)
public Fetch getFetch()
public void setFetch(Fetch fetch)
public Top getTop()
public void setTop(Top top)
public Skip getSkip()
public void setSkip(Skip skip)
public First getFirst()
public void setFirst(First first)
public Distinct getDistinct()
public void setDistinct(Distinct distinct)
public Expression getHaving()
public void setHaving(Expression expression)
public java.util.List<Expression> 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<Expression> list)
public void addGroupByColumnReference(Expression expr)
public OracleHierarchicalExpression getOracleHierarchical()
public void setOracleHierarchical(OracleHierarchicalExpression oracleHierarchical)
public boolean isOracleSiblings()
public void setOracleSiblings(boolean oracleSiblings)
public boolean isForUpdate()
public void setForUpdate(boolean forUpdate)
public Table getForUpdateTable()
public void setForUpdateTable(Table forUpdateTable)
public OracleHint getOracleHint()
public void setOracleHint(OracleHint oracleHint)
public void setWait(Wait wait)
Wait
for this SELECTwait
- the Wait
for this SELECTpublic Wait getWait()
Wait
set for this SELECTWait
set for this SELECTpublic java.lang.String toString()
toString
在类中 java.lang.Object
public static java.lang.String orderByToString(java.util.List<OrderByElement> orderByElements)
public static java.lang.String orderByToString(boolean oracleSiblings, 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