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.
|
org.seedstack.business.util.inmemory |
Provides in-memory implementations of some business concepts.
|
org.seedstack.jpa |
Provides classes to use JPA with Seed and the Business Framework.
|
org.seedstack.mongodb.morphia |
Modifier and Type | Method and Description |
---|---|
default boolean |
Repository.contains(Specification<A> specification)
Check if at least one aggregate satisfying the specified specification is present in the
repository.
|
default long |
Repository.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.
|
long |
Repository.remove(Specification<A> specification)
Removes all aggregates in the repository satisfying the given specification.
|
Modifier and Type | Method and Description |
---|---|
S |
SpecificationPicker.matching(Specification<T> spec)
Restricts objects coming from the repository to ones matching the specification.
|
Modifier and Type | Interface and Description |
---|---|
interface |
SubstitutableSpecification<T>
Specifications that can be substituted by another specification without changing the
satisfaction result should implement this interface.
|
Modifier and Type | Class and Description |
---|---|
class |
AndSpecification<T>
A specification composing multiple specifications with a logical AND.
|
class |
AttributeSpecification<T,V>
A specification that restricts the application of another specification to an attribute of the
candidate object.
|
class |
ComparableSpecification<T extends Comparable<? super T>>
Base class for specifications that compare their expected and candidate value.
|
class |
EqualSpecification<T>
A specification satisfied only when the expected and the candidate values are equal according to
Objects.equals(Object, Object) . |
class |
FalseSpecification<T>
An always false specification, NOT satisfied by any candidate object.
|
class |
GreaterThanSpecification<T extends Comparable<? super T>>
A specification satisfied only when the candidate value is greater than the expected value
according to
Comparable.compareTo(Object) . |
class |
IdentitySpecification<A extends AggregateRoot<I>,I>
A specification that can only be applied to
AggregateRoot s and that is satisfied only if
the candidate aggregate has an identifier equal to the expected one. |
class |
LessThanSpecification<T extends Comparable<? super T>>
A specification satisfied only when the candidate value is less than the expected value according
to
Comparable.compareTo(Object) . |
class |
NotSpecification<T>
A specification negating another specification.
|
class |
OrSpecification<T>
A specification composing multiple specifications with a logical OR.
|
class |
StringEqualSpecification
A string-specialized specification that is satisfied only when the expected and the candidate
strings are equal according to the given
StringSpecification.Options . |
class |
StringMatchingSpecification
A string-specialized specification that is satisfied only when the expected and the candidate
strings are matching according to the given
StringSpecification.Options . |
class |
StringSpecification
Base class for specifications that compare strings.
|
class |
TrueSpecification<T>
An always true specification, satisfied by any candidate object.
|
Modifier and Type | Method and 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>[] |
OrSpecification.getSpecifications()
Returns the composed specifications.
|
Specification<? super T>[] |
AndSpecification.getSpecifications()
Returns the composed specifications.
|
Specification<T> |
SubstitutableSpecification.getSubstitute()
Returns the specification it can be be substituted with.
|
Specification<V> |
AttributeSpecification.getValueSpecification()
Returns the specification on the value.
|
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.
|
Modifier and Type | Method and 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.
|
Constructor and Description |
---|
AndSpecification(Specification<? super T>... specifications)
Creates a specification composing the specifications passed as argument with a logical AND.
|
AttributeSpecification(String path,
Specification<V> valueSpecification)
Creates an attribute specification.
|
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.
|
Modifier and Type | Method and Description |
---|---|
Specification<T> |
TerminalOperation.build()
Build the final composite specification as defined by previous DSL operations.
|
Modifier and Type | Method and Description |
---|---|
OperatorPicker<T,S> |
SpecificationPicker.satisfying(Specification<T> specification)
Picks a custom specification.
|
Modifier and Type | Interface and Description |
---|---|
interface |
SpecificationConverter<S extends Specification<?>,C,T>
Interface for classes implementing conversion from a particular
Specification type to a
target object representing this specification. |
Modifier and Type | Method and Description |
---|---|
protected <S extends Specification<?>> |
BaseSpecificationTranslator.convert(S specification,
C context)
Find and invoke the relevant
SpecificationConverter for the given specification to
convert it into an object of type T . |
<S extends Specification<?>> |
SpecificationTranslator.translate(S specification,
C context)
Translates the specified composite specification into a target object.
|
Modifier and Type | Method and Description |
---|---|
Stream<A> |
BaseInMemoryRepository.get(Specification<A> specification,
Repository.Option... options) |
long |
BaseInMemoryRepository.remove(Specification<A> specification) |
Modifier and Type | Method and Description |
---|---|
boolean |
BaseJpaRepository.contains(Specification<A> specification) |
long |
BaseJpaRepository.count(Specification<A> specification) |
Stream<A> |
BaseJpaRepository.get(Specification<A> specification,
Repository.Option... options) |
long |
BaseJpaRepository.remove(Specification<A> specification) |
Modifier and Type | Method and Description |
---|---|
boolean |
BaseMorphiaRepository.contains(Specification<A> specification) |
long |
BaseMorphiaRepository.count(Specification<A> specification) |
Stream<A> |
BaseMorphiaRepository.get(Specification<A> specification,
Repository.Option... options) |
long |
BaseMorphiaRepository.remove(Specification<A> specification) |
Copyright © 2013-2018–2019 SeedStack. All rights reserved.