public static interface SelectBuilder.SelectFromAndOrderBy extends SelectBuilder.SelectFrom, SelectBuilder.SelectOrdered, SelectBuilder.SelectLimitOffset, SelectBuilder.BuildSelect
FROM
, JOIN
, WHERE
and LIMIT/OFFSET
methods.Modifier and Type | Method and Description |
---|---|
SelectBuilder.SelectFromAndOrderBy |
from(Collection<? extends Table> tables)
Declare one or more
Table s to SELECT … FROM . |
SelectBuilder.SelectFromAndOrderBy |
from(String table)
Declare a
Table to SELECT … FROM . |
SelectBuilder.SelectFromAndOrderBy |
from(Table... tables)
Declare one or more
Table s to SELECT … FROM . |
SelectBuilder.SelectFromAndOrderBy |
from(Table table)
Declare a
Table to SELECT … FROM . |
SelectBuilder.SelectFromAndOrderBy |
limit(long limit)
Apply a limit of rows to read.
|
SelectBuilder.SelectFromAndOrderBy |
limitOffset(long limit,
long offset)
Apply
limit and offset parameters to the select statement. |
SelectBuilder.SelectFromAndOrderBy |
offset(long offset)
Apply an offset where to start reading rows.
|
SelectBuilder.SelectFromAndOrderBy |
orderBy(Collection<? extends OrderByField> orderByFields)
Add one or more
order by fields . |
SelectBuilder.SelectFromAndOrderBy |
orderBy(Column... columns)
Add one or more
columns to order by. |
SelectBuilder.SelectFromAndOrderBy |
orderBy(OrderByField... orderByFields)
Add one or more
order by fields . |
build
SelectBuilder.SelectFromAndOrderBy limitOffset(long limit, long offset)
SelectBuilder.SelectLimitOffset
limit
and offset
parameters to the select statement. To read the first 20 rows from start
use limitOffset(20, 0)
. to read the next 20 use limitOffset(20, 20)
.limitOffset
in interface SelectBuilder.SelectLimitOffset
limit
- rows to read.offset
- row offset, zero-based.this
builder.SelectBuilder.SelectFromAndOrderBy limit(long limit)
SelectBuilder.SelectLimitOffset
limit
in interface SelectBuilder.SelectLimitOffset
limit
- rows to read.this
builder.SelectBuilder.SelectFromAndOrderBy offset(long offset)
SelectBuilder.SelectLimitOffset
offset
in interface SelectBuilder.SelectLimitOffset
offset
- start offset.this
builder.SelectBuilder.SelectFromAndOrderBy from(String table)
SelectBuilder.SelectFrom
Table
to SELECT … FROM
. Multiple calls to this or other from
methods keep
adding items to the select list and do not replace previously contained items.from
in interface SelectBuilder.SelectFrom
table
- the table name to SELECT … FROM
must not be null or empty.this
builder.From
,
SQL.table(String)
SelectBuilder.SelectFromAndOrderBy from(Table table)
SelectBuilder.SelectFrom
Table
to SELECT … FROM
. Multiple calls to this or other from
methods keep
adding items to the select list and do not replace previously contained items.from
in interface SelectBuilder.SelectFrom
table
- the table to SELECT … FROM
must not be null.this
builder.From
,
SQL.table(String)
SelectBuilder.SelectFromAndOrderBy from(Table... tables)
SelectBuilder.SelectFrom
Table
s to SELECT … FROM
. Multiple calls to this or other from
methods
keep adding items to the select list and do not replace previously contained items.from
in interface SelectBuilder.SelectFrom
tables
- the tables to SELECT … FROM
must not be null.this
builder.From
,
SQL.table(String)
SelectBuilder.SelectFromAndOrderBy from(Collection<? extends Table> tables)
SelectBuilder.SelectFrom
Table
s to SELECT … FROM
. Multiple calls to this or other from
methods
keep adding items to the select list and do not replace previously contained items.from
in interface SelectBuilder.SelectFrom
tables
- the tables to SELECT … FROM
must not be null.this
builder.From
,
SQL.table(String)
SelectBuilder.SelectFromAndOrderBy orderBy(Column... columns)
SelectBuilder.SelectOrdered
columns
to order by.orderBy
in interface SelectBuilder.SelectOrdered
columns
- the columns to order by.this
builder.SelectBuilder.SelectFromAndOrderBy orderBy(OrderByField... orderByFields)
SelectBuilder.SelectOrdered
order by fields
.orderBy
in interface SelectBuilder.SelectOrdered
orderByFields
- the fields to order by.this
builder.SelectBuilder.SelectFromAndOrderBy orderBy(Collection<? extends OrderByField> orderByFields)
SelectBuilder.SelectOrdered
order by fields
.orderBy
in interface SelectBuilder.SelectOrdered
orderByFields
- the fields to order by.this
builder.Copyright © 2017–2020 Pivotal Software, Inc.. All rights reserved.