Module io.helidon.data
Package io.helidon.data
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 builderPROTOTYPE
- type of the prototype interface that would be built byPrototype.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
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
Generated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether ordering is case-sensitive.caseSensitive
(boolean caseSensitive) Whether ordering is case-sensitive.Direction of the ordering.direction
(OrderDirection direction) Direction of the ordering.Update this builder from an existing prototype instance.from
(Order.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.protected void
Handles providers and decorators.property()
Entity property used for ordering.Entity property used for ordering.toString()
protected void
Validates required properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
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
Update this builder from an existing prototype builder instance.- Parameters:
builder
- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
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 thet.name
path expression afterORDER
BY keyword.- Parameters:
property
- entity property- Returns:
- updated builder instance
- See Also:
-
direction
Direction of the ordering. Default value isOrderDirection.ASC
.- Parameters:
direction
- direction of the ordering- Returns:
- updated builder instance
- See Also:
-
caseSensitive
Whether ordering is case-sensitive. Default value istrue
.- Parameters:
caseSensitive
- value oftrue
when ordering is case-sensitive orfalse
otherwise- Returns:
- updated builder instance
- See Also:
-
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 thet.name
path expression afterORDER
BY keyword.- Returns:
- the property
-
direction
Direction of the ordering. Default value isOrderDirection.ASC
.- Returns:
- the direction
-
caseSensitive
public boolean caseSensitive()Whether ordering is case-sensitive. Default value istrue
.- Returns:
- the case sensitive
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-