[Laszlo-user] XML to Lazslo Object Mapping
Francisco Jose Peredo
fperedo at sefintab.gob.mx
Mon Apr 9 07:17:02 PDT 2007
Hi everyone!
I would like... for example...:
* Instantiate directly dataset nodes to specific classes (for
example to have an inheritance hierarchy between them)
* To be able to have "calculated fields" in a dataset (for example,
a field that is the concatenation of two other fields, or the
result of an operation, for example, the sum of the values of
child nodes)
* Have object notation: person.deparment.name (is it possible?)
Basically... what i want is to find the way to have some kind of data
handling abstraction... (it seems that the dataset is for that... but
guess I want to know mode about its capabilities)
My main problem... is that, currently if I want to write code to access
data from SOAP, or plain XML or JMI, the code is very different in each
case... and I would like to create some kind of abstraction layer, so
that if at the beginning I use SOAP, and later I change to one of the
others... I don't have to make lots of adjustments... I guess I am
trying to create some kind of DAO/ORM framework for Laszlo... any hints?
Thanks a lot everybody for you answers!
bye
Tiago Cardoso escribió:
> Hello Francisco,
>
> I think that the dataset is evaluated and transformed in objects since
> it has data.
>
> If you notice, they are all LzNodes.
> What do you want really to do ? Instantiate directly dataset nodes to
> specific classes ?
>
> Take care,
>
> Tiago Cardoso
>
> On 4/4/07, *Francisco Jose Peredo* <fperedo at sefintab.gob.mx
> <mailto:fperedo at sefintab.gob.mx>> wrote:
>
> Hi!
> Is there a way to "hide" the dataset, and present the XML inside the
> dataset as a collection of Laszlo "objects"?
> some kind of Object / DataSet Mapping? Can it be built? Is there an
> example somewhere?
> Thanks
> bye
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20070409/8818a641/attachment.html
More information about the Laszlo-user
mailing list