Class RepositoryImpl
- java.lang.Object
-
- org.eclipse.emf.common.notify.impl.BasicNotifierImpl
-
- org.eclipse.emf.ecore.impl.BasicEObjectImpl
-
- org.eclipse.emf.ecore.impl.MinimalEObjectImpl
-
- org.eclipse.emf.ecore.impl.MinimalEStoreEObjectImpl
-
- org.eclipse.emf.internal.cdo.CDOObjectImpl
-
- de.uka.ipd.sdq.identifier.impl.IdentifierImpl
-
- org.palladiosimulator.edp2.models.Repository.impl.RepositoryImpl
-
- All Implemented Interfaces:
de.uka.ipd.sdq.identifier.Identifier
,org.eclipse.emf.cdo.CDOObject
,org.eclipse.emf.cdo.common.id.CDOWithID
,org.eclipse.emf.cdo.common.model.CDOPackageTypeRegistry.CDOObjectMarker
,Notifier
,EObject
,EStructuralFeature.Internal.DynamicValueHolder
,InternalEObject
,org.eclipse.emf.spi.cdo.InternalCDOLoadable
,org.eclipse.emf.spi.cdo.InternalCDOObject
,Edp2Dao
,MetaDao
,Repository
- Direct Known Subclasses:
LocalDirectoryRepositoryImpl
,LocalMemoryRepositoryImpl
,RemoteCdoRepositoryImpl
public abstract class RepositoryImpl extends de.uka.ipd.sdq.identifier.impl.IdentifierImpl implements Repository
An implementation of the model object 'Repository'.The following features are implemented:
- Generated class or method.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
MinimalEObjectImpl.Container
-
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImpl
-
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
BasicNotifierImpl.EAdapterList<E extends Object & Adapter>, BasicNotifierImpl.EObservableAdapterList, BasicNotifierImpl.EScannableAdapterList
-
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
InternalEObject.EStore
-
-
Field Summary
Fields Modifier and Type Field Description protected MetaDao
metaDao
The DAO to load/access/store the data handled by this repository.protected static boolean
READ_ONLY_EDEFAULT
The default value of the 'Read Only
' attribute.-
Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
-
Fields inherited from interface org.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder
NIL
-
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RepositoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NotificationChain
basicSetRepositories(Repositories newRepositories, NotificationChain msgs)
boolean
canClose()
Checks if the connection of this DAO to the data store can be closed.boolean
canDelete()
Checks if the data managed by this DAO can be permanently deleted.boolean
canOpen()
Checks if the data store which is accessed by this DAO is available and can be opened usingEdp2Dao.open()
.void
close()
Closes the connection to the data store.void
delete()
Deletes all of the stored data.NotificationChain
eBasicRemoveFromContainerFeature(NotificationChain msgs)
Object
eGet(int featureID, boolean resolve, boolean coreType)
NotificationChain
eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
NotificationChain
eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
boolean
eIsSet(int featureID)
void
eSet(int featureID, Object newValue)
protected EClass
eStaticClass()
void
eUnset(int featureID)
void
flush()
Write all non-persisted data to disk.EList<org.palladiosimulator.metricspec.Description>
getDescriptions()
EList<ExperimentGroup>
getExperimentGroups()
MeasurementsDaoFactory
getMeasurementsDaoFactory()
Returns the factory for measurement DAOs in order to get access to the measurements.Repositories
getRepositories()
boolean
isDeleted()
Returns if the referenced data has been deleted.boolean
isOpen()
Returns if data is accessible or not.boolean
isReadOnly()
void
open()
Opens the connection to the data store and makes it's data accessible.void
resetExperimentGroups()
Resets the experiment groups attribute.void
setReadOnly(boolean newReadOnly)
void
setRepositories(Repositories newRepositories)
-
Methods inherited from class de.uka.ipd.sdq.identifier.impl.IdentifierImpl
eStaticFeatureCount, getId, setId
-
Methods inherited from class org.eclipse.emf.internal.cdo.CDOObjectImpl
cdoClassInfo, cdoConflict, cdoDirectResource, cdoHistory, cdoID, cdoInternalDynamicFeature, cdoInternalInstance, cdoInternalPostAttach, cdoInternalPostDetach, cdoInternalPostInvalidate, cdoInternalPostLoad, cdoInternalPostRollback, cdoInternalPreCommit, cdoInternalPreLoad, cdoInternalSetID, cdoInternalSetResource, cdoInternalSetRevision, cdoInternalSetState, cdoInternalSetView, cdoInvalid, cdoLockState, cdoPermission, cdoPrefetch, cdoReadLock, cdoReload, cdoResource, cdoRevision, cdoRevision, cdoState, cdoView, cdoWriteLock, cdoWriteOption, createFeatureMap, createList, createLock, createMap, createUnorderedList, dynamicGet, dynamicSet, dynamicUnset, eAdapterAdded, eAdapterRemoved, eBasicAdapterListeners, eBasicSetAdapterListeners, eBasicSetContainer, eBasicSetContainer, eBasicSetSettings, eBasicSettings, eClass, eContainerAdapterArray, eContainerFeatureID, eDirectResource, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicIsSet, eHasSettings, eInternalContainer, eInternalResource, eIsCaching, equals, eSetClass, eSetDirectResource, eSetResource, eSettings, eStore, getLockState, hashCode, instanceToRevisionFeature, revisionToInstanceFeature, toString
-
Methods inherited from class org.eclipse.emf.ecore.impl.MinimalEStoreEObjectImpl
eBasicContainerFeatureID, eBasicInternalContainer, eDerivedStructuralFeatureID
-
Methods inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
eAdapters, eBasicAdapterArray, eBasicAdapters, eBasicHasAdapters, eBasicProperties, eBasicSetAdapterArray, eBasicSetContainer, eBasicSetContainerFeatureID, eContents, eCrossReferences, eDeliver, eIsProxy, eProperties, eProxyURI, eSetDeliver, eSetProxyURI
-
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eComputeVirtualValuesCapacity, eContainer, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetStore, eSetting, eSettingDelegate, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticOperationCount, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
-
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.emf.cdo.CDOObject
cdoConflict, cdoDirectResource, cdoHistory, cdoID, cdoInvalid, cdoLockState, cdoPermission, cdoPrefetch, cdoReadLock, cdoReload, cdoResource, cdoState, cdoWriteLock, cdoWriteOption
-
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
-
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eBaseStructuralFeatureID, eBasicRemoveFromContainer, eDerivedOperationID, eDerivedStructuralFeatureID, eGet, eInverseAdd, eInverseRemove, eInvoke, eNotificationRequired, eObjectForURIFragmentSegment, eProxyURI, eResolveProxy, eSetProxyURI, eSetStore, eSetting, eURIFragmentSegment
-
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
-
-
-
Field Detail
-
READ_ONLY_EDEFAULT
protected static final boolean READ_ONLY_EDEFAULT
The default value of the 'Read Only
' attribute.- See Also:
isReadOnly()
, Constant Field Values- Generated class or method.
- Ordered collection.
-
metaDao
protected MetaDao metaDao
The DAO to load/access/store the data handled by this repository.- Generated class or method.
- NOT
-
-
Method Detail
-
eStaticClass
protected EClass eStaticClass()
- Overrides:
eStaticClass
in classde.uka.ipd.sdq.identifier.impl.IdentifierImpl
- Generated class or method.
-
getRepositories
public Repositories getRepositories()
- Specified by:
getRepositories
in interfaceRepository
- Returns:
- the value of the 'Repositories' container reference.
- See Also:
Repository.setRepositories(Repositories)
,RepositoryPackage.getRepository_Repositories()
,Repositories.getAvailableRepositories()
- Generated class or method.
-
basicSetRepositories
public NotificationChain basicSetRepositories(Repositories newRepositories, NotificationChain msgs)
- Generated class or method.
-
setRepositories
public void setRepositories(Repositories newRepositories)
- Specified by:
setRepositories
in interfaceRepository
- Parameters:
newRepositories
- the new value of the 'Repositories' container reference.- See Also:
Repository.getRepositories()
- Generated class or method.
-
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnly
in interfaceRepository
- Returns:
- the value of the 'Read Only' attribute.
- See Also:
Repository.setReadOnly(boolean)
,RepositoryPackage.getRepository_ReadOnly()
- Generated class or method.
-
setReadOnly
public void setReadOnly(boolean newReadOnly)
- Specified by:
setReadOnly
in interfaceRepository
- Parameters:
newReadOnly
- the new value of the 'Read Only' attribute.- See Also:
Repository.isReadOnly()
- Generated class or method.
-
getDescriptions
public EList<org.palladiosimulator.metricspec.Description> getDescriptions()
- Specified by:
getDescriptions
in interfaceRepository
- Returns:
- the value of the 'Descriptions' reference list.
- See Also:
RepositoryPackage.getRepository_Descriptions()
- Generated class or method.
-
getExperimentGroups
public EList<ExperimentGroup> getExperimentGroups()
- Specified by:
getExperimentGroups
in interfaceRepository
- Returns:
- the value of the 'Experiment Groups' reference list.
- See Also:
RepositoryPackage.getRepository_ExperimentGroups()
,ExperimentGroup.getRepository()
- Generated class or method.
-
resetExperimentGroups
public void resetExperimentGroups()
Resets the experiment groups attribute.- Specified by:
resetExperimentGroups
in interfaceRepository
- Generated class or method.
- NOT
-
eInverseAdd
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- Overrides:
eInverseAdd
in classBasicEObjectImpl
- Generated class or method.
-
eInverseRemove
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- Overrides:
eInverseRemove
in classBasicEObjectImpl
- Generated class or method.
-
eBasicRemoveFromContainerFeature
public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs)
- Overrides:
eBasicRemoveFromContainerFeature
in classBasicEObjectImpl
- Generated class or method.
-
eGet
public Object eGet(int featureID, boolean resolve, boolean coreType)
- Specified by:
eGet
in interfaceInternalEObject
- Overrides:
eGet
in classde.uka.ipd.sdq.identifier.impl.IdentifierImpl
- Generated class or method.
-
eSet
public void eSet(int featureID, Object newValue)
- Specified by:
eSet
in interfaceInternalEObject
- Overrides:
eSet
in classde.uka.ipd.sdq.identifier.impl.IdentifierImpl
- Generated class or method.
-
eUnset
public void eUnset(int featureID)
- Specified by:
eUnset
in interfaceInternalEObject
- Overrides:
eUnset
in classde.uka.ipd.sdq.identifier.impl.IdentifierImpl
- Generated class or method.
-
eIsSet
public boolean eIsSet(int featureID)
- Specified by:
eIsSet
in interfaceInternalEObject
- Overrides:
eIsSet
in classde.uka.ipd.sdq.identifier.impl.IdentifierImpl
- Generated class or method.
-
getMeasurementsDaoFactory
public MeasurementsDaoFactory getMeasurementsDaoFactory()
Description copied from interface:MetaDao
Returns the factory for measurement DAOs in order to get access to the measurements.- Specified by:
getMeasurementsDaoFactory
in interfaceMetaDao
- Returns:
- The measurements DAO factory.
-
canClose
public boolean canClose()
Description copied from interface:Edp2Dao
Checks if the connection of this DAO to the data store can be closed.
-
canDelete
public boolean canDelete()
Description copied from interface:Edp2Dao
Checks if the data managed by this DAO can be permanently deleted.- Specified by:
canDelete
in interfaceEdp2Dao
- Returns:
true
ifEdp2Dao.delete()
can be called, false otherwise.
-
canOpen
public boolean canOpen()
Description copied from interface:Edp2Dao
Checks if the data store which is accessed by this DAO is available and can be opened usingEdp2Dao.open()
.
-
close
public void close() throws DataNotAccessibleException
Description copied from interface:Edp2Dao
Closes the connection to the data store. If necessary, data is persisted before closing.- Specified by:
close
in interfaceEdp2Dao
- Throws:
DataNotAccessibleException
- Errors when accessing data.
-
delete
public void delete() throws DataNotAccessibleException
Description copied from interface:Edp2Dao
Deletes all of the stored data.- Specified by:
delete
in interfaceEdp2Dao
- Throws:
DataNotAccessibleException
- Errors when accessing data.
-
isDeleted
public boolean isDeleted()
Description copied from interface:Edp2Dao
Returns if the referenced data has been deleted.
-
isOpen
public boolean isOpen()
Description copied from interface:Edp2Dao
Returns if data is accessible or not.
-
open
public void open() throws DataNotAccessibleException
Description copied from interface:Edp2Dao
Opens the connection to the data store and makes it's data accessible.- Specified by:
open
in interfaceEdp2Dao
- Throws:
DataNotAccessibleException
- Errors when initializing the data access.
-
-