db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Eade <se...@backstagetech.com.au>
Subject Re: how to simply retrieve value of existing row (was AW: how to use Peer.doUpdate(object))
Date Wed, 15 Jan 2003 12:55:48 GMT
On 15/01/2003 11:45 PM, "Marc Lustig" <mail@marclustig.com> wrote:

> Also, if I do this:
> Projekt projekt = new Projekt();
> projekt.setPrimaryKey(new NumberKey(itemId));
> projekt.setNew(false);
> then projekt.getProjektParaDescId();
> is NOT returning the value that is in the corresponding row!
> How on earth is it possible to simply retrieve the value of an existing row?
> This is so much of a simple task!

It is not clear from your example what you are trying to achieve.

Be retrieving a foreign key?  How is it going to retrieve anything if you
haven't initialised the projekt object?

Should you perhaps be doing:
Or similar, prior to the highlighted line?


Scott Eade
Backstage Technologies Pty. Ltd.
.Mac Chat/AIM: seade at mac dot com

View raw message