public class FromClause extends AbstractFragment implements SelectFragment
FROM clause of an SQL SELECT statement.root| Constructor and Description |
|---|
FromClause(Fragment root)
Create a new instance of a
FromClause. |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(SelectVisitor visitor)
Accept a visitor (e.g.
|
FromClause |
fullJoin(String name,
String specification)
Create a new full
Join that belongs to a FROM clause. |
FromClause |
fullOuterJoin(String name,
String specification)
Create a new full outer
Join that belongs to a FROM clause. |
boolean |
hasSubSelect()
Check if the
FromClause contains a sub-select statement. |
FromClause |
innerJoin(String name,
String specification)
Create a new inner
Join that belongs to a FROM clause. |
FromClause |
join(String name,
String specification)
Create a new
Join that belongs to a FROM clause. |
FromClause |
leftJoin(String name,
String specification)
Create a new left
Join that belongs to a FROM clause. |
FromClause |
leftOuterJoin(String name,
String specification)
Create a new left outer
Join that belongs to a FROM clause. |
FromClause |
rightJoin(String name,
String specification)
Create a new right
Join that belongs to a FROM clause. |
FromClause |
rightOuterJoin(String name,
String specification)
Create a new right outer
Join that belongs to a FROM clause. |
FromClause |
select(Select select)
Add a select to the
FromClause. |
FromClause |
table(String name)
Add a table name to the
FromClause. |
FromClause |
tableAs(String name,
String as)
Add a table name with an alias to the
FromClause. |
FromClause |
valueTable(ValueTable valueTable)
Create a
FromClause from a value table. |
FromClause |
valueTableAs(ValueTable valueTable,
String tableNameAlias,
String... columnNameAliases)
Create a
FromClause from a value table and an alias. |
getRootpublic FromClause(Fragment root)
FromClause.root - root SQL statement this FROM clause belongs topublic FromClause table(String name)
FromClause.name - table nameFROM clausepublic FromClause tableAs(String name, String as)
FromClause.name - table nameas - table aliasFROM clausepublic FromClause valueTable(ValueTable valueTable)
FromClause from a value table.valueTable - table of value expressionsFROM clausepublic FromClause valueTableAs(ValueTable valueTable, String tableNameAlias, String... columnNameAliases)
FromClause from a value table and an alias.valueTable - table of value expressionstableNameAlias - table aliascolumnNameAliases - columns aliasesFROM clausepublic FromClause join(String name, String specification)
Join that belongs to a FROM clause.name - name of the table to be joinedspecification - join conditionsFROM clausepublic FromClause innerJoin(String name, String specification)
Join that belongs to a FROM clause.name - name of the table to be joinedspecification - join conditionsFROM clausepublic FromClause leftJoin(String name, String specification)
Join that belongs to a FROM clause.name - name of the table to be joinedspecification - join conditionsFROM clausepublic FromClause rightJoin(String name, String specification)
Join that belongs to a FROM clause.name - name of the table to be joinedspecification - join conditionsFROM clausepublic FromClause fullJoin(String name, String specification)
Join that belongs to a FROM clause.name - name of the table to be joinedspecification - join conditionsFROM clausepublic FromClause leftOuterJoin(String name, String specification)
Join that belongs to a FROM clause.name - name of the table to be joinedspecification - join conditionsFROM clausepublic FromClause rightOuterJoin(String name, String specification)
Join that belongs to a FROM clause.name - name of the table to be joinedspecification - join conditionsFROM clausepublic FromClause fullOuterJoin(String name, String specification)
Join that belongs to a FROM clause.name - name of the table to be joinedspecification - join conditionsFROM clausepublic FromClause select(Select select)
FromClause.select - SELECT statementFROM clausepublic boolean hasSubSelect()
FromClause contains a sub-select statement.FromClause contains a sub-select statementpublic void accept(SelectVisitor visitor)
SelectFragmentaccept in interface SelectFragmentvisitor - visitor to acceptCopyright © 2018–2021. All rights reserved.