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

java.lang.Object
io.helidon.data.codegen.query.OrderExpression.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:
OrderExpression.Builder
Enclosing interface:
OrderExpression

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

    • BuilderBase

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

    • from

      public BUILDER from(OrderExpression 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(OrderExpression.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
    • operator

      public BUILDER operator(OrderOperator operator)
      Ordering operator.
      Parameters:
      operator - the operator
      Returns:
      updated builder instance
      See Also:
    • property

      public BUILDER property(Property property)
      Ordering entity property.
      Parameters:
      property - the entity property
      Returns:
      updated builder instance
      See Also:
    • property

      public BUILDER property(Consumer<Property.Builder> consumer)
      Ordering entity property.
      Parameters:
      consumer - consumer of builder for the entity property
      Returns:
      updated builder instance
      See Also:
    • property

      public BUILDER property(Supplier<? extends Property> supplier)
      Ordering entity property.
      Parameters:
      supplier - supplier of the entity property
      Returns:
      updated builder instance
      See Also:
    • operator

      public OrderOperator operator()
      Ordering operator.
      Returns:
      the operator
    • property

      public Optional<Property> property()
      Ordering entity property.
      Returns:
      the property
    • toString

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

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

      protected void validatePrototype()
      Validates required properties.