public interface PersistentResource extends Resource, Resource.Internal, Closeable
Resource interface by providing efficient model-level operations that
are not accessible using the standard EMF API. For example, getAllInstances is a
utility method that computes efficiently all the instances of a given type by delegating the
operation to the underlying database, that can benefits of its internal optimizations and indices.Resource.Diagnostic, Resource.Factory, Resource.Internal, Resource.IOWrappedExceptionOPTION_CIPHER, OPTION_LINE_DELIMITER, OPTION_LINE_DELIMITER_UNSPECIFIED, OPTION_SAVE_ONLY_IF_CHANGED, OPTION_SAVE_ONLY_IF_CHANGED_FILE_BUFFER, OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER, OPTION_ZIP, RESOURCE__CONTENTS, RESOURCE__ERRORS, RESOURCE__IS_LOADED, RESOURCE__IS_MODIFIED, RESOURCE__IS_TRACKING_MODIFICATION, RESOURCE__RESOURCE_SET, RESOURCE__TIME_STAMP, RESOURCE__URI, RESOURCE__WARNINGS| Modifier and Type | Method and Description |
|---|---|
void |
close() |
InternalEObject.EStore |
eStore()
Returns the
InternalEObject.EStore used to store the model. |
EList<EObject> |
getAllInstances(EClass eClass)
Computes the set of instances of the given
EClass (including its sub-types). |
EList<EObject> |
getAllInstances(EClass eClass,
boolean strict)
Computes the set of instances of the given
EClass. |
attached, basicSetResourceSet, detached, isLoadingdelete, getAllContents, getContents, getEObject, getErrors, getResourceSet, getTimeStamp, getURI, getURIFragment, getWarnings, isLoaded, isModified, isTrackingModification, load, load, save, save, setModified, setTimeStamp, setTrackingModification, setURI, unloadeAdapters, eDeliver, eNotify, eSetDelivervoid close()
close in interface AutoCloseableclose in interface CloseableInternalEObject.EStore eStore()
InternalEObject.EStore used to store the model.InternalEObject.EStoreEList<EObject> getAllInstances(EClass eClass)
EClass (including its sub-types).
This method is similar to getAllInstances(EClass, boolean) with strict=false.
Copyright © 2013–2017 Atlanmod INRIA LINA Mines Nantes. All rights reserved.