T
- The result typeX
- The concrete builder typepublic interface SelectBuilder<T,X extends SelectBuilder<T,X>>
Modifier and Type | Method and Description |
---|---|
SelectBuilder<T,?> |
select(String expression)
Adds a select clause with the given expression to the query.
|
SelectBuilder<T,?> |
select(String expression,
String alias)
Adds a select clause with the given expression and alias to the query.
|
CaseWhenStarterBuilder<? extends SelectBuilder<T,?>> |
selectCase()
Like
selectCase(java.lang.String) but without an alias. |
CaseWhenStarterBuilder<? extends SelectBuilder<T,?>> |
selectCase(String alias)
Starts a
CaseWhenBuilder with the given alias as select alias. |
SimpleCaseWhenStarterBuilder<? extends SelectBuilder<T,?>> |
selectSimpleCase(String caseOperand)
Like
selectSimpleCase(java.lang.String, java.lang.String) but without an alias. |
SimpleCaseWhenStarterBuilder<? extends SelectBuilder<T,?>> |
selectSimpleCase(String caseOperand,
String alias)
Starts a
SimpleCaseWhenBuilder with the given alias as select alias. |
SubqueryInitiator<? extends SelectBuilder<T,?>> |
selectSubquery()
Like
selectSubquery(java.lang.String) but without an alias. |
SubqueryInitiator<? extends SelectBuilder<T,?>> |
selectSubquery(String alias)
Starts a
SubqueryInitiator for the select item with the given alias. |
SubqueryInitiator<? extends SelectBuilder<T,?>> |
selectSubquery(String subqueryAlias,
String expression)
Like
selectSubquery(java.lang.String,java.lang.String,java.lang.String) but without a select alias. |
SubqueryInitiator<? extends SelectBuilder<T,?>> |
selectSubquery(String subqueryAlias,
String expression,
String selectAlias)
Starts a
SubqueryInitiator for a new select item with the given select alias. |
CaseWhenStarterBuilder<? extends SelectBuilder<T,?>> selectCase()
selectCase(java.lang.String)
but without an alias.CaseWhenStarterBuilder<? extends SelectBuilder<T,?>> selectCase(String alias)
CaseWhenBuilder
with the given alias as select alias.alias
- The select alias for the case when expressionSimpleCaseWhenStarterBuilder<? extends SelectBuilder<T,?>> selectSimpleCase(String caseOperand)
selectSimpleCase(java.lang.String, java.lang.String)
but without an alias.caseOperand
- The case operandSimpleCaseWhenStarterBuilder<? extends SelectBuilder<T,?>> 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<? extends SelectBuilder<T,?>> selectSubquery()
selectSubquery(java.lang.String)
but without an alias.SubqueryInitiator<? extends SelectBuilder<T,?>> 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<? extends SelectBuilder<T,?>> 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<? extends SelectBuilder<T,?>> 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 itemSelectBuilder<T,?> select(String expression)
expression
- The expression for the select clauseSelectBuilder<T,?> select(String expression, String alias)
expression
- The expression for the select clausealias
- The alias for the expressionCopyright © 2015 Blazebit. All Rights Reserved.