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
,
BaseInMemoryRepository
Repository.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()
Repository
getAggregateRootClass
in interface Repository<A extends AggregateRoot<I>,I>
public Class<I> getIdentifierClass()
Repository
getIdentifierClass
in interface Repository<A extends AggregateRoot<I>,I>
public SpecificationBuilder getSpecificationBuilder()
Repository
getSpecificationBuilder
in interface Repository<A extends AggregateRoot<I>,I>
Copyright © 2013-2018–2019 SeedStack. All rights reserved.