X
- The result typeBaseCriteriaBuilder<T,X>
, BaseQueryBuilder<T,X>
, BaseSubqueryBuilder<X>
, CriteriaBuilder<T>
, FullQueryBuilder<T,X>
, LeafOngoingSetOperationCriteriaBuilder<X>
, LeafOngoingSetOperationSubqueryBuilder<X>
, OngoingSetOperationCriteriaBuilder<T,Y>
, OngoingSetOperationSubqueryBuilder<T,Y>
, PaginatedCriteriaBuilder<T>
, QueryBuilder<T,X>
, StartOngoingSetOperationCriteriaBuilder<X,Y>
, StartOngoingSetOperationSubqueryBuilder<X,Y>
, SubqueryBuilder<T>
public interface SelectBuilder<X>
Modifier and Type | Method | Description |
---|---|---|
X |
select(String expression) |
Adds a select clause with the given expression to the query.
|
X |
select(String expression,
String alias) |
Adds a select clause with the given expression and alias to the query.
|
CaseWhenStarterBuilder<X> |
selectCase() |
Like
selectCase(java.lang.String) but without an alias. |
CaseWhenStarterBuilder<X> |
selectCase(String alias) |
Starts a
CaseWhenBuilder with the given alias as select alias. |
SimpleCaseWhenStarterBuilder<X> |
selectSimpleCase(String caseOperand) |
Like
selectSimpleCase(java.lang.String, java.lang.String) but without an alias. |
SimpleCaseWhenStarterBuilder<X> |
selectSimpleCase(String caseOperand,
String alias) |
Starts a
SimpleCaseWhenBuilder with the given alias as select alias. |
MultipleSubqueryInitiator<X> |
selectSubqueries(String expression) |
Like
selectSubqueries(java.lang.String,java.lang.String) but without a select alias. |
MultipleSubqueryInitiator<X> |
selectSubqueries(String expression,
String selectAlias) |
Starts a
MultipleSubqueryInitiator for a new select item with the given select alias. |
SubqueryInitiator<X> |
selectSubquery() |
Like
selectSubquery(java.lang.String) but without an alias. |
SubqueryBuilder<X> |
selectSubquery(FullQueryBuilder<?,?> criteriaBuilder) |
Like
selectSubquery(java.lang.String, FullQueryBuilder) but without an alias. |
SubqueryInitiator<X> |
selectSubquery(String alias) |
Starts a
SubqueryInitiator for the select item with the given alias. |
SubqueryBuilder<X> |
selectSubquery(String alias,
FullQueryBuilder<?,?> criteriaBuilder) |
Starts a
SubqueryBuilder based on the given criteria builder for the select item with the given alias. |
SubqueryInitiator<X> |
selectSubquery(String subqueryAlias,
String expression) |
Like
selectSubquery(java.lang.String,java.lang.String,java.lang.String) but without a select alias. |
SubqueryBuilder<X> |
selectSubquery(String subqueryAlias,
String expression,
FullQueryBuilder<?,?> criteriaBuilder) |
Like
selectSubquery(java.lang.String,java.lang.String,java.lang.String, FullQueryBuilder) but without a select alias. |
SubqueryInitiator<X> |
selectSubquery(String subqueryAlias,
String expression,
String selectAlias) |
Starts a
SubqueryInitiator for a new select item with the given select alias. |
SubqueryBuilder<X> |
selectSubquery(String subqueryAlias,
String expression,
String selectAlias,
FullQueryBuilder<?,?> criteriaBuilder) |
Starts a
SubqueryBuilder based on the given criteria builder for a new select item with the given select alias. |
CaseWhenStarterBuilder<X> selectCase()
selectCase(java.lang.String)
but without an alias.CaseWhenStarterBuilder<X> selectCase(String alias)
CaseWhenBuilder
with the given alias as select alias.alias
- The select alias for the case when expressionSimpleCaseWhenStarterBuilder<X> selectSimpleCase(String caseOperand)
selectSimpleCase(java.lang.String, java.lang.String)
but without an alias.caseOperand
- The case operandSimpleCaseWhenStarterBuilder<X> selectSimpleCase(String caseOperand, String alias)
SimpleCaseWhenBuilder
with the given alias as select alias.
The expression is the case operand which will be compared to the when expressions defined in the subsequent
SimpleCaseWhenBuilder.caseOperand
- The case operandalias
- The select alias for the simple case when expressionSubqueryInitiator<X> selectSubquery()
selectSubquery(java.lang.String)
but without an alias.SubqueryInitiator<X> selectSubquery(String alias)
SubqueryInitiator
for the select item with the given alias.
When the builder finishes, the select item is added to the parent container represented by the type X
.alias
- The select alias for the subquerySubqueryInitiator<X> selectSubquery(String subqueryAlias, String expression, String selectAlias)
SubqueryInitiator
for a new select item with the given select alias.
All occurrences of subqueryAlias
in expression
will be replaced by the subquery. When the builder
finishes, the select item is added to the parent container represented by the type X
.
subqueryAlias
- The alias for the subquery which will be replaced by the actual subqueryexpression
- The expression which will be added as select item.
This expression contains the subqueryAlias
to define the insertion points for the subquery.selectAlias
- The select alias for the expressionSubqueryInitiator<X> selectSubquery(String subqueryAlias, String expression)
selectSubquery(java.lang.String,java.lang.String,java.lang.String)
but without a select alias.subqueryAlias
- The alias for the subquery which will be replaced by the actual subqueryexpression
- The expression which will be added as select itemMultipleSubqueryInitiator<X> selectSubqueries(String expression, String selectAlias)
MultipleSubqueryInitiator
for a new select item with the given select alias.
All occurrences of subsequently defined subqueryAlias
es in expression
will be replaced by the respective subquery.
When the builder finishes, the select item is added to the parent container represented by the type X
.
expression
- The expression which will be added as select item.
This expression contains the subqueryAlias
to define the insertion points for the subquery.selectAlias
- The select alias for the expressionMultipleSubqueryInitiator<X> selectSubqueries(String expression)
selectSubqueries(java.lang.String,java.lang.String)
but without a select alias.expression
- The expression which will be added as select itemSubqueryBuilder<X> selectSubquery(FullQueryBuilder<?,?> criteriaBuilder)
selectSubquery(java.lang.String, FullQueryBuilder)
but without an alias.criteriaBuilder
- The criteria builder to base the subquery onSubqueryBuilder<X> selectSubquery(String alias, FullQueryBuilder<?,?> criteriaBuilder)
SubqueryBuilder
based on the given criteria builder for the select item with the given alias.
When the builder finishes, the select item is added to the parent container represented by the type X
.alias
- The select alias for the subquerycriteriaBuilder
- The criteria builder to base the subquery onSubqueryBuilder<X> selectSubquery(String subqueryAlias, String expression, String selectAlias, FullQueryBuilder<?,?> criteriaBuilder)
SubqueryBuilder
based on the given criteria builder for a new select item with the given select alias.
All occurrences of subqueryAlias
in expression
will be replaced by the subquery. When the builder
finishes, the select item is added to the parent container represented by the type X
.
subqueryAlias
- The alias for the subquery which will be replaced by the actual subqueryexpression
- The expression which will be added as select item.
This expression contains the subqueryAlias
to define the insertion points for the subquery.selectAlias
- The select alias for the expressioncriteriaBuilder
- The criteria builder to base the subquery onSubqueryBuilder<X> selectSubquery(String subqueryAlias, String expression, FullQueryBuilder<?,?> criteriaBuilder)
selectSubquery(java.lang.String,java.lang.String,java.lang.String, FullQueryBuilder)
but without a select alias.subqueryAlias
- The alias for the subquery which will be replaced by the actual subqueryexpression
- The expression which will be added as select itemcriteriaBuilder
- The criteria builder to base the subquery onX select(String expression)
expression
- The expression for the select clauseCopyright © 2014–2019 Blazebit. All rights reserved.