cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: Best way to turn a DataRow into an Object instance in ROP client?
Date Fri, 05 Jun 2009 10:49:58 GMT

> I have a DataRow in an ROP client.
> Is there a way to turn it into an
> object registered to a CayenneContext
> without doing another read to the
> database?

You can using DataObjectUtils. But this will incur a trip to the  
server. Whether the server will query the DB or not depends on whether  
the object has been cached already on the server.

Andrus


On Jun 4, 2009, at 9:55 AM, Zissis Trabaris wrote:

> I have a DataRow in an ROP client.  Is there a way to turn it into an
> object registered to a CayenneContext without doing another read to  
> the
> database?
>
>
>
> Zissis Trabaris * Chief Technology Officer * INSYSWARE * 3235 West  
> River
> Road, Grand Island, New York, 14072, USA
> Mobile (716) 930-5654 * Office (518) 636-4118 * Fax (716) 625-1305 *
> z.trabaris@insysware.com <mailto:%20%20z.trabaris@insysware.com>  *
> www.insysware.com <http://www.insysware.com/>
>
> ________________________________
>
> CONFIDENTIALITY: This email (including any attachments) may contain
> confidential, proprietary and privileged information, and unauthorized
> disclosure or use is prohibited. If you received this email in error,
> please notify the sender and delete this email from your system. Thank
> you.
>
>
>


Mime
View raw message