Class TypedValueQuery.TypedValueBuilder
- All Implemented Interfaces:
QueryBuilder<TypedValue>
,QueryBuilder.Aggregating<TypedValue>
,QueryBuilder.Filtering<TypedValue>
,QueryBuilder.FilteringCriteria<TypedValue>
,QueryBuilder.Grouping<TypedValue>
,QueryBuilder.Paging<TypedValue>
,QueryBuilder.Selecting<TypedValue>
,QueryBuilder.Sorting<TypedValue>
- Enclosing class:
- TypedValueQuery
This class is available as a preview of functionality that will be added to
the supported public API in a future release. While it is in the preview
phase, it is subject to change or removal without deprecation or notice.
Although notice of change is not guaranteed, we will try to let developers
know of major changes through announcements in release notes.
A class for incrementally build a TypedValueQuery
.
The objective of this builder is to help the developer to construct a Query in a more organic way to ease development and avoid invalid configurations.
Each method returns the same Builder instance, but it is bound by interface which the method returns. This way is simulating a flow and the available valid configurations after the current configuration.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
This class encapsulates all the available Aggregation Functions in a more object oriented way.static final class
This class is available as a preview of functionality that will be added to the supported public API in a future release.static final class
This class is available as a preview of functionality that will be added to the supported public API in a future release.static final class
This class is available as a preview of functionality that will be added to the supported public API in a future release.static class
This class is available as a preview of functionality that will be added to the supported public API in a future release.static final class
This class is available as a preview of functionality that will be added to the supported public API in a future release.static final class
This is how you instantiate columns to configure a query for selection, grouping or aggregation.Nested classes/interfaces inherited from interface com.appiancorp.common.query.QueryBuilder
QueryBuilder.Aggregating<T>, QueryBuilder.Filtering<T>, QueryBuilder.FilteringCriteria<T>, QueryBuilder.Grouping<T>, QueryBuilder.Paging<T>, QueryBuilder.Selecting<T>, QueryBuilder.Sorting<T>
-
Constructor Summary
ModifierConstructorDescriptionprotected
Initializes a newly createdGenericBuilder
protected
TypedValueBuilder
(Query<TypedValue> query) Constructs aTypedValueBuilder
using the givenQuery
as a base -
Method Summary
Modifier and TypeMethodDescriptionbuild()
protected LogicalExpression<?>
newLogicalOperation
(LogicalOperator lo, List<Criteria> conditions) Returns aTypedValueLogicalExpression
instance
-
Constructor Details
-
TypedValueBuilder
protected TypedValueBuilder()Initializes a newly createdGenericBuilder
-
TypedValueBuilder
Constructs aTypedValueBuilder
using the givenQuery
as a base- Parameters:
query
- aQuery
-
-
Method Details
-
build
Description copied from interface:QueryBuilder
- Specified by:
build
in interfaceQueryBuilder<TypedValue>
- Overrides:
build
in classQuery.Builder<TypedValue>
- Returns:
- a
Query<T>
instance.
-
newLogicalOperation
Returns aTypedValueLogicalExpression
instance- Specified by:
newLogicalOperation
in classQuery.Builder<TypedValue>
- Parameters:
lo
- logical operation type represented byLogicalOperator
conditions
-- Returns:
- a
TypedValueLogicalExpression
instance
-