Interface SelectBuilder.SelectFromAndJoin
- All Superinterfaces:
SelectBuilder.BuildSelect,SelectBuilder.SelectFrom,SelectBuilder.SelectFromAndOrderBy,SelectBuilder.SelectJoin,SelectBuilder.SelectLimitOffset,SelectBuilder.SelectLock,SelectBuilder.SelectOrdered,SelectBuilder.SelectWhere
- Enclosing interface:
- SelectBuilder
public static interface SelectBuilder.SelectFromAndJoin
extends SelectBuilder.SelectFromAndOrderBy, SelectBuilder.BuildSelect, SelectBuilder.SelectJoin, SelectBuilder.SelectWhere, SelectBuilder.SelectLimitOffset, SelectBuilder.SelectLock
Builder exposing
FROM, JOIN, WHERE, LIMIT/OFFSET and LOCK methods.-
Method Summary
Modifier and TypeMethodDescriptionfrom(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.Methods inherited from interface org.springframework.data.relational.core.sql.SelectBuilder.BuildSelect
buildMethods inherited from interface org.springframework.data.relational.core.sql.SelectBuilder.SelectFromAndOrderBy
from, orderBy, orderBy, orderByMethods inherited from interface org.springframework.data.relational.core.sql.SelectBuilder.SelectJoin
join, join, join, leftOuterJoinMethods inherited from interface org.springframework.data.relational.core.sql.SelectBuilder.SelectLock
lockMethods inherited from interface org.springframework.data.relational.core.sql.SelectBuilder.SelectWhere
where
-
Method Details
-
from
Declare 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- Specified by:
fromin interfaceSelectBuilder.SelectFromAndOrderBy- Parameters:
table- the table toSELECT … FROMmust not be null.- Returns:
thisbuilder.- See Also:
-
from
Declare 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- Specified by:
fromin interfaceSelectBuilder.SelectFromAndOrderBy- Parameters:
tables- the tables toSELECT … FROMmust not be null.- Returns:
thisbuilder.- See Also:
-
from
Declare 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- Specified by:
fromin interfaceSelectBuilder.SelectFromAndOrderBy- Parameters:
tables- the tables toSELECT … FROMmust not be null.- Returns:
thisbuilder.- See Also:
-
limitOffset
Applylimitandoffsetparameters 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.SelectFromAndOrderBy- Specified by:
limitOffsetin interfaceSelectBuilder.SelectLimitOffset- Parameters:
limit- rows to read.offset- row offset, zero-based.- Returns:
thisbuilder.
-
limit
Apply a limit of rows to read.- Specified by:
limitin interfaceSelectBuilder.SelectFromAndOrderBy- Specified by:
limitin interfaceSelectBuilder.SelectLimitOffset- Parameters:
limit- rows to read.- Returns:
thisbuilder.
-
offset
Apply an offset where to start reading rows.- Specified by:
offsetin interfaceSelectBuilder.SelectFromAndOrderBy- Specified by:
offsetin interfaceSelectBuilder.SelectLimitOffset- Parameters:
offset- start offset.- Returns:
thisbuilder.
-