R - Projection typepublic static interface SQLProjection.MutableSQLProjection<R> extends SQLProjection<R>
SQLProjection to configure selection expressions and converter.SQLProjection.MutableSQLProjection<R>| Modifier and Type | Method and Description |
|---|---|
default String |
addSelection(String selection)
Add a selection expression, with selection alias auto-generation.
|
String |
addSelection(String selection,
boolean generateAlias)
Add a selection expression.
|
void |
addSelection(String selection,
String alias)
Add a selection expression with selection alias.
|
void |
setConverter(SQLResultConverter<R> converter)
Set the result converter.
|
create, create, create, getConverter, getSelection, getSelectionAliasString addSelection(String selection, boolean generateAlias)
selection - Selection to add (not null)generateAlias - Whether to generate an alias label for the selection expressiongenerateAlias was true, the generated selection alias. Given
selection otherwise.default String addSelection(String selection)
selection - Selection to add (not null)void addSelection(String selection, String alias)
selection - Selection to add (not null)alias - Selection alias (not null)void setConverter(SQLResultConverter<R> converter)
converter - the SQLResultConverter to setCopyright © 2019 The Holon Platform. All rights reserved.