You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ddlutils-user@db.apache.org by tyju tiui <jc...@yahoo.com> on 2008/04/30 22:14:27 UTC

ddlutils easier update possible?

Hi,

I'm curious to know if there is an easier way to issue a platform.update()?
Currently I have to fetch all of the values into a DynaBean and then update the values in the DynaBean before issuing my update to ensure I don't lose any data.

I'd like to just to a database.createDynaBeanFor(), assign the correct primary key and whatever value I want to update to do my update.
The problem is when I try to do this any value I don't set in the DynaBean gets set to NULL in the database.
So I have to waste a call to the db to fill a DynaBean before I can update the record.

Is there a better way?

Thanks,

Ty




      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Re: ddlutils easier update possible?

Posted by Thomas Dudziak <to...@gmail.com>.
On Wed, Apr 30, 2008 at 1:14 PM, tyju tiui <jc...@yahoo.com> wrote:

>  I'm curious to know if there is an easier way to issue a platform.update()?
>  Currently I have to fetch all of the values into a DynaBean and then update the values in the DynaBean before issuing my update to ensure I don't lose any data.
>
>  I'd like to just to a database.createDynaBeanFor(), assign the correct primary key and whatever value I want to update to do my update.
>  The problem is when I try to do this any value I don't set in the DynaBean gets set to NULL in the database.
>  So I have to waste a call to the db to fill a DynaBean before I can update the record.
>
>  Is there a better way?

Sorry, not at the moment (though feel free to file an issue in JIRA).

Tom