Interface IListQueryBuilder.IBuilderForFields<R>
- All Known Subinterfaces:
IGetByKeyQueryBuilder.IGetByKeyQueryBuilderWithTable<R>
- All Known Implementing Classes:
AGetByKeyQueryCompiler,AListQueryCompiler,CompositeCompiledGetByKeyQueryBuilder,CompositeCompiledListQueryBuilder
- Enclosing interface:
IListQueryBuilder
public static interface IListQueryBuilder.IBuilderForFields<R>
-
Method Summary
Modifier and TypeMethodDescriptionSelects all fields from the base table.default RwithAliasedFields(AliasedField... fields) Selects a defined set of fields.withAliasedFields(List<AliasedField> fields) Selects a defined set of fields.default RwithFieldsWithoutAlias(FieldPath... fields) Selects a list of fields given their field paths, generating random aliases for them.withFieldsWithoutAlias(List<FieldPath> fields) Selects a list of fields given their field paths, generating random aliases for them.default RwithTableFields(String... fieldNames) Selects a defined set of fields from the base table.default RwithTableFields(List<String> fieldNames) Selects a defined set of fields from the base table.
-
Method Details
-
withAliasedFields
Selects a defined set of fields.- Parameters:
fields- the fields to select- Returns:
- the builder
-
withAliasedFields
Selects a defined set of fields.- Parameters:
fields- the fields to select- Returns:
- the builder
-
withTableFields
Selects a defined set of fields from the base table.The names of the fields will be used as aliases in the result.
- Parameters:
fieldNames- the names of the fields to select- Returns:
- the builder
-
withTableFields
Selects a defined set of fields from the base table.The names of the fields will be used as aliases in the result.
- Parameters:
fieldNames- the names of the fields to select- Returns:
- the builder
-
withFieldsWithoutAlias
Selects a list of fields given their field paths, generating random aliases for them.With this method, values will only be accessed using the positions of the fields. Aliases assigned to each selected field is generated randomly and users must not rely on the names returned by
IRecordFormat.getFieldName(int)to access values.- Returns:
- this builder
-
withFieldsWithoutAlias
Selects a list of fields given their field paths, generating random aliases for them.With this method, values will only be accessed using the positions of the fields. Aliases assigned to each selected field is generated randomly and users must not rely on the names returned by
IRecordFormat.getFieldName(int)to access values.- Returns:
- this builder
-
selectingAllTableFields
R selectingAllTableFields()Selects all fields from the base table.- Returns:
- the builder
-