cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aristedes Maniatis <...@ish.com.au>
Subject Re: DataObjectUtils.objectForPK
Date Wed, 28 Nov 2007 21:06:16 GMT

On 29/11/2007, at 7:55 AM, Michael Lepine wrote:

> I noticed that the convenience methods in the DataObjectUtils class  
> only
> execute a query if the object is not already cached. Is there a way  
> to force
> the methods to issue a query to the database?

After you get the object you can set its persistent state to HOLLOW.  
Then the next time you access its attributes, the object will be  
refaulted from the database.

Ari



-------------------------->
ish
http://www.ish.com.au
Level 1, 30 Wilson Street Newtown 2042 Australia
phone +61 2 9550 5001   fax +61 2 9550 4001
GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A



Mime
View raw message