Class MethodParams.BuilderBase<BUILDER extends MethodParams.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends MethodParams>

java.lang.Object
io.helidon.data.codegen.common.MethodParams.BuilderBase<BUILDER,PROTOTYPE>
Type Parameters:
BUILDER - type of the builder extending this abstract builder
PROTOTYPE - type of the prototype interface that would be built by Prototype.Builder.buildPrototype()
All Implemented Interfaces:
Prototype.Builder<BUILDER,PROTOTYPE>
Direct Known Subclasses:
MethodParams.Builder
Enclosing interface:
MethodParams

public abstract static class MethodParams.BuilderBase<BUILDER extends MethodParams.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends MethodParams> extends Object implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for MethodParams.
  • Constructor Details

    • BuilderBase

      protected BuilderBase()
      Protected to support extensibility.
  • Method Details

    • from

      public BUILDER from(MethodParams prototype)
      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

      public BUILDER from(MethodParams.BuilderBase<?,?> builder)
      Update this builder from an existing prototype builder instance.
      Parameters:
      builder - existing builder prototype to update this builder from
      Returns:
      updated builder instance
    • clearOrder

      public BUILDER clearOrder()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • order

      public BUILDER order(TypedElementInfo order)
      Query result ordering parameter.
      Parameters:
      order - the ordering parameter info
      Returns:
      updated builder instance
      See Also:
    • order

      public BUILDER order(Consumer<TypedElementInfo.Builder> consumer)
      Query result ordering parameter.
      Parameters:
      consumer - the ordering parameter info
      Returns:
      updated builder instance
      See Also:
    • clearPageRequest

      public BUILDER clearPageRequest()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • pageRequest

      public BUILDER pageRequest(TypedElementInfo pageRequest)
      Pageable query result parameter.
      Parameters:
      pageRequest - the page request parameter info
      Returns:
      updated builder instance
      See Also:
    • pageRequest

      public BUILDER pageRequest(Consumer<TypedElementInfo.Builder> consumer)
      Pageable query result parameter.
      Parameters:
      consumer - the page request parameter info
      Returns:
      updated builder instance
      See Also:
    • parameters

      public BUILDER parameters(List<? extends TypedElementInfo> parameters)
      List of common method parameters to be added to method prototype.
      Parameters:
      parameters - the common method parameters
      Returns:
      updated builder instance
      See Also:
    • addParameters

      public BUILDER addParameters(List<? extends TypedElementInfo> parameters)
      List of common method parameters to be added to method prototype.
      Parameters:
      parameters - the common method parameters
      Returns:
      updated builder instance
      See Also:
    • addParameter

      public BUILDER addParameter(TypedElementInfo parameter)
      List of common method parameters to be added to method prototype.
      Parameters:
      parameter - the common method parameters
      Returns:
      updated builder instance
      See Also:
    • addParameter

      public BUILDER addParameter(Consumer<TypedElementInfo.Builder> consumer)
      List of common method parameters to be added to method prototype.
      Parameters:
      consumer - the common method parameters
      Returns:
      updated builder instance
      See Also:
    • order

      public Optional<TypedElementInfo> order()
      Query result ordering parameter.
      Returns:
      the order
    • pageRequest

      public Optional<TypedElementInfo> pageRequest()
      Pageable query result parameter.
      Returns:
      the page request
    • parameters

      public List<TypedElementInfo> parameters()
      List of common method parameters to be added to method prototype.
      Returns:
      the parameters
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • preBuildPrototype

      protected void preBuildPrototype()
      Handles providers and decorators.
    • validatePrototype

      protected void validatePrototype()
      Validates required properties.