Module spring.data.relational
Interface SelectBuilder
public interface SelectBuilder
Entry point to construct a
Select statement.- Since:
- 1.1
- Author:
- Mark Paluch, Jens Schauder, Myeonghyeon Lee
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInterface exposing theSelectbuild method.static interfaceBuilder exposingSELECTandFROMmethods.static interfaceBuilder exposingFROMmethods.static interfaceBuilder exposingFROM,JOIN,WHERE,LIMIT/OFFSETandLOCKmethods.static interfaceBuilder exposingFROM,WHERE,LIMIT/OFFSET, JOINANDandLOCKcontinuation methods.static interfaceBuilder exposingFROM,JOIN,WHERE,LIMIT/OFFSETandLOCKmethods.static interfaceInterface exposingJOINmethods.static interfaceLimit/offset methods.static interfaceLock methods.static interfaceInterface exposingONmethods to declareJOINrelationships.static interfaceBuilder exposing JOIN andJOIN … ONcontinuation methods.static interfaceInterface declaring the target column comparison relationship.static interfaceBuilder exposingORDER BYandLOCKmethods.static interfaceInterface exposingWHERE,LOCKmethods.static interface -
Method Summary
Modifier and TypeMethodDescriptiondistinct()Makes the select statement distinctselect(Collection<? extends Expression> expressions) Include one or moreExpressions in the select list.select(Expression expression) Include aExpressionin the select list.select(Expression... expressions) Include one or moreExpressions in the select list.top(int count) Apply aTOPclause givencount.
-
Method Details
-
top
Apply aTOPclause givencount.- Parameters:
count- the top count.- Returns:
thisSelectBuilder.
-
select
Include aExpressionin the select list.- Parameters:
expression- the expression to include.- Returns:
thisbuilder.- See Also:
-
select
Include one or moreExpressions in the select list.- Parameters:
expressions- the expressions to include.- Returns:
thisbuilder.- See Also:
-
select
Include one or moreExpressions in the select list.- Parameters:
expressions- the expressions to include.- Returns:
thisbuilder.- See Also:
-
distinct
SelectBuilder.SelectAndFrom distinct()Makes the select statement distinct- Returns:
thisbuilder.
-