jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting" <jukka.zitt...@gmail.com>
Subject Re: saving a user defined object
Date Sat, 13 Dec 2008 08:14:16 GMT
Hi,

On Sat, Dec 13, 2008 at 7:30 AM, far4ever <fathimafarhath@gmail.com> wrote:
> i want to know is there any mechanism in jackrabbit where i can save a user
> defined object as a property of a node.

You can't do that directly as Jackrabbit is not an object database.
Your options are either to explicitly map the data in your object to
equivalent content structure, or to use an object-content mapping
feature like the OCM component in Jackrabbit (see
http://jackrabbit.apache.org/object-content-mapping.html).

> and i want to know a bit on
>
>       nodeName.setProperty(String arg0, Value arg1) is what sort of the
> object does this 'Value' represent.

See the javax.jcr.Value javadocs at
http://www.day.com/maven/jsr170/javadocs/jcr-1.0/.

BR,

Jukka Zitting

Mime
View raw message