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

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

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

    • BuilderBase

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

    • from

      public BUILDER from(Order 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(Order.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
    • property

      public BUILDER property(String property)
      Entity property used for ordering.

      E.g. this is the path expression in Jakarta Persistence API. In following JPQL query: SELECT t FROM Type t WHERE t.name = :name ORDER BY t.name the entity property is the t.name path expression after ORDER BY keyword.

      Parameters:
      property - entity property
      Returns:
      updated builder instance
      See Also:
    • direction

      public BUILDER direction(OrderDirection direction)
      Direction of the ordering. Default value is OrderDirection.ASC.
      Parameters:
      direction - direction of the ordering
      Returns:
      updated builder instance
      See Also:
    • caseSensitive

      public BUILDER caseSensitive(boolean caseSensitive)
      Whether ordering is case-sensitive. Default value is true.
      Parameters:
      caseSensitive - value of true when ordering is case-sensitive or false otherwise
      Returns:
      updated builder instance
      See Also:
    • property

      public Optional<String> property()
      Entity property used for ordering.

      E.g. this is the path expression in Jakarta Persistence API. In following JPQL query: SELECT t FROM Type t WHERE t.name = :name ORDER BY t.name the entity property is the t.name path expression after ORDER BY keyword.

      Returns:
      the property
    • direction

      public OrderDirection direction()
      Direction of the ordering. Default value is OrderDirection.ASC.
      Returns:
      the direction
    • caseSensitive

      public boolean caseSensitive()
      Whether ordering is case-sensitive. Default value is true.
      Returns:
      the case sensitive
    • toString

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

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

      protected void validatePrototype()
      Validates required properties.