[xwiki-dev] Query
Jerome Velociter
jerome.velociter at gmail.com
Fri Jun 8 12:54:41 CEST 2007
Hi,
Please someone correct me if I'm wrong.
I think xwiki objects cannot be instance of types (such as
"StaticListClass"), but only of xwiki classes. the types (String,
StaticList, etc.) are only intended to be classes properties.
There is a privileged API to make queries that can return objects or
properties : $xwiki.search($wheresql). Privileged means the velocity script
running it needs to be saved by someone with the "programming" right
allowed.
It can then retrieve your objects this way :
#set($myobjects=$xwiki.search("select obj from BaseObject as obj where
obj.className='MySpace.MyClass'"))
Have fun,
Jerome
On 6/6/07, evelyne24 at gmail.com <evelyne24 at gmail.com> wrote:
>
> Hello,
>
> I have problems making a query to retrieve from the database all the
> objects that are from a certain class (e.g "TryClass") and of a certain
> type as well (e.g "StaticListClass").
> Can anyone give me a hint please?
>
> Thank you very much.
>
> Evelina Slatineanu
>
>
>
> --
> You receive this message as a subscriber of the xwiki-dev at objectweb.orgmailing list.
> To unsubscribe: mailto: xwiki-dev-unsubscribe at objectweb.org
> For general help: mailto:sympa at objectweb.org?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xwiki.org/pipermail/devs/attachments/20070608/b2fd21a6/attachment.html
More information about the devs
mailing list