Class Projection.Builder
java.lang.Object
io.helidon.data.codegen.query.Projection.BuilderBase<Projection.Builder, Projection>
io.helidon.data.codegen.query.Projection.Builder
- All Implemented Interfaces:
Prototype.Builder<Projection.Builder, Projection>, Builder<Projection.Builder, Projection>, Supplier<Projection>
- Enclosing interface:
Projection
public static class Projection.Builder
extends Projection.BuilderBase<Projection.Builder, Projection>
implements Builder<Projection.Builder, Projection>
Fluent API builder for
Projection.-
Nested Class Summary
Nested classes/interfaces inherited from class Projection.BuilderBase
Projection.BuilderBase.ProjectionImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class Projection.BuilderBase
action, action, clearExpression, clearProperty, clearResult, distinct, distinct, expression, expression, from, from, preBuildPrototype, property, property, property, property, result, result, toString, validatePrototypeModifier and TypeMethodDescriptionaction()Projection action, e.g.action(ProjectionAction action) Projection action, e.g.Clear existing value of expression.Clear existing value of property.Clear existing value of result.booleandistinct()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 voidHandles providers and decorators.property()Projection property.Projection property.property(Consumer<Property.Builder> consumer) Projection property.Projection property.result()Projection return type limitation.result(ProjectionResult result) Projection return type limitation.toString()protected voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault Projectionget()default Projection.Builderidentity()Instance of this builder as the correct type.default Projection.Builderupdate(Consumer<Projection.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault Projection.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<Projection.Builder, Projection>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<Projection.Builder, Projection>- Returns:
- instance of the built type
-