-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[EMAIL PROTECTED] wrote:

> I'd be willing to bet if you implement serializable, serialize it and dump
> it to a binary column (blob) .. you should be able to restore...
>

If you use PreparedStatements, Connector/J will do it 'automagically'
for you as long as you use PreparedStatement.setObject() and
ResultSet.getObject() and store the object into a BLOB field. There is a
caveat that for this to work, Connector/J and the serializable class
have to come from the same classloader in many cases (some application
servers make this functionality break).

Regards,

        -Mark



- --
Mr. Mark Matthews
MySQL AB, Software Development Manager, J2EE and Windows Platforms
Office: +1 708 557 2388
www.mysql.com

Are you MySQL Certified?
http://www.mysql.com/certification/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQE/T8B+tvXNTca6JD8RAjRgAJ4m6wvWjSCteyLtOdAidNXYKwf9nwCdEOMB
QaUaOAQsOwMlwYE+y98D8bk=
=sEYV
-----END PGP SIGNATURE-----


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to