You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by far4ever <fa...@gmail.com> on 2008/12/13 07:30:34 UTC
saving a user defined object
hi
i want to know is there any mechanism in jackrabbit where i can save a user
defined object as a property of a node. and i want to know a bit on
nodeName.setProperty(String arg0, Value arg1) is what sort of the
object does this 'Value' represent.
can i cast by object in to a value object and save.
--
View this message in context: http://www.nabble.com/saving-a-user-defined-object-tp20987838p20987838.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
Re: saving a user defined object
Posted by Jukka Zitting <ju...@gmail.com>.
Hi,
On Sat, Dec 13, 2008 at 7:30 AM, far4ever <fa...@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