jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mete Atamel <mata...@adobe.com>
Subject MicroKernel add/set property
Date Tue, 16 Oct 2012 14:39:21 GMT

I have 2 questions on MicroKernel add/set property that MicroKernel
JavaDoc does not seem to answer.

1- What's the difference between adding a property vs. setting a property?
Are the two following commits basically the same?

mk.commit("/", "+\"a/key1\" : \"value1\"", null, null);
mk.commit("/", "^\"a/key1\" : \"value1\"", null, null);

Or are there scenarios where adding a property acts differently than
setting a property?

2- Is adding a property twice supposed to work or is it supposed to throw
a MicroKernelException? For example, this seems to work with
MicroKernelImpl but is it supposed to?

        mk.commit("/", "+\"a/key1\" : \"value1\"", null, null);
        mk.commit("/", "+\"a/key1\" : \"value1\"", null, null);

What about setting a property twice?


View raw message