A - Type of the aggregate root.I - Type of the aggregate root identifier.public abstract class BaseRepository<A extends AggregateRoot<I>,I> extends Object implements Repository<A,I>
Repository.
This class is mainly used as a common base for specialized technology-specific implementations. Client code will often extend these more specialized classes instead of this one.
Repository,
BaseInMemoryRepositoryRepository.Option| Modifier | Constructor and Description |
|---|---|
protected |
BaseRepository()
Creates a base domain repository.
|
protected |
BaseRepository(Class<A> aggregateRootClass,
Class<I> idClass)
Creates a base domain repository.
|
| Modifier and Type | Method and Description |
|---|---|
Class<A> |
getAggregateRootClass()
Returns the aggregate root class managed by the repository.
|
Class<I> |
getIdentifierClass()
Returns the aggregate root identifier class managed by the repository.
|
SpecificationBuilder |
getSpecificationBuilder()
Access to the specification builder.
|
protected BaseRepository()
protected BaseRepository(Class<A> aggregateRootClass, Class<I> idClass)
aggregateRootClass - the aggregate root class.idClass - the aggregate root identifier class.public Class<A> getAggregateRootClass()
RepositorygetAggregateRootClass in interface Repository<A extends AggregateRoot<I>,I>public Class<I> getIdentifierClass()
RepositorygetIdentifierClass in interface Repository<A extends AggregateRoot<I>,I>public SpecificationBuilder getSpecificationBuilder()
RepositorygetSpecificationBuilder in interface Repository<A extends AggregateRoot<I>,I>Copyright © 2013-2018–2019 SeedStack. All rights reserved.