jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel May <marcel....@consol.de>
Subject Efficient way of loading multiple properties of a node?
Date Fri, 20 Oct 2006 09:22:44 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA384

Hi!

I'm wondering if there is an efficient way of loading all the
properties of a node?

When iterating over the properties of a node, it seems that each
property is fetched lazily, right?

Node node = ...
PropertyIterator iter = node.getProperties();
while(iter.hasNext()) {
    Property prop = iter.nextProperty();   // Loaded from DB
    ...
}

What I'd like to have is that all properties get eagerly fetched once.
Is this possible?

Thanks alot!

Cheers,
Marcel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFOJVhsMSa0wDYjIcRCcAvAKDLD98KqV+pHZKyZ01INgMYkAipGQCfRgVc
OznWStiuFpIP/dfinihYTkM=
=U8iX
-----END PGP SIGNATURE-----


Mime
View raw message