Module is.codion.framework.domain
Interface EntitySelectQuery
public sealed interface EntitySelectQuery
Defines a select query or parts of a select query, that is, from, columns, where, groupBy, having and orderBy clauses.
Supports Common Table Expressions (CTEs) via the
EntitySelectQuery.Builder.with(String) method.
EntitySelectQuery.Builder provided by builder().-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic EntitySelectQuery.Builderbuilder()Creates aEntitySelectQuery.Buildercolumns()from()groupBy()having()orderBy()where()with()boolean
-
Method Details
-
with
- Returns:
- the map of CTE names to their queries, empty if no CTEs defined
-
withRecursive
boolean withRecursive()- Returns:
- true if the WITH clause should be marked as RECURSIVE
-
columns
- Returns:
- the COLUMNS clause
-
from
- Returns:
- the FROM clause
-
where
- Returns:
- the WHERE clause
-
groupBy
- Returns:
- the GROUP BY clause
-
having
- Returns:
- the HAVING clause
-
orderBy
- Returns:
- the order by clause
-
builder
Creates aEntitySelectQuery.Builder- Returns:
- a new
EntitySelectQuery.Builderinstance.
-