|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ReposModelService
This is the service that can be used to access data store in the model repository. This interface is exported by the eodisp_remote package. Therefore, any remote application can use it.
Field Summary | |
---|---|
static java.lang.String |
REGISTRY_NAME
This name is used for two purposes: The model repository application will export this interface with this name (through the eodisp_remote package) All applications can perform a lookup on this name to find the remote (this) interface (through the eodisp_remote package) |
Method Summary | |
---|---|
java.lang.String |
addSom(SomFile somFile)
Adds a physical SOM file to the repository. |
void |
deleteSom(java.lang.String somName,
java.lang.String somVersion)
Deletes the physical SOM file that is locally stored on in the repository. |
org.eclipse.emf.ecore.sdo.EDataGraph |
getAllData()
Returns all data currently stored in the model repository. |
SomFile |
getSom(java.lang.String somName,
java.lang.String somVersion)
Reads a SOM file locally in the repository and returns it. |
void |
update(org.eclipse.emf.ecore.sdo.EDataGraph dataGraph)
Updates a data graph in the resource. |
Field Detail |
---|
static final java.lang.String REGISTRY_NAME
Method Detail |
---|
org.eclipse.emf.ecore.sdo.EDataGraph getAllData() throws java.rmi.RemoteException, java.io.IOException
java.rmi.RemoteException
- see documentation of RemoteException
java.io.IOException
- Thrown if there is a problem loading the data.void update(org.eclipse.emf.ecore.sdo.EDataGraph dataGraph) throws java.rmi.RemoteException, java.io.IOException
Updates are performed (saved) immediately, without any chance to undo changes.
dataGraph
- The data graph with the changes to be committed.
java.rmi.RemoteException
- see documentation of RemoteException
java.io.IOException
- thrown if there is a problem while saving the data to the
disk.java.lang.String addSom(SomFile somFile) throws java.rmi.RemoteException, java.io.IOException
somFile
- The object containing the physical file.
java.rmi.RemoteException
- see documentation of RemoteException
java.io.IOException
- thrown if the file could not be save in the repository.SomFile getSom(java.lang.String somName, java.lang.String somVersion) throws java.rmi.RemoteException, SomNotKnownException, java.io.IOException
addSom(SomFile)
method.
The name and version of the SOM will be used to lookup the location of the file on the file system.
somName
- The name of the SOM.somVersion
- The version of the SOM.
SomFile
, including the byte array
representing the data. It always returns a non null object. In
case of an error, an exception will be thrown, but never will be
a null
object returned.
java.rmi.RemoteException
- see documentation of RemoteException
SomNotKnownException
- thrown if no SOM file could be found that corresponds to the
given somName and somVersion.
java.io.IOException
- thrown in case of an error when reading the file or if the
file is too large.void deleteSom(java.lang.String somName, java.lang.String somVersion) throws java.rmi.RemoteException, SomNotKnownException
An exception will be thrown if the file cannot be deleted, otherwise, the deletion process has succeeded.
somName
- The name of SOM.somVersion
- The version of the SOM.
java.rmi.RemoteException
- see documentation of RemoteException
SomNotKnownException
- thrown if no SOM file could be found that corresponds to the
given somName and somVersion.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |