public static interface SelectBuilder.SelectFromAndJoin extends SelectBuilder.SelectFromAndOrderBy, SelectBuilder.BuildSelect, SelectBuilder.SelectJoin, SelectBuilder.SelectWhere, SelectBuilder.SelectLimitOffset
FROM
, JOIN
, WHERE
and LIMIT/OFFSET
methods.Modifier and Type | Method and Description |
---|---|
SelectBuilder.SelectFromAndJoin |
from(Collection<? extends Table> tables)
Declare one or more
Table s to SELECT … FROM . |
SelectBuilder.SelectFromAndJoin |
from(Table... tables)
Declare one or more
Table s to SELECT … FROM . |
SelectBuilder.SelectFromAndJoin |
from(Table table)
Declare a
Table to SELECT … FROM . |
SelectBuilder.SelectFromAndJoin |
limit(long limit)
Apply a limit of rows to read.
|
SelectBuilder.SelectFromAndJoin |
limitOffset(long limit,
long offset)
Apply
limit and offset parameters to the select statement. |
SelectBuilder.SelectFromAndJoin |
offset(long offset)
Apply an offset where to start reading rows.
|
from, orderBy, orderBy, orderBy
join, join, leftOuterJoin
where
SelectBuilder.SelectFromAndJoin from(Table table)
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
from
in interface SelectBuilder.SelectFromAndOrderBy
table
- the table to SELECT … FROM
must not be null.this
builder.From
,
SQL.table(String)
SelectBuilder.SelectFromAndJoin from(Table... tables)
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
from
in interface SelectBuilder.SelectFromAndOrderBy
tables
- the tables to SELECT … FROM
must not be null.this
builder.From
,
SQL.table(String)
SelectBuilder.SelectFromAndJoin from(Collection<? extends Table> tables)
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
from
in interface SelectBuilder.SelectFromAndOrderBy
tables
- the tables to SELECT … FROM
must not be null.this
builder.From
,
SQL.table(String)
SelectBuilder.SelectFromAndJoin limitOffset(long limit, long offset)
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.SelectFromAndOrderBy
limitOffset
in interface SelectBuilder.SelectLimitOffset
limit
- rows to read.offset
- row offset, zero-based.this
builder.SelectBuilder.SelectFromAndJoin limit(long limit)
limit
in interface SelectBuilder.SelectFromAndOrderBy
limit
in interface SelectBuilder.SelectLimitOffset
limit
- rows to read.this
builder.SelectBuilder.SelectFromAndJoin offset(long offset)
offset
in interface SelectBuilder.SelectFromAndOrderBy
offset
in interface SelectBuilder.SelectLimitOffset
offset
- start offset.this
builder.Copyright © 2017–2020 Pivotal Software, Inc.. All rights reserved.