You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by David Buchmann <da...@liip.ch> on 2013/06/22 10:25:43 UTC
multivalue property query result value
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hi,
while implementing the php port of jcr, we hit the question what the
return value of Row.getValue() [1] should be if the property in
question is multivalue. it seems jackrabbit converts things to string
and concatenates them. is this situation specified anywhere?
thanks,
david
[1]
http://www.day.com/maven/javax.jcr/javadocs/jcr-2.0/javax/jcr/query/Row.html#getValue%28java.lang.String%29
- --
Liip AG // Agile Web Development // T +41 26 422 25 11
CH-1700 Fribourg // PGP 0xA581808B // www.liip.ch
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQEcBAEBAgAGBQJRxV+DAAoJED/JtliXIA4suUQH/ioa9rrdf3S9swJoZd8G05Ju
bskworJV1VY6AVAFeGhDWc8JA5pL1y7x59YBjk0fIj6U6Yv+FN3/yYNOqVIJI70t
bVV4qeN0CGtnKIKvQPxlIYG2T2okzk7+iic6JE65wW1EDTcqX8v9Jk1G3N7c/PeU
G5nkge5I5FOes/dmutAKO0QkO3TG8O23UdVUM89L95w1GFKoLWOzqe2sO/YxWnFl
mOKan1KrlYkN63dtu0Gp/6B1fx+CEN7zFxXka5VDLcHKLyjPBYnLUdTPnqVGbRPT
ONbd3EomJYInYGzgR72MQVejuLvmL11v8uv6+1BU3jDbPiKgCRTHFuJm92Mb0Z0=
=VlVB
-----END PGP SIGNATURE-----
Re: multivalue property query result value
Posted by David Buchmann <da...@liip.ch>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hi bertrand
thanks a lot for pointing me to this, that answers the question.
we might want to explain that somewhere in the jcr 2.1 doc to avoid
uncertainty.
cheers,david
Am 24.06.2013 13:56, schrieb Bertrand Delacretaz:
> Hi,
>
> On Sat, Jun 22, 2013 at 10:25 AM, David Buchmann
> <da...@liip.ch> wrote:
>> ....we hit the question what the return value of Row.getValue()
>> [1] should be if the property in question is multivalue...
>
> As per a previous question at [1], JSR 170 doesn't have a way to
> get multivalues directly from a result set - I don't think that
> has changed in JSR 283.
>
> As mentioned there, the workaround is to use
> Row.getNode().getProperty(name).getValues()
>
> -Bertrand
>
> [1] http://markmail.org/message/aanmdxcufwiqj2gl
>
- --
Liip AG // Agile Web Development // T +41 26 422 25 11
CH-1700 Fribourg // PGP 0xA581808B // www.liip.ch
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQEcBAEBAgAGBQJRyDnXAAoJED/JtliXIA4spf4H/2VCBr8RVq6e4hMENfj1xLMl
/FxyeDUEzh+qc+dNVa/fpxijfoWcH8TvfMqluDwHwvbyq8EWU3vDRAfAmn8lgBhT
+00Gar/LDyNSuJYqh/qCcecgBAEBQVSEcVS3vlHw1RokwhK1m1bY3tN5Fcxc7BvB
4I/6Tdost0emy4mV56g3DGJ0InGiZQ/JVDJD+t4YecR2oAp/WWF07Jf3G6c2fI2w
eZCH2lBBZ8U26G6HqdvBiGJwzJgp0SO8yaNRG3d3trAWcuI0ju8sL0uIo0gfx3hy
g+HRPc5MPjdExe64w3Vv3c6cdIx89PCaG66KNNJz3dViuIh5fbuf6KInRpdOkqE=
=NTu8
-----END PGP SIGNATURE-----
Re: multivalue property query result value
Posted by Bertrand Delacretaz <bd...@apache.org>.
Hi,
On Sat, Jun 22, 2013 at 10:25 AM, David Buchmann <da...@liip.ch> wrote:
> ....we hit the question what the
> return value of Row.getValue() [1] should be if the property in
> question is multivalue...
As per a previous question at [1], JSR 170 doesn't have a way to get
multivalues directly from a result set - I don't think that has
changed in JSR 283.
As mentioned there, the workaround is to use
Row.getNode().getProperty(name).getValues()
-Bertrand
[1] http://markmail.org/message/aanmdxcufwiqj2gl