Thank you for the pointers, I started again using the XQJ API. I still have
some troubles inserting data into the Collection, however.
Here is a code excerpt, followed by the error I get:
public boolean addHost(Host h) {
try
{
XStream xs = new XStream();
xs.alias(Host,
Hi Luca,
Sedna updates language is described here:
http://modis.ispras.ru/sedna/progguide/ProgGuidesu6.html#x12-440002.3
http://modis.ispras.ru/sedna/progguide/ProgGuidesu6.html#x12-440002.3in
your case you need something like:
update insert HostNametest1/NameFreeSpace32/FreeSpace/Host into
Hi
The collection('Hosts')//Host was a typo : I started with
collection('Hosts') and tested alternatives.
So you'd recommend a document instead of a collection to keep data of the
same type together? I'll keep that in mind.
So this is what I did.
- dropped the Hosts collection
- created a Hosts
I tried with UPDATE insert..., no success.
2011/4/15 Ivan Shcheklein shchekl...@gmail.com
Ok. Try UPDATE (upper case) instead of update keyword.
On Fri, Apr 15, 2011 at 1:54 AM, Luca Ciarniello
l.ciarnie...@gmail.comwrote:
Here it is.
2011/4/14 Ivan Shcheklein shchekl...@gmail.com
Can you send me your code once again - I will try on my side.
On Fri, Apr 15, 2011 at 2:09 AM, Luca Ciarniello l.ciarnie...@gmail.comwrote:
I tried with UPDATE insert..., no success.
2011/4/15 Ivan Shcheklein shchekl...@gmail.com
Ok. Try UPDATE (upper case) instead of update keyword.
On
Indeed, I managed to insert elements using se_term, so the problem must come
from the API.
Thank you for your help.
2011/4/15 Ivan Shcheklein shchekl...@gmail.com
Can't run it either. I'll will write Charles Foster (author of the XQJ
driver) that something is broken in current beta.
I
Hi Luca,
I do have another question though : Let's say I have a collection named
Hosts. Inside this collection, I put custom Java objects with the method
above. My question is this : can I use XQuery to search the data from these
objects? And if it is possible, how can I write the actual
Hi Luca,
Can you provide us source code to reproduce this?
Ivan Shcheklein,
Sedna Team
Hello
Thank you for the advice, I've run into another problem now.
I use Sedna to store custom java Objects (implementing the Serializable
interface, of course). The problem is that I can't get them
Hi
The error, as often, was between the chair and the keyboard :p
I had skipped a step in the code, now it works : collection.getResource
return a Resource object. I can then use this object's getContent method to
get my data. It works quite well.
I do have another question though : Let's say I