jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Klimetschek" <aklim...@day.com>
Subject Re: Determine if Node has been deleted
Date Fri, 10 Oct 2008 07:45:27 GMT
On Fri, Oct 10, 2008 at 12:58 AM, Torgeir Veimo <torgeir@pobox.com> wrote:
> Maybe a revision to the JCR standard might at some point adopt some
> convenience methods to make soft references a bit more transparent, doing
> the lookup implicit, throwing an exception if the node no longer exist?

That's what the new type WEAKREFERENCE in JCR 2.0 is for. Citing
section 3.7.3 of the public review of JSR-283 [1]:

A WEAKREFERENCE property is identical to a REFERENCE property
except that it does not enforce referential integrity. A call to
Property.getNode on a WEAKREFERENCE will throw an
ItemNotFoundException if no node exists in the same workspace
with the specified referenceable identifier.

[1]: http://jcp.org/en/jsr/detail?id=283


Alexander Klimetschek

View raw message