Package org.eclipse.net4j.db.dml.fluent
Interface SQLSelectSourceStep
- All Superinterfaces:
SQLBuildStep,SQLSelectBuildStep
- All Known Subinterfaces:
SQLSelectFromStep,SQLSelectJoinedStep
A SELECT stage with a source clause and optional further clauses. Repeated FROM additions create
comma-separated sources when there are no joins. If joins follow multiple FROM sources, the
compiler combines those initial sources with CROSS JOIN and groups them as the left operand;
subsequent joins associate left-to-right. Arbitrary explicit join-tree nesting is not supported.
- Since:
- 4.15
- Author:
- Eike Stepper
- No Implement
- This interface is not intended to be implemented by clients.
- No Extend
- This interface is not intended to be extended by clients.
-
Method Summary
Modifier and TypeMethodDescriptiongroupBy(SQLExpression first, SQLExpression... others) Adds the ordered expressions used to group the SELECT result.Starts an INNER JOIN that must receive a complete condition or comparison through ON before it can be completed.default SQLSelectJoinStepjoin(IDBTable.Provider provider) Starts an INNER JOIN with the provider's table, resolved immediately.join(SQLTableRef table) Starts an INNER JOIN that must receive a complete condition or comparison through ON before it can be completed.Starts a LEFT JOIN that must receive a complete condition or comparison through ON before it can be completed.default SQLSelectJoinStepleftJoin(IDBTable.Provider provider) Starts a LEFT JOIN with the provider's table, resolved immediately.leftJoin(SQLTableRef table) Starts a LEFT JOIN that must receive a complete condition or comparison through ON before it can be completed.orderBy(SQLOrderItem first, SQLOrderItem... others) Starts an ORDER BY clause with the supplied items in order.orderByDesc(SQLExpression expression) Starts an ORDER BY clause with one descending expression.where(SQLCondition condition) Supplies a complete reusable WHERE condition or begins a comparison.where(SQLExpression left) Supplies a complete reusable WHERE condition or begins a comparison.Methods inherited from interface org.eclipse.net4j.db.dml.fluent.SQLBuildStep
build, compileMethods inherited from interface org.eclipse.net4j.db.dml.fluent.SQLSelectBuildStep
subSelect
-
Method Details
-
join
Starts an INNER JOIN that must receive a complete condition or comparison through ON before it can be completed. Joins following multiple FROM sources apply to their grouped CROSS JOIN expression.- Parameters:
table- the schema table or table occurrence- Returns:
- the next valid fluent stage
-
join
Starts an INNER JOIN with the provider's table, resolved immediately.- Parameters:
provider- the table provider- Returns:
- the next valid fluent stage
- Throws:
NullPointerException- if the provider or its table isnull
-
join
Starts an INNER JOIN that must receive a complete condition or comparison through ON before it can be completed. Joins following multiple FROM sources apply to their grouped CROSS JOIN expression.- Parameters:
table- the schema table or table occurrence- Returns:
- the next valid fluent stage
-
leftJoin
Starts a LEFT JOIN that must receive a complete condition or comparison through ON before it can be completed. Joins following multiple FROM sources apply to their grouped CROSS JOIN expression.- Parameters:
table- the schema table or table occurrence- Returns:
- the next valid fluent stage
-
leftJoin
Starts a LEFT JOIN with the provider's table, resolved immediately.- Parameters:
provider- the table provider- Returns:
- the next valid fluent stage
- Throws:
NullPointerException- if the provider or its table isnull
-
leftJoin
Starts a LEFT JOIN that must receive a complete condition or comparison through ON before it can be completed. Joins following multiple FROM sources apply to their grouped CROSS JOIN expression.- Parameters:
table- the schema table or table occurrence- Returns:
- the next valid fluent stage
-
where
Supplies a complete reusable WHERE condition or begins a comparison. Complete conditions may be composed with explicit grouping; simple connector chains use SQL operator precedence.- Parameters:
left- the left expression of a comparison- Returns:
- the next valid fluent stage
-
where
Supplies a complete reusable WHERE condition or begins a comparison. Complete conditions may be composed with explicit grouping; simple connector chains use SQL operator precedence.- Parameters:
condition- the complete condition to add- Returns:
- the next valid fluent stage
-
groupBy
Adds the ordered expressions used to group the SELECT result.- Parameters:
first- the first expression in the GROUP BY clauseothers- additional grouping expressions appended in SQL order- Returns:
- the next valid fluent stage
-
orderBy
Starts an ORDER BY clause with the supplied items in order.- Parameters:
first- the first ordering item in the ORDER BY clauseothers- additional ordering items appended in SQL order- Returns:
- the next valid fluent stage
-
orderByDesc
Starts an ORDER BY clause with one descending expression.- Parameters:
expression- the expression used by this clause- Returns:
- the next valid fluent stage
-