| [CDO] Resources: understanding [message #430536] |
Tue, 26 May 2009 10:13  |
Eclipse User |
|
|
|
dear @ll,
i try to understand the meaningful and appropriate of resources. IMO
resources are like files. You can open it, modify it, safe it and close
it...... But say me why I can't get a list of all resources? I search a way
to manage some resources.
|
|
|
| Re: [CDO] Resources: understanding [message #430539 is a reply to message #430536] |
Tue, 26 May 2009 12:41  |
Eclipse User |
|
|
|
Waldi,
CDOResources differ a bit from normal EMF resources: They are EObjects
and they can be contained by CDOResourceFolders (EObjects, too).
CDOResources and CDOResourceFolders both extend CDOResourceNode and are
either contained by other CDOResourceFolders or by the root resource of
the repository. The root resource get be obtained with
CDOView.getRootResource(). Then you can work with getContents() or
getNodes(). CDOView also has a queryResources(folder, name(-prefix),
exactMatch) method.
You can even modify this tree structure with normal EMF means if you use
a CDOTransaction instead of a CDOView.
Cheers
/Eike
----
http://thegordian.blogspot.com
Waldi schrieb:
> dear @ll,
>
> i try to understand the meaningful and appropriate of resources. IMO
> resources are like files. You can open it, modify it, safe it and close
> it...... But say me why I can't get a list of all resources? I search a way
> to manage some resources.
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03372 seconds