jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mete Atamel <mata...@adobe.com>
Subject Re: MicroKernel add/set property
Date Wed, 17 Oct 2012 12:27:07 GMT
Thanks for pointing out OAK-11. I had also asked these add/set property
questions as comments in there but I didn't get a reply back, hence the
repost here. 

-Mete 

On 10/17/12 1:59 PM, "Michael Dürig" <mduerig@apache.org> wrote:

>
>Hi,
>
>This might be topics for https://issues.apache.org/jira/browse/OAK-11 or
>sub-issues thereof.
>
>Michael
>
>On 16.10.12 15:39, Mete Atamel wrote:
>> Hi,
>>
>> 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?
>>
>>
>> Thanks,
>> Mete
>>
>>


Mime
View raw message