@Immutable @ParametersAreNonnullByDefault public class TransientStoreAdapter extends AbstractStoreAdapter
StoreAdapter
, bound to a Resource.Internal
, that caches the rebuilt
PersistentEObject
s. Its content is shared among all the dependencies that use
it, i.e. each Resource.Internal
has its own cache.
This adapter is used in a transient context, when PersistentEObject
s are not
attached to a PersistentResource
.
PersistentEObject
Constructor and Description |
---|
TransientStoreAdapter(Store store,
org.eclipse.emf.ecore.resource.Resource.Internal resource)
Constructs a new
TransientStoreAdapter 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. |
void |
resource(org.eclipse.emf.ecore.resource.Resource.Internal resource)
Defines the resource to store and access.
|
add, addAll, clear, contains, copyTo, createCache, get, getAll, getContainer, getContainingFeature, hashCode, indexOf, isEmpty, isSet, lastIndexOf, move, remove, removeContainment, resolve, resolveInstanceOf, resource, save, set, setAll, size, store, toArray, toArray, unset, updateContainment, updateInstanceOf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, removeAll
@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
public void resource(@Nullable org.eclipse.emf.ecore.resource.Resource.Internal resource)
StoreAdapter
resource
in interface StoreAdapter
resource
in class AbstractStoreAdapter
resource
- the resourceCopyright © 2013–2019 Atlanmod. All rights reserved.