Re: DataObjectUtils.objectForPK

2012-11-02 Thread Andrus Adamchik
t; > - Forwarded message from gar...@hiwaay.net - >Date: Fri, 02 Nov 2012 08:13:03 -0500 >From: gar...@hiwaay.net > Reply-To: user@cayenne.apache.org > Subject: DataObjectUtils.objectForPK > To: user@cayenne.apache.org > > Is this the preferred method for

DataObjectUtils.objectForPK

2012-11-02 Thread garthk
From: gar...@hiwaay.net Reply-To: user@cayenne.apache.org Subject: DataObjectUtils.objectForPK To: user@cayenne.apache.org Is this the preferred method for returning a single, specific object instance from the database? Thanx, Garth - End forwarded message -

DataObjectUtils.objectForPK

2012-11-02 Thread garthk
Is this the preferred method for returning a single, specific object instance from the database? Thanx, Garth

Re: DataObjectUtils.objectForPK

2008-03-26 Thread Malcolm Edgar
;)Lorg/apache/ > > cayenne/DataObject; > > 10:59:06,990 INFO [STDOUT] at > > net > > .sf.click.extras.cayenne.CayenneForm.getDataObject(CayenneForm.java: > > 336) > > > > The cod which is causing this error is below: > > > >Class dataClas

Re: DataObjectUtils.objectForPK

2008-03-26 Thread Andrus Adamchik
which is causing this error is below: Class dataClass = getDataObjectClass(); DataObject dataObject = (DataObject) DataObjectUtils.objectForPK(getDataContext(), dataClass, id); Runtime environment is Java 1.5, running on JBoss 4.0.3 Can anyone suggest a resolution here. regards Malcolm Edgar

Re: DataObjectUtils.objectForPK

2008-03-25 Thread Malcolm Edgar
Class = getDataObjectClass(); > > DataObject dataObject = (DataObject) > DataObjectUtils.objectForPK(getDataContext(), dataClass, id); > > Runtime environment is Java 1.5, running on JBoss 4.0.3 > > Can anyone suggest a resolution here. > > regards Malcolm Edgar >

DataObjectUtils.objectForPK

2008-03-25 Thread Malcolm Edgar
/cayenne/DataObject; 10:59:06,990 INFO [STDOUT] at net.sf.click.extras.cayenne.CayenneForm.getDataObject(CayenneForm.java:336) The cod which is causing this error is below: Class dataClass = getDataObjectClass(); DataObject dataObject = (DataObject) DataObjectUtils.objectForPK

Re[2]: DataObjectUtils.objectForPK() doesnâ–’t work

2008-02-19 Thread Razumovsky Andrey
Thanks! 574 seems to be the same problem, with exception a bit different though. What is M4 plan release date, by the way? > KM> Hi Andrey, KM> You've run into CAY-574: KM> https://issues.apache.org/cayenne/browse/CAY-574 KM> This issue has been fixed in 3.0-SNAPSHOT and will be in 3.0M4 when that

RE: DataObjectUtils.objectForPK() doesn't work

2008-02-19 Thread Kevin Menard
2008 7:24 AM > To: user@cayenne.apache.org > Subject: ROP: DataObjectUtils.objectForPK() doesn't work > > Hello! > > So that's the problem, when i run my simple example: > public static void main(String[] args) throws CayenneException { > ClientConnection co

ROP: DataObjectUtils.objectForPK() doesn't work

2008-02-19 Thread Razumovsky Andrey
l channel = new ClientChannel(connection); ObjectContext context = new CayenneContext(channel); Militaryman mm = (Militaryman)DataObjectUtils.objectForPK(context, Militaryman.class, 100110250529L); Dicr

Re: DataObjectUtils.objectForPK

2007-11-28 Thread Michael Lepine
Okay, thank you. On Nov 28, 2007 3:06 PM, Aristedes Maniatis <[EMAIL PROTECTED]> wrote: > > 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

Re: DataObjectUtils.objectForPK

2007-11-28 Thread Aristedes Maniatis
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 per

DataObjectUtils.objectForPK

2007-11-28 Thread Michael Lepine
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? I've included an excerpt of the javadocs for 2.0 below. public static DataObject