You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by btiernay <bt...@hotmail.com> on 2016/12/11 23:51:55 UTC
Oak vs Jcr APIs
I'm curious as to when to use one API over the other.
For example:
- Repository vs. ContentRepository
- Session vs. ContentSession
- QueryManager vs. QueryEngine
- Node vs. Tree
etc.
Is there any usage recommendation here? I didn't see anything in the
Javadocs or documentation.
Thanks in advance.
--
View this message in context: http://jackrabbit.510166.n4.nabble.com/Oak-vs-Jcr-APIs-tp4665708.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
Re: Oak vs Jcr APIs
Posted by Clay Ferguson <wc...@gmail.com>.
biternay:
I'm not trying to drive any actual traffic to my site yet, but I do have an
app built on JCR you could use for additional examples: It's called meta64
and is open source on Github. It can be tricky to find relevant up-to-date
example code for the JCR, so what I've done before is download the actual
JCR source, and look at which sets of classes seem to be used together in
their test cases, and go by that. At least that way you can be sure the way
you're doing it is also not out of date also. Also just looking thru their
test case code can be a hundred times more enlightening than reading the
docs. Sorry, i know that wasn't a good answer to your actual question. :)
Re: Oak vs Jcr APIs
Posted by Michael Dürig <md...@apache.org>.
Hi,
Usually you should be using the JCR API, as this is the one covered by a
specification (JSR 283) and is much richer than the Oak API. The Oak API
can be seen as an "implementation detail" for implementing the JCR API
on top. You would most likely only want to use it directly if building
your own variant of a content repository having a semantic different
from JCR.
Michael
On 12.12.16 12:51 , btiernay wrote:
> I'm curious as to when to use one API over the other.
>
> For example:
>
> - Repository vs. ContentRepository
> - Session vs. ContentSession
> - QueryManager vs. QueryEngine
> - Node vs. Tree
>
> etc.
>
> Is there any usage recommendation here? I didn't see anything in the
> Javadocs or documentation.
>
> Thanks in advance.
>
>
>
> --
> View this message in context: http://jackrabbit.510166.n4.nabble.com/Oak-vs-Jcr-APIs-tp4665708.html
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>