Package io.helidon.data.codegen.query
Class Projection.BuilderBase<BUILDER extends Projection.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends Projection>
java.lang.Object
io.helidon.data.codegen.query.Projection.BuilderBase<BUILDER,PROTOTYPE>
- Type Parameters:
BUILDER
- type of the builder extending this abstract builderPROTOTYPE
- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER,
PROTOTYPE>
- Direct Known Subclasses:
Projection.Builder
- Enclosing interface:
Projection
public abstract static class Projection.BuilderBase<BUILDER extends Projection.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends Projection>
extends Object
implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for
Projection
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
Generated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction()
Projection action, e.g.action
(ProjectionAction action) Projection action, e.g.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.boolean
distinct()
Whether projection is distinct.distinct
(boolean distinct) Whether projection is distinct.Projection expression.expression
(ProjectionExpression expression) Projection expression.from
(Projection prototype) Update this builder from an existing prototype instance.from
(Projection.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.protected void
Handles providers and decorators.property()
Projection property.Projection property.property
(Consumer<Property.Builder> consumer) Projection property.result()
Projection return type limitation.result
(ProjectionResult result) Projection return type limitation.toString()
protected void
Validates required properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype
- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder
- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
action
Projection action, e.g.SELECT
,DELETE
,UPDATE
.- Parameters:
action
- the projection action- Returns:
- updated builder instance
- See Also:
-
clearResult
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
result
Projection return type limitation.- Parameters:
result
- the return type limitation- Returns:
- updated builder instance
- See Also:
-
clearExpression
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
expression
Projection expression.- Parameters:
expression
- the projection expression.- Returns:
- updated builder instance
- See Also:
-
clearProperty
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
property
Projection property.- Parameters:
property
- the projection property.- Returns:
- updated builder instance
- See Also:
-
property
Projection property.- Parameters:
consumer
- the projection property.- Returns:
- updated builder instance
- See Also:
-
distinct
Whether projection is distinct.- Parameters:
distinct
- value oftrue
when projection is distinct orfalse
otherwise- Returns:
- updated builder instance
- See Also:
-
action
Projection action, e.g.SELECT
,DELETE
,UPDATE
.- Returns:
- the action
-
result
Projection return type limitation.- Returns:
- the result
-
expression
Projection expression.- Returns:
- the expression
-
property
Projection property.- Returns:
- the property
-
distinct
public boolean distinct()Whether projection is distinct.- Returns:
- the distinct
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-