Re: XMLEncoder / XMLDecoder

From: Adrian A. (a.adrian.tec..mail.com)
Date: Thu Jul 08 2010 - 17:44:42 UTC

  • Next message: Andrus Adamchik: "Re: Cayenne 3.0 in the Media"

    >> Am I able to use the XMLEncoder to serialize a list of data objects. I
    >> can see the XMLDecoder has a decodeList method, however the XMLEncoder
    >> does not appear to have a public encodeList method?
    >
    > Some while ago we wrote a backup and restore feature into our tool:
    >
    > http://somap.svn.sourceforge.net/viewvc/somap/sobf_tool/src/org/somap/sobf/database/backuprestore/
    >
    >
    > Please have a look at Backup.java and Restore.java.
    >
    > Basically we filled a ZIP file. This file contained a Manifest file
    > which contained the names of the tables stored in that specific zip
    > archive. Every table was written as a separate XML file which was stored
    > in the same zip file.
    Nice solution.

    Ever thought about making it generic, so that other users can simply use
    it and have backup/restore for their Cayenne based apps by just calling
    your code?

    Adrian.



    This archive was generated by hypermail 2.0.0 : Thu Jul 08 2010 - 17:48:40 UTC