|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dsrg.sofa.repository.RepositoryQuery
public class RepositoryQuery
This object is responsible for complete querying of objects from repository. There is no another suitable method or object for retrieving metadata from repository.
Constructor Summary | |
---|---|
RepositoryQuery(org.eclipse.emf.ecore.resource.ResourceSet rs)
Standard constructor. |
Method Summary | |
---|---|
java.io.OutputStream |
getData(org.eclipse.emf.common.util.URI uri)
Directly opens OutputStream from RepositoryServer for specified uri and data are not deserialized by EMF. |
org.eclipse.emf.ecore.EObject |
getEObject(org.eclipse.emf.common.util.URI uri)
Fundamental method for quering objects by URI. |
org.eclipse.emf.ecore.EObject |
getEObject(org.eclipse.emf.common.util.URI uri,
boolean forceUnload)
Fundamental method for querying objects by URI. |
RepositoryData |
getRepositoryDataObject()
Loads RepositoryData object from repository - DON'T CACHE RETRUNED OBJECT - Always use this method to get RepsitoryData. |
RepositoryInfo |
getRepositoryInfoObject()
Loads RepositoryInfo object from repository. |
org.eclipse.emf.ecore.EObject |
resolveProxy(org.eclipse.emf.ecore.EObject eo)
If you use forceUnload parameter on the method getEObject(org.eclipse.emf.common.util.URI) , you can then hold
only proxy objects and this method returns resolved full object instance or proxy object,
if it is not able to resolve it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RepositoryQuery(org.eclipse.emf.ecore.resource.ResourceSet rs)
RepositoryAgent
.
rs
- From this ResourceSet objects are queried.Method Detail |
---|
public org.eclipse.emf.ecore.EObject getEObject(org.eclipse.emf.common.util.URI uri)
uri
- SofaURI, which identifies object.
public org.eclipse.emf.ecore.EObject getEObject(org.eclipse.emf.common.util.URI uri, boolean forceUnload)
uri
- SofaURI, which identifies object.forceUnload
- If set to true, already read object is ALWAYS unloaded
and reloaded from repository server, this can be suitable for
developers
public RepositoryData getRepositoryDataObject()
RepositoryData
object from repository - DON'T CACHE RETRUNED OBJECT - Always use this method to get RepsitoryData.
This object have special SofaURI.
public RepositoryInfo getRepositoryInfoObject()
RepositoryInfo
object from repository.
This object have special SofaURI.
public java.io.OutputStream getData(org.eclipse.emf.common.util.URI uri) throws java.io.IOException
uri
- Destination SofaURI
java.io.IOException
public org.eclipse.emf.ecore.EObject resolveProxy(org.eclipse.emf.ecore.EObject eo)
getEObject(org.eclipse.emf.common.util.URI)
, you can then hold
only proxy objects and this method returns resolved full object instance or proxy object,
if it is not able to resolve it.
eo
- Proxy object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |