|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CDOResource
A special Resource
that associates a CDO ResourceManager
to the contained EObject
instances.
There are two possible URI
formats for a
CDOResource
that can be used interchangeably:
cdo
and the opaque part of the
URI
contains an arbitrary, but absolute and unique path,
for example cdo:///com/foo/bar.xyz
cdo
and the opaque part of the URI
contains a flat resource identifier (RID
), for
example cdo://4711
CDOResource
. The second format is used internally by CDO, but can also
be used by additional tooling. The RID
of a CDOResource
is assigned by the CDO server, is guaranteed to be unique and will never change.This interface is not expected to be implemented by clients.
CDOPersistable
,
ResourceManager
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.resource.Resource |
---|
org.eclipse.emf.ecore.resource.Resource.Diagnostic, org.eclipse.emf.ecore.resource.Resource.Factory, org.eclipse.emf.ecore.resource.Resource.Internal, org.eclipse.emf.ecore.resource.Resource.IOWrappedException |
Field Summary |
---|
Fields inherited from interface org.eclipse.emf.ecore.resource.Resource |
---|
OPTION_CIPHER, OPTION_ZIP, RESOURCE__CONTENTS, RESOURCE__ERRORS, RESOURCE__IS_LOADED, RESOURCE__IS_MODIFIED, RESOURCE__IS_TRACKING_MODIFICATION, RESOURCE__RESOURCE_SET, RESOURCE__URI, RESOURCE__WARNINGS |
Method Summary | |
---|---|
ResourceInfo |
getInfo()
Returns the ResourceInfo of this CDOResource . |
java.lang.String |
getPath()
Returns the absolute path of this CDOResource . |
ResourceManager |
getResourceManager()
Returns the ResourceManager associated with this
CDOResource . |
int |
getRID()
Returns the RID of this CDOResource . |
boolean |
isExisting()
Determines if this CDOResource does already exist in
the repository. |
void |
preLoad()
Loads all the contained objects from the repository. |
org.eclipse.emf.common.util.EList |
queryCrossReferences(org.eclipse.emf.ecore.EObject object)
TODO Document method queryCrossReferences The queryCrossReferences method. |
java.util.Set |
queryExtent(org.eclipse.emf.ecore.EClass context)
Convenience method to query polymorphic extents, returns the same result as queryExtent(context, false) . |
java.util.Set |
queryExtent(org.eclipse.emf.ecore.EClass context,
boolean exactMatch)
Sends a request to the CDO server to query all CDOPersistable instances in this CDOResource
that are instances of the context EClass or of any
of its subclasses. |
void |
setExisting(boolean existing)
For internal use only. |
void |
setPath(java.lang.String path)
For internal use only. |
Methods inherited from interface org.eclipse.emf.ecore.resource.Resource |
---|
getAllContents, getContents, getEObject, getErrors, getResourceSet, getURI, getURIFragment, getWarnings, isLoaded, isModified, isTrackingModification, load, load, save, save, setModified, setTrackingModification, setURI, unload |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Method Detail |
---|
ResourceManager getResourceManager()
ResourceManager
associated with this
CDOResource
.
ResourceManager
associated with this
CDOResource
.boolean isExisting()
CDOResource
does already exist in
the repository.
true
if this CDOResource
exists in
the repository, false
otherwise.void setExisting(boolean existing)
java.lang.String getPath()
CDOResource
.
CDOResource
.int getRID()
RID
of this CDOResource
.
RID
of this CDOResource
.ResourceInfo getInfo()
ResourceInfo
of this CDOResource
.
ResourceInfo
of this CDOResource
.void setPath(java.lang.String path)
java.util.Set queryExtent(org.eclipse.emf.ecore.EClass context)
queryExtent(context, false)
.
context
- The EClass
that all the objects to be queried
shall be castable to.
Set
of all the objects in this
CDOResource
that can safely be casted to the context
EClass
.queryExtent(EClass, boolean)
,
ResourceManager.queryExtent(EClass)
java.util.Set queryExtent(org.eclipse.emf.ecore.EClass context, boolean exactMatch)
CDOPersistable
instances in this CDOResource
that are instances of the context EClass
or of any
of its subclasses.
The CDOPersistable
instances do not have to be already
loaded in order to be found by this remote query. If they had not been loaded
before, CDO will create proxies for them and lazily load them while iterating
over the returned Set
. The remote query is performed on each call
to this method, no caching will occur.
context
- The EClass
that all the objects to be queried
shall be castable to.exactMatch
- Pass true
to exclude objects from the result
that are instances of subclasses of the context EClass
,
false
otherwise.
Set
of all the objects in this
CDOResource
that can safely be casted to the context
EClass
.ResourceManager.queryExtent(EClass, boolean)
org.eclipse.emf.common.util.EList queryCrossReferences(org.eclipse.emf.ecore.EObject object)
The queryCrossReferences
method.
object
-
void preLoad()
|
Copyright (c) 2004, 2005, 2006 Eike Stepper, Germany. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |