java.lang.Object
org.litebridgedb.orm.api.select.model.SelectSpec
- Direct Known Subclasses:
DtoSelectSpec,SqlSelectSpec
Base specification for constructing a SQL SELECT statement.
This class encapsulates table, column, join, condition, order by, and limit specifications for building a query.
Its subclasses DtoSelectSpec and SqlSelectSpec
specialise in dealing with DTOs and SQL-specific constructs, respectively.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ExpressionSpec> protected @Nullable GroupBySpecprotected @Nullable List<ConditionSpec> protected @Nullable LimitSpecprotected final LitebridgeContextprotected @Nullable List<OrderBySpec> protected @Nullable SelectExpressionMapperprotected @Nullable Tableprotected @Nullable List<ConditionSpec> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExpressions(List<? extends ExpressionSpec> expressions) convertToSelectExpressionStream(ExpressionSpec[] expressionSpecs, boolean useSelectReferences) @Nullable StringgetDtoAlias(Class<?> dtoClass) @Nullable GroupBySpecgetJoins()@Nullable LimitSpecgetLimit()@Nullable List<OrderBySpec> getTable()@Nullable List<ConditionSpec> newHavingCondition(ExpressionSpec expressionSpec) newOrderBy(List<ExpressionSpec> expressions) newOrderBy(ExpressionSpec... expressions) newWhereCondition(Column column) newWhereCondition(ExpressionSpec expressionSpec) voidsetDtoAlias(Class<?> dtoClass, String alias) voidsetExpressions(List<ExpressionSpec> expressionSpecs) voidsetGroupBy(@Nullable GroupBySpec groupBy) voidvoidvoidsetOrderBys(@Nullable List<OrderBySpec> orderBys) voidsetProtoExpressionResolver(ProtoExpressionResolver protoExpressionResolver) voidvoidsetWhereConditions(@Nullable List<ConditionSpec> whereConditions) toSelect()
-
Field Details
-
selectExpressionMapper
-
litebridgeContext
-
table
-
expressionSpecs
-
joins
-
whereConditions
-
groupBy
-
havingConditions
-
orderBys
-
limit
-
dtoAliases
-
-
Constructor Details
-
SelectSpec
-
-
Method Details
-
getTable
-
setTable
-
setProtoExpressionResolver
-
selectExpressionMapper
-
getExpressions
-
setExpressions
-
addExpressions
-
getJoins
-
setJoins
-
getWhereConditions
-
setWhereConditions
-
newWhereCondition
-
newWhereCondition
-
newHavingCondition
-
getGroupBy
-
setGroupBy
-
getOrderBys
-
setOrderBys
-
newOrderBy
-
newOrderBy
-
getLimit
-
setLimit
-
ensureLimit
-
setDtoAlias
-
getDtoAlias
-
toSelect
-
convertToSelectExpressionStream
public Stream<SelectExpression> convertToSelectExpressionStream(ExpressionSpec[] expressionSpecs, boolean useSelectReferences)
-