@Immutable @ParametersAreNonnullByDefault public interface StoreAdapter extends Saveable, Copiable<StoreAdapter>, org.eclipse.emf.ecore.InternalEObject.EStore
InternalEObject.EStore to a Store.| Modifier and Type | Method and Description |
|---|---|
void |
add(org.eclipse.emf.ecore.InternalEObject internalObject,
org.eclipse.emf.ecore.EStructuralFeature feature,
int index,
Object value) |
int |
addAll(org.eclipse.emf.ecore.InternalEObject internalObject,
org.eclipse.emf.ecore.EStructuralFeature feature,
int index,
Collection<?> values)
Adds the
values from the index in the content of the object's feature. |
void |
clear(org.eclipse.emf.ecore.InternalEObject internalObject,
org.eclipse.emf.ecore.EStructuralFeature feature) |
boolean |
contains(org.eclipse.emf.ecore.InternalEObject internalObject,
org.eclipse.emf.ecore.EStructuralFeature feature,
Object value) |
default PersistentEObject |
create(org.eclipse.emf.ecore.EClass eClass) |
Object |
get(org.eclipse.emf.ecore.InternalEObject internalObject,
org.eclipse.emf.ecore.EStructuralFeature feature,
int index) |
List<Object> |
getAll(org.eclipse.emf.ecore.InternalEObject internalObject,
org.eclipse.emf.ecore.EStructuralFeature feature)
Returns all values in the
content of the
object's feature. |
PersistentEObject |
getContainer(org.eclipse.emf.ecore.InternalEObject internalObject) |
org.eclipse.emf.ecore.EReference |
getContainingFeature(org.eclipse.emf.ecore.InternalEObject internalObject) |
int |
hashCode(org.eclipse.emf.ecore.InternalEObject internalObject,
org.eclipse.emf.ecore.EStructuralFeature feature) |
int |
indexOf(org.eclipse.emf.ecore.InternalEObject internalObject,
org.eclipse.emf.ecore.EStructuralFeature feature,
Object value) |
boolean |
isEmpty(org.eclipse.emf.ecore.InternalEObject internalObject,
org.eclipse.emf.ecore.EStructuralFeature feature) |
boolean |
isSet(org.eclipse.emf.ecore.InternalEObject internalObject,
org.eclipse.emf.ecore.EStructuralFeature feature) |
int |
lastIndexOf(org.eclipse.emf.ecore.InternalEObject internalObject,
org.eclipse.emf.ecore.EStructuralFeature feature,
Object value) |
Object |
move(org.eclipse.emf.ecore.InternalEObject internalObject,
org.eclipse.emf.ecore.EStructuralFeature feature,
int targetIndex,
int sourceIndex) |
Object |
remove(org.eclipse.emf.ecore.InternalEObject internalObject,
org.eclipse.emf.ecore.EStructuralFeature feature,
int index) |
default void |
removeAll(org.eclipse.emf.ecore.InternalEObject internalObject,
org.eclipse.emf.ecore.EStructuralFeature feature,
Collection<?> values)
Removes the
values in the content
of the object's feature. |
void |
removeContainment(PersistentEObject object)
Removes the containment link between
object and its container, and deletes any previous link to object. |
PersistentEObject |
resolve(Id id)
Retrieves the object associated to the given
id. |
org.eclipse.emf.ecore.EClass |
resolveInstanceOf(Id id)
Compute the
EClass associated to the model element with the provided Id. |
org.eclipse.emf.ecore.resource.Resource.Internal |
resource()
Returns the resource to store and access.
|
void |
resource(org.eclipse.emf.ecore.resource.Resource.Internal resource)
Defines the resource to store and access.
|
Object |
set(org.eclipse.emf.ecore.InternalEObject internalObject,
org.eclipse.emf.ecore.EStructuralFeature feature,
int index,
Object value) |
void |
setAll(org.eclipse.emf.ecore.InternalEObject internalObject,
org.eclipse.emf.ecore.EStructuralFeature feature,
Collection<?> values)
Sets the
values in the content of
the object's feature. |
int |
size(org.eclipse.emf.ecore.InternalEObject internalObject,
org.eclipse.emf.ecore.EStructuralFeature feature) |
Store |
store()
Returns the adapted store chain.
|
Object[] |
toArray(org.eclipse.emf.ecore.InternalEObject internalObject,
org.eclipse.emf.ecore.EStructuralFeature feature) |
<T> T[] |
toArray(org.eclipse.emf.ecore.InternalEObject internalObject,
org.eclipse.emf.ecore.EStructuralFeature feature,
T[] array) |
void |
unset(org.eclipse.emf.ecore.InternalEObject internalObject,
org.eclipse.emf.ecore.EStructuralFeature feature) |
void |
updateContainment(PersistentEObject object,
org.eclipse.emf.ecore.EReference containerReference,
PersistentEObject container)
Creates or updates the containment link between
object and container, and deletes any previous
link to object. |
void |
updateInstanceOf(PersistentEObject object)
Creates the instance of the
object in a ClassBean object and persists it in the database. |
org.eclipse.emf.ecore.resource.Resource.Internal resource()
void resource(@Nullable org.eclipse.emf.ecore.resource.Resource.Internal resource)
resource - the resource@Nonnull PersistentEObject resolve(Id id)
id.id - the identifier to be resolvedNoSuchElementException - if no object can be retrieved@Nullable Object get(org.eclipse.emf.ecore.InternalEObject internalObject, org.eclipse.emf.ecore.EStructuralFeature feature, @Nonnegative int index)
get in interface org.eclipse.emf.ecore.InternalEObject.EStore@Nullable Object set(org.eclipse.emf.ecore.InternalEObject internalObject, org.eclipse.emf.ecore.EStructuralFeature feature, @Nonnegative int index, @Nullable Object value)
set in interface org.eclipse.emf.ecore.InternalEObject.EStoreboolean isSet(org.eclipse.emf.ecore.InternalEObject internalObject,
org.eclipse.emf.ecore.EStructuralFeature feature)
isSet in interface org.eclipse.emf.ecore.InternalEObject.EStorevoid unset(org.eclipse.emf.ecore.InternalEObject internalObject,
org.eclipse.emf.ecore.EStructuralFeature feature)
unset in interface org.eclipse.emf.ecore.InternalEObject.EStoreboolean isEmpty(org.eclipse.emf.ecore.InternalEObject internalObject,
org.eclipse.emf.ecore.EStructuralFeature feature)
isEmpty in interface org.eclipse.emf.ecore.InternalEObject.EStore@Nonnegative int size(org.eclipse.emf.ecore.InternalEObject internalObject, org.eclipse.emf.ecore.EStructuralFeature feature)
size in interface org.eclipse.emf.ecore.InternalEObject.EStoreboolean contains(org.eclipse.emf.ecore.InternalEObject internalObject,
org.eclipse.emf.ecore.EStructuralFeature feature,
@Nullable
Object value)
contains in interface org.eclipse.emf.ecore.InternalEObject.EStoreint indexOf(org.eclipse.emf.ecore.InternalEObject internalObject,
org.eclipse.emf.ecore.EStructuralFeature feature,
@Nullable
Object value)
indexOf in interface org.eclipse.emf.ecore.InternalEObject.EStoreint lastIndexOf(org.eclipse.emf.ecore.InternalEObject internalObject,
org.eclipse.emf.ecore.EStructuralFeature feature,
@Nullable
Object value)
lastIndexOf in interface org.eclipse.emf.ecore.InternalEObject.EStorevoid add(org.eclipse.emf.ecore.InternalEObject internalObject,
org.eclipse.emf.ecore.EStructuralFeature feature,
int index,
Object value)
add in interface org.eclipse.emf.ecore.InternalEObject.EStore@Nullable Object remove(org.eclipse.emf.ecore.InternalEObject internalObject, org.eclipse.emf.ecore.EStructuralFeature feature, @Nonnegative int index)
remove in interface org.eclipse.emf.ecore.InternalEObject.EStoreObject move(org.eclipse.emf.ecore.InternalEObject internalObject, org.eclipse.emf.ecore.EStructuralFeature feature, @Nonnegative int targetIndex, @Nonnegative int sourceIndex)
move in interface org.eclipse.emf.ecore.InternalEObject.EStorevoid clear(org.eclipse.emf.ecore.InternalEObject internalObject,
org.eclipse.emf.ecore.EStructuralFeature feature)
clear in interface org.eclipse.emf.ecore.InternalEObject.EStore@Nonnull Object[] toArray(org.eclipse.emf.ecore.InternalEObject internalObject, org.eclipse.emf.ecore.EStructuralFeature feature)
toArray in interface org.eclipse.emf.ecore.InternalEObject.EStore@Nonnull <T> T[] toArray(org.eclipse.emf.ecore.InternalEObject internalObject, org.eclipse.emf.ecore.EStructuralFeature feature, @Nullable T[] array)
toArray in interface org.eclipse.emf.ecore.InternalEObject.EStoreint hashCode(org.eclipse.emf.ecore.InternalEObject internalObject,
org.eclipse.emf.ecore.EStructuralFeature feature)
hashCode in interface org.eclipse.emf.ecore.InternalEObject.EStorePersistentEObject getContainer(org.eclipse.emf.ecore.InternalEObject internalObject)
getContainer in interface org.eclipse.emf.ecore.InternalEObject.EStoreorg.eclipse.emf.ecore.EReference getContainingFeature(org.eclipse.emf.ecore.InternalEObject internalObject)
getContainingFeature in interface org.eclipse.emf.ecore.InternalEObject.EStoredefault PersistentEObject create(org.eclipse.emf.ecore.EClass eClass)
create in interface org.eclipse.emf.ecore.InternalEObject.EStore@Nonnull List<Object> getAll(org.eclipse.emf.ecore.InternalEObject internalObject, org.eclipse.emf.ecore.EStructuralFeature feature)
content of the
object's feature.internalObject - the object in questionfeature - a feature of the objectvoid setAll(org.eclipse.emf.ecore.InternalEObject internalObject,
org.eclipse.emf.ecore.EStructuralFeature feature,
Collection<?> values)
values in the content of
the object's feature.
If the object's feature already have values, then they will be replaced by values.
internalObject - the object in questionfeature - a feature of the objectvalues - the new valuesint addAll(org.eclipse.emf.ecore.InternalEObject internalObject,
org.eclipse.emf.ecore.EStructuralFeature feature,
int index,
Collection<?> values)
values from the index in the content of the object's feature.internalObject - the object in questionfeature - a many-valued feature of the objectindex - the first index from which to start the addition within the content. If negative, then the
addition will begin from the end of the existing contentvalues - the value to adddefault void removeAll(org.eclipse.emf.ecore.InternalEObject internalObject,
org.eclipse.emf.ecore.EStructuralFeature feature,
Collection<?> values)
values in the content
of the object's feature.internalObject - the object in questionfeature - a many-valued feature of the objectvalues - the values to removevoid updateContainment(PersistentEObject object, org.eclipse.emf.ecore.EReference containerReference, PersistentEObject container)
object and container, and deletes any previous
link to object. The object is added to the containment list of the container.
The method checks if an existing container is stored and update it if needed.
object - the object to add in the containment list of the containercontainerReference - the containment reference, from the container to the objectcontainer - the containervoid removeContainment(PersistentEObject object)
object and its container, and deletes any previous link to object.object - the object to remove from the containment list of its actual container@Nonnull org.eclipse.emf.ecore.EClass resolveInstanceOf(Id id)
EClass associated to the model element with the provided Id.id - the Id of the model element to compute the EClass fromEClass representing the meta-class of the elementvoid updateInstanceOf(PersistentEObject object)
object in a ClassBean object and persists it in the database.
Note: The type is not updated if object was previously mapped to another type.
object - the object to store the instance-of information fromCopyright © 2013–2019 Atlanmod. All rights reserved.