public abstract class DefaultRecordBasedRepository<I,E extends AbstractEntity<I,S>,S extends io.spine.base.EntityState> extends RecordBasedRepository<I,E,S>
RecordBasedRepository
that manages entities
derived from AbstractEntity
.Modifier | Constructor and Description |
---|---|
protected |
DefaultRecordBasedRepository()
Creates a new instance with the factory of entities of class
specified as the
<E> generic parameter, and with the default
entity storage converter. |
Modifier and Type | Method and Description |
---|---|
protected EntityFactory<E> |
entityFactory()
Obtains
EntityFactory associated with this repository. |
void |
registerWith(BoundedContext context)
Initializes the repository by performing the validation of the entity class and
creating the storage converter.
|
protected StorageConverter<I,E,S> |
storageConverter()
Obtains
StorageConverter associated with this repository. |
applyMigration, applyMigration, create, createStorage, find, find, findActive, findOrCreate, iterator, loadAll, loadAll, recordStorage, store, store, toEntity
checkStorage, close, context, entityClass, entityStateType, eventFilter, hasContext, idClass, index, isOpen, isRegistered, onRegistered, open, storage, storageAssigned
protected DefaultRecordBasedRepository()
<E>
generic parameter, and with the default
entity storage converter.protected EntityFactory<E> entityFactory()
RecordBasedRepository
EntityFactory
associated with this repository.entityFactory
in class RecordBasedRepository<I,E extends AbstractEntity<I,S>,S extends io.spine.base.EntityState>
protected final StorageConverter<I,E,S> storageConverter()
RecordBasedRepository
StorageConverter
associated with this repository.storageConverter
in class RecordBasedRepository<I,E extends AbstractEntity<I,S>,S extends io.spine.base.EntityState>
@OverridingMethodsMustInvokeSuper public void registerWith(BoundedContext context)
registerWith
in class Repository<I,E extends AbstractEntity<I,S>>
context
- the Bounded Context of this repository