public interface IRepositoryManagement
IRepositoryManagement
interface contains
technical operations on repositories such as operations
for opening, closing, saving, etc.
This interface is a complement to RAAPI
.Modifier and Type | Method and Description |
---|---|
boolean |
cancelSave()
Rolls back the started save process.
|
void |
close()
Closes the repository without save.
|
boolean |
drop(java.lang.String location)
Deletes the repository at the given location.
|
boolean |
exists(java.lang.String location)
Checks whether the given location is already occupied by some repository of the same type.
|
boolean |
finishSave()
Finishes the two-phase save process of the repository.
|
boolean |
open(java.lang.String location)
Opens or creates (if the repository does not exist yet) the repository at the given location.
|
boolean |
startSave()
Starts the two-phase save process of the repository.
|
boolean exists(java.lang.String location)
location
- a string denoting the location to check. The location string is
is specific to the type of the repository, e.g.,
for ECore this is the .xmi file name, for JR this is the folder name, etc.
TDA Kernel requires a URI, containing the repository name followed by a colon
followed by a repository-specific location, e.g., "jr:/path/to/repository".boolean open(java.lang.String location)
location
- a string denoting the location of the repository. The location string is
is specific to the type of the repository, e.g.,
for ECore this is the .xmi file name, for JR this is the folder name, etc.
TDA Kernel requires a URI, containing the repository name followed by a colon
followed by a repository-specific location, e.g., "jr:/path/to/repository".void close()
startSave()
,
finishSave()
,
cancelSave()
boolean startSave()
cancelSave
or commited by calling finishSave
.false
is returned,
neither cancelSave
, nor finishSave
must be called.finishSave()
,
cancelSave()
boolean finishSave()
startSave()
,
cancelSave()
boolean cancelSave()
startSave()
,
finishSave()
boolean drop(java.lang.String location)
location
- a string denoting the location of the repository. The location string
is specific to the type of the repository, e.g.,
for ECore this is the .xmi file name, for JR this is the folder name, etc.
TDA Kernel requires a URI, containing the repository name followed by a colon
followed by a repository-specific location, e.g., "jr:/path/to/repository".