Uses of Interface
org.seedstack.business.specification.Specification
-
Packages that use Specification Package Description org.seedstack.business.domain Provides classes, interfaces and annotations for building the domain layer.org.seedstack.business.pagination.dsl Provides a fluent DSL to paginate domain objects.org.seedstack.business.specification Provides classes, interfaces and annotations to create composite specifications.org.seedstack.business.specification.dsl Provides a fluent DSL that facilitates the creation of complex composite specifications.org.seedstack.business.spi Provides classes, interfaces and annotations to extend the business framework. -
-
Uses of Specification in org.seedstack.business.domain
Methods in org.seedstack.business.domain with parameters of type Specification Modifier and Type Method Description default booleanRepository. contains(Specification<A> specification)Check if at least one aggregate satisfying the specified specification is present in the repository.default longRepository. count(Specification<A> specification)Count the number of aggregates in the repository satisfying the given specification.Stream<A>Repository. get(Specification<A> specification, Repository.Option... options)Finds all aggregates in the repository satisfying the given specification.longRepository. remove(Specification<A> specification)Removes all aggregates in the repository satisfying the given specification. -
Uses of Specification in org.seedstack.business.pagination.dsl
Methods in org.seedstack.business.pagination.dsl with parameters of type Specification Modifier and Type Method Description SSpecificationPicker. matching(Specification<T> spec)Restricts objects coming from the repository to ones matching the specification. -
Uses of Specification in org.seedstack.business.specification
Subinterfaces of Specification in org.seedstack.business.specification Modifier and Type Interface Description interfaceSubstitutableSpecification<T>Specifications that can be substituted by another specification without changing the satisfaction result should implement this interface.Classes in org.seedstack.business.specification that implement Specification Modifier and Type Class Description classAndSpecification<T>A specification composing multiple specifications with a logical AND.classFalseSpecification<T>An always false specification, NOT satisfied by any candidate object.classIdentitySpecification<A extends AggregateRoot<I>,I>A specification that can only be applied toAggregateRoots and that is satisfied only if the candidate aggregate has an identifier equal to the expected one.classNotSpecification<T>A specification negating another specification.classOrSpecification<T>A specification composing multiple specifications with a logical OR.classTrueSpecification<T>An always true specification, satisfied by any candidate object.Methods in org.seedstack.business.specification that return Specification Modifier and Type Method Description default Specification<T>Specification. and(Specification<? super T> other)Compose this specification with another specification through a logical AND.static <T> Specification<T>Specification. any()Special value for an always true specification.Specification<T>NotSpecification. getSpecification()Returns the specification that negated.Specification<? super T>[]AndSpecification. getSpecifications()Returns the composed specifications.Specification<? super T>[]OrSpecification. getSpecifications()Returns the composed specifications.Specification<T>SubstitutableSpecification. getSubstitute()Returns the specification it can be be substituted with.default Specification<T>Specification. negate()Negate this specification.static <T> Specification<T>Specification. none()Special value for an always false specification.default Specification<T>Specification. or(Specification<? super T> other)Compose this specification with another specification through a logical OR.Methods in org.seedstack.business.specification with parameters of type Specification Modifier and Type Method Description default Specification<T>Specification. and(Specification<? super T> other)Compose this specification with another specification through a logical AND.default Specification<T>Specification. or(Specification<? super T> other)Compose this specification with another specification through a logical OR.Constructors in org.seedstack.business.specification with parameters of type Specification Constructor Description AndSpecification(Specification<? super T>... specifications)Creates a specification composing the specifications passed as argument with a logical AND.NotSpecification(Specification<T> specification)Creates a specification negating the specification passed as argument.OrSpecification(Specification<? super T>... specifications)Creates a specification composing the specifications passed as argument with a logical OR. -
Uses of Specification in org.seedstack.business.specification.dsl
Methods in org.seedstack.business.specification.dsl that return Specification Modifier and Type Method Description Specification<T>TerminalOperation. build()Build the final composite specification as defined by previous DSL operations.Methods in org.seedstack.business.specification.dsl with parameters of type Specification Modifier and Type Method Description <T,S extends PropertySelector<T,S>>
OperatorPicker<T,S>SpecificationBuilder. satisfying(Specification<T> anySpec)Starts the building of a composite specification from an existing one.OperatorPicker<T,S>SpecificationPicker. satisfying(Specification<T> specification)Picks a custom specification. -
Uses of Specification in org.seedstack.business.spi
Classes in org.seedstack.business.spi with type parameters of type Specification Modifier and Type Interface Description interfaceSpecificationConverter<S extends Specification<?>,C,T>Interface for classes implementing conversion from a particularSpecificationtype to a target object representing this specification.Methods in org.seedstack.business.spi with type parameters of type Specification Modifier and Type Method Description <S extends Specification<?>>
TSpecificationTranslator. translate(S specification, C context)Translates the specified composite specification into a target object.
-