@ParametersAreNonnullByDefault public class ClassCachingStore extends AbstractCachingStore<Id,Optional<ClassBean>>
cache
Constructor and Description |
---|
ClassCachingStore() |
Modifier and Type | Method and Description |
---|---|
boolean |
metaClassFor(Id id,
ClassBean metaClass)
Stores the
metaClass for the specified id . |
Optional<ClassBean> |
metaClassOf(Id id)
Retrieves the meta-class for the specified
id . |
close
backend, compareTo, equals, hashCode, next, toString
addAllReferences, addAllValues, addReference, addValue, allInstancesOf, allInstancesOf, allReferencesOf, allValuesOf, appendAllReferences, appendAllValues, appendReference, appendValue, containerFor, containerOf, copyTo, next, referenceFor, referenceFor, referenceOf, referenceOf, removeAllReferences, removeAllValues, removeContainer, removeReference, removeReference, removeValue, removeValue, save, sizeOfReference, sizeOfValue, valueFor, valueFor, valueOf, valueOf
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
containerFor, containerOf, removeContainer
allInstancesOf, allInstancesOf
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<ClassBean> metaClassOf(Id id)
ClassMapper
id
.metaClassOf
in interface ClassMapper
metaClassOf
in class AbstractDataMapperChain<Store>
id
- the Id
of the elementOptional
containing the meta-class, or Optional.empty()
if the id
has no
defined meta-class.public boolean metaClassFor(Id id, ClassBean metaClass)
ClassMapper
metaClass
for the specified id
.metaClassFor
in interface ClassMapper
metaClassFor
in class AbstractDataMapperChain<Store>
id
- the Id
of the elementmetaClass
- the containing element's meta-class information to storetrue
if the meta-class has been defined, false
if the id
already has a meta-classCopyright © 2013–2019 Atlanmod. All rights reserved.