jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting" <jukka.zitt...@gmail.com>
Subject Re: 3.1.3.1 Removing Items
Date Fri, 17 Aug 2007 22:52:59 GMT
Hi,

On 8/18/07, Mark Waschkowski <mwaschkowski@gmail.com> wrote:
> "Do you understand what I mean with this?"
> Yes, I do. IMO this isn't a matter of making things more complicated, its a
> matter of what I perceive is a flaw with the API. Again, without nulls we
> have had to do a number of workarounds that would not have been otherwise
> required, and not only that but I find the behavior undesirable in the
> general case.

Could you describe what kinds of workarounds you've needed? Apart from
search the only workaround I believe is needed to emulate the SQL
model is:

    Value getValue(Node node, String name) throws ... {
        try {
            return node.getProperty(name).getValue();
        } catch (PathNotFoundException e) {
            return null;
        }
    }

BR,

Jukka Zitting

Mime
View raw message