Two Laptop Bag*
The moose likes JDBC and the fly likes How to store Objects in Database? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How to store Objects in Database?" Watch "How to store Objects in Database?" New topic
Author

How to store Objects in Database?

Ajay Singhal
Ranch Hand

Joined: Jan 10, 2001
Posts: 37
hi! friends
I've written a program which is storing and retrieving objects to a file and now i want to use a database in place of files.
what is the procedure of storing objects to a Database.
should i implement SQLData interface for that purpose.
Ajay Singhal
------------------
rani bedi
Ranch Hand

Joined: Feb 06, 2001
Posts: 358
try using blob datatypes.


Cheers,<br />Rani<br />SCJP, SCWCD, SCBCD
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to store Objects in Database?
 
Similar Threads
Polish characters are gets changed to ? in websphere6.1 environment
how to store object in a table
preferred collection class for storing Resultset?
Image Databases
Do I close connections from a javax.sql.DataSource?