Interface SelectBuilder.SelectFromAndOrderBy
- All Superinterfaces:
SelectBuilder.BuildSelect,SelectBuilder.SelectFrom,SelectBuilder.SelectLimitOffset,SelectBuilder.SelectLock,SelectBuilder.SelectOrdered
- All Known Subinterfaces:
SelectBuilder.SelectFromAndJoin
- Enclosing interface:
- SelectBuilder
public static interface SelectBuilder.SelectFromAndOrderBy
extends SelectBuilder.SelectFrom, SelectBuilder.SelectOrdered, SelectBuilder.SelectLimitOffset, SelectBuilder.SelectLock, SelectBuilder.BuildSelect
Builder exposing
FROM, JOIN, WHERE, LIMIT/OFFSET and LOCK methods.-
Method Summary
Modifier and TypeMethodDescriptionDeclare aTabletoSELECT … FROM.from(Collection<? extends TableLike> tables) Declare one or moreTables toSELECT … FROM.Declare aTabletoSELECT … FROM.Declare one or moreTables toSELECT … FROM.limit(long limit) Apply a limit of rows to read.limitOffset(long limit, long offset) Applylimitandoffsetparameters to the select statement.offset(long offset) Apply an offset where to start reading rows.orderBy(Collection<? extends OrderByField> orderByFields) Add one or moreorder by fields.orderBy(Expression... columns) Add one or morecolumnsto order by.orderBy(OrderByField... orderByFields) Add one or moreorder by fields.Methods inherited from interface org.springframework.data.relational.core.sql.SelectBuilder.BuildSelect
build, buildMethods inherited from interface org.springframework.data.relational.core.sql.SelectBuilder.SelectLock
lock
-
Method Details
-
limitOffset
Description copied from interface:SelectBuilder.SelectLimitOffsetApplylimitandoffsetparameters to the select statement. To read the first 20 rows from start uselimitOffset(20, 0). to read the next 20 uselimitOffset(20, 20).- Specified by:
limitOffsetin interfaceSelectBuilder.SelectLimitOffset- Parameters:
limit- rows to read.offset- row offset, zero-based.- Returns:
thisbuilder.
-
limit
Description copied from interface:SelectBuilder.SelectLimitOffsetApply a limit of rows to read.- Specified by:
limitin interfaceSelectBuilder.SelectLimitOffset- Parameters:
limit- rows to read.- Returns:
thisbuilder.
-
offset
Description copied from interface:SelectBuilder.SelectLimitOffsetApply an offset where to start reading rows.- Specified by:
offsetin interfaceSelectBuilder.SelectLimitOffset- Parameters:
offset- start offset.- Returns:
thisbuilder.
-
from
Description copied from interface:SelectBuilder.SelectFromDeclare aTabletoSELECT … FROM. Multiple calls to this or otherfrommethods keep adding items to the select list and do not replace previously contained items.- Specified by:
fromin interfaceSelectBuilder.SelectFrom- Parameters:
table- the table name toSELECT … FROMmust not be null or empty.- Returns:
thisbuilder.- See Also:
-
from
Description copied from interface:SelectBuilder.SelectFromDeclare aTabletoSELECT … FROM. Multiple calls to this or otherfrommethods keep adding items to the select list and do not replace previously contained items.- Specified by:
fromin interfaceSelectBuilder.SelectFrom- Parameters:
table- the table toSELECT … FROMmust not be null.- Returns:
thisbuilder.- See Also:
-
from
Description copied from interface:SelectBuilder.SelectFromDeclare one or moreTables toSELECT … FROM. Multiple calls to this or otherfrommethods keep adding items to the select list and do not replace previously contained items.- Specified by:
fromin interfaceSelectBuilder.SelectFrom- Parameters:
tables- the tables toSELECT … FROMmust not be null.- Returns:
thisbuilder.- See Also:
-
from
Description copied from interface:SelectBuilder.SelectFromDeclare one or moreTables toSELECT … FROM. Multiple calls to this or otherfrommethods keep adding items to the select list and do not replace previously contained items.- Specified by:
fromin interfaceSelectBuilder.SelectFrom- Parameters:
tables- the tables toSELECT … FROMmust not be null.- Returns:
thisbuilder.- See Also:
-
orderBy
Description copied from interface:SelectBuilder.SelectOrderedAdd one or morecolumnsto order by.- Specified by:
orderByin interfaceSelectBuilder.SelectOrdered- Parameters:
columns- the columns to order by.- Returns:
thisbuilder.
-
orderBy
Description copied from interface:SelectBuilder.SelectOrderedAdd one or moreorder by fields.- Specified by:
orderByin interfaceSelectBuilder.SelectOrdered- Parameters:
orderByFields- the fields to order by.- Returns:
thisbuilder.
-
orderBy
Description copied from interface:SelectBuilder.SelectOrderedAdd one or moreorder by fields.- Specified by:
orderByin interfaceSelectBuilder.SelectOrdered- Parameters:
orderByFields- the fields to order by.- Returns:
thisbuilder.
-