@Immutable @ParametersAreNonnullByDefault public class PersistentStoreAdapter extends AbstractStoreAdapter
StoreAdapter
that caches the rebuilt PersistentEObject
s.
This adapter can be used either in a transient context or in a persistent context, and is bound to a unique PersistentResource
.
PersistentResource
Constructor and Description |
---|
PersistentStoreAdapter(Store store,
PersistentResource resource)
Constructs a new
PersistentStoreAdapter on the given store . |
Modifier and Type | Method and Description |
---|---|
void |
close()
Cleanly closes this manager, clear all data in-memory and releases any system resources associated with it.
|
protected Cache<Id,PersistentEObject> |
getCache()
Returns the in-memory cache holding recently loaded
PersistentEObject s. |
add, addAll, clear, contains, copyTo, createCache, get, getAll, getContainer, getContainingFeature, hashCode, indexOf, isEmpty, isSet, lastIndexOf, move, remove, removeContainment, resolve, resolveInstanceOf, resource, resource, save, set, setAll, size, store, toArray, toArray, unset, updateContainment, updateInstanceOf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, removeAll
public PersistentStoreAdapter(Store store, PersistentResource resource)
PersistentStoreAdapter
on the given store
.store
- the inner storeresource
- the resource to store and access@Nonnull protected Cache<Id,PersistentEObject> getCache()
AbstractStoreAdapter
PersistentEObject
s.getCache
in class AbstractStoreAdapter
public void close()
Saveable
Cleanly closes this manager, clear all data in-memory and releases any system resources associated with it. All modifications are saved before closing.
If the manager is already closed, then invoking this method has no effect.
close
in interface Saveable
close
in interface Closeable
close
in interface AutoCloseable
close
in class AbstractStoreAdapter
Copyright © 2013–2019 Atlanmod. All rights reserved.