db-ddlutils-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jun Li" <allanju...@gmail.com>
Subject Re: How can I write data within a list of tables into a XML file?
Date Wed, 12 Apr 2006 01:10:39 GMT
I see, the DataToDatabaseSink does work on live DB.

But another problem is, if the data with the same PK value already exists in
DB, can the DdlUtils just update the data instead of getting exception of
violation of PK.

On 4/10/06, Jun Li <allanjunli@gmail.com> wrote:
>
>
>
>  On 3/1/06, Thomas Dudziak <tomdzk@gmail.com> wrote:
>
> > On 3/1/06, Jun Li <allanjunli@gmail.com> wrote:
> >
> > > Here comes another question, how can I use DataReader to read the XML
> > file
> > > in and then insert them back to a database?
> >
> > This is similar, you'll just need the DataToDatabaseSink. E.g. have a
> > look at the WriteDataToDatabaseCommand :
> >
> >
> > http://svn.apache.org/viewcvs.cgi/db/ddlutils/trunk/src/java/org/apache/ddlutils/task/WriteDataToDatabaseCommand.java?view=markup
> >
> > Tom
> >
>
> I mean write data into a live database not a model.
> I guess I'll need to use *platform.* *insert*( Database model, Collection<http://java.sun.com/j2se/1.4.2/docs/api/java/util/Collection.html>
>  dynaBeans).
>
> But how to read the data from xml in to dynaBeans?
>
> --------------
> Cheers,
> Jun
>



--
--------------
Cheers,
Jun

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message