|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dsrg.sofa.repository.RepositoryDeleter
public class RepositoryDeleter
This class is responsible for deleting any data from the repository.
Constructor Summary | |
---|---|
RepositoryDeleter(NodeConfiguration configuration)
This constructor should not be used by public. |
Method Summary | |
---|---|
boolean |
delete(VersionedEntity[] entityArray,
boolean deleteDependencies)
Main method of this class. |
boolean |
delete(VersionedEntity entity,
boolean deleteDependencies)
Main method of this class. |
java.util.Set<VersionedEntity> |
getDeletingDependencies(VersionedEntity entity)
Function for getting all dependencies that should be deleted with the entity. |
VersionedEntity[] |
getDeletingDependencies(VersionedEntity[] entities)
Function for getting all dependencies that should be deleted with the entities. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RepositoryDeleter(NodeConfiguration configuration)
configuration
- RepositoryAgent's NodeConfigurationMethod Detail |
---|
public boolean delete(VersionedEntity entity, boolean deleteDependencies) throws java.io.IOException
entity
- VersionedEntity to be deleted from RepositorydeleteDependencies
- Boolean indicating whether the dependencies of the entity should also be deleted.
You probably want this to be set to true.
java.io.IOException
public boolean delete(VersionedEntity[] entityArray, boolean deleteDependencies) throws java.io.IOException
entityArray
- Array of VersionedEntities to be deleted from RepositorydeleteDependencies
- Boolean indicating whether the dependencies of the entities should also be deleted.
You probably want this to be set to true.
java.io.IOException
public java.util.Set<VersionedEntity> getDeletingDependencies(VersionedEntity entity)
entity
- The entity which is about to be deleted.
public VersionedEntity[] getDeletingDependencies(VersionedEntity[] entities)
entities
- The entities which are about to be deleted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |