@Immutable @ParametersAreNonnullByDefault public class PersistentStoreAdapter extends AbstractStoreAdapter
StoreAdapter that caches the rebuilt PersistentEObjects.
 
 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  PersistentStoreAdapteron the givenstore. | 
| 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  PersistentEObjects. | 
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, updateInstanceOfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, removeAllpublic 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()
AbstractStoreAdapterPersistentEObjects.getCache in class AbstractStoreAdapterpublic void close()
SaveableCleanly 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 Saveableclose in interface Closeableclose in interface AutoCloseableclose in class AbstractStoreAdapterCopyright © 2013–2019 Atlanmod. All rights reserved.