Class Order.BuilderBase.OrderImpl

java.lang.Object
io.helidon.data.Order.BuilderBase.OrderImpl
All Implemented Interfaces:
Prototype.Api, Order
Enclosing class:
Order.BuilderBase<BUILDER extends Order.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends Order>

protected static class Order.BuilderBase.OrderImpl extends Object implements Order
Generated implementation of the prototype, can be extended by descendant prototype implementations.
  • Field Details

    • UNSORTED

      static final Order[] UNSORTED
      Query result ordering with no rules set (unsorted).
  • Constructor Details

    • OrderImpl

      protected OrderImpl(Order.BuilderBase<?,?> builder)
      Create an instance providing a builder.
      Parameters:
      builder - extending builder base of this prototype
  • Method Details

    • property

      public String property()
      Description copied from interface: Order
      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.

      Specified by:
      property in interface Order
      Returns:
      entity property
    • direction

      public OrderDirection direction()
      Description copied from interface: Order
      Direction of the ordering. Default value is OrderDirection.ASC.
      Specified by:
      direction in interface Order
      Returns:
      direction of the ordering
    • caseSensitive

      public boolean caseSensitive()
      Description copied from interface: Order
      Whether ordering is case-sensitive. Default value is true.
      Specified by:
      caseSensitive in interface Order
      Returns:
      value of true when ordering is case-sensitive or false otherwise
    • toString

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object