@ParametersAreNonnullByDefault public class ContainerCachingStore extends AbstractCachingStore<Id,Optional<SingleFeatureBean>>
Store
wrapper that caches containers.cache
Constructor and Description |
---|
ContainerCachingStore() |
Modifier and Type | Method and Description |
---|---|
void |
containerFor(Id id,
SingleFeatureBean container)
Stores the
container for the specified id . |
Optional<SingleFeatureBean> |
containerOf(Id id)
Retrieves the container for the specified
id . |
void |
removeContainer(Id id)
Removes the container of the specified
id . |
close
backend, compareTo, equals, hashCode, next, toString
addAllReferences, addAllValues, addReference, addValue, allInstancesOf, allInstancesOf, allReferencesOf, allValuesOf, appendAllReferences, appendAllValues, appendReference, appendValue, copyTo, metaClassFor, metaClassOf, next, referenceFor, referenceFor, referenceOf, referenceOf, removeAllReferences, removeAllValues, removeReference, removeReference, removeValue, removeValue, save, sizeOfReference, sizeOfValue, valueFor, valueFor, valueOf, valueOf
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
allInstancesOf, allInstancesOf, metaClassFor, metaClassOf
addAllValues, addValue, allValuesOf, appendAllValues, appendValue, removeAllValues, removeValue, sizeOfValue, valueFor, valueOf
removeValue, valueFor, valueOf
addAllReferences, addReference, allReferencesOf, appendAllReferences, appendReference, referenceFor, referenceOf, removeAllReferences, removeReference, sizeOfReference
referenceFor, referenceOf, removeReference
@Nonnull public Optional<SingleFeatureBean> containerOf(Id id)
ContainerMapper
id
.containerOf
in interface ContainerMapper
containerOf
in class AbstractDataMapperChain<Store>
id
- the Id
of the contained elementOptional
containing the container, or Optional.empty()
if the id
has no
defined container.public void containerFor(Id id, SingleFeatureBean container)
ContainerMapper
container
for the specified id
.containerFor
in interface ContainerMapper
containerFor
in class AbstractDataMapperChain<Store>
id
- the Id
of the contained elementcontainer
- the containing element's container information to storepublic void removeContainer(Id id)
ContainerMapper
id
.
The container must be completely removed, so that a call to ContainerMapper.containerOf(Id)
returns Optional.empty()
.
removeContainer
in interface ContainerMapper
removeContainer
in class AbstractDataMapperChain<Store>
id
- the Id
of the contained elementCopyright © 2013–2019 Atlanmod. All rights reserved.