dbTalk Databases Forums  

Problem in setting metadata

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss Problem in setting metadata in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
wolfgang.schuller (AT) googlemail (DOT) com
 
Posts: n/a

Default Problem in setting metadata - 06-04-2006 , 04:29 PM






Hi,

I am a newbie to berkeley dbxml. As shwon from the subject i have
problem in setting meta data for every document. I have followed the
sample shown in userguide but it does not work so far. Most
ineterstingly it doesnot give any error while setting and retrieving
metadata.

I shall be grateful if anyone can send running example to me.

Thanks,
schuller


Reply With Quote
  #2  
Old   
wolfgang.schuller (AT) googlemail (DOT) com
 
Posts: n/a

Default Re: Problem in setting metadata - 06-05-2006 , 10:22 AM






Hi again,

It works now, because earlier i was using document configuration object
with setGeneratedName(true). As i removed it i.e. docConfig from
putdocument function, worked fine. I think this is little bug in bdxml
java api that one cannot insert document and metadat with container
generated name.

thanks
schuller

wolfgang.schuller (AT) googlemail (DOT) com wrote:
Quote:
Hi,

I am a newbie to berkeley dbxml. As shwon from the subject i have
problem in setting meta data for every document. I have followed the
sample shown in userguide but it does not work so far. Most
ineterstingly it doesnot give any error while setting and retrieving
metadata.

I shall be grateful if anyone can send running example to me.

Thanks,
schuller


Reply With Quote
  #3  
Old   
George Feinberg
 
Posts: n/a

Default Re: Problem in setting metadata - 06-05-2006 , 01:53 PM




Wolfgang,

Inserting a document with metadata should work just fine. When you use
setGenerateName(true),
and use an XmlDocument object in the putDocument() call (as you need to
do
in order to set both content and metadata at once), the generated name
is
returned in the XmlDocument object, and can be obtained
via XmlDocument.getName() after the document has been "put."

That name needs to be used to get the document for future operations.

If you reply, please email me directly, as I do not generally monitor
this group.

Regards,

George Feinberg
gmf (AT) sleepycat (DOT) com

wolfgang.schuller (AT) googlemail (DOT) com wrote:
Quote:
Hi again,

It works now, because earlier i was using document configuration object
with setGeneratedName(true). As i removed it i.e. docConfig from
putdocument function, worked fine. I think this is little bug in bdxml
java api that one cannot insert document and metadat with container
generated name.

thanks
schuller


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.