• Post Reply Bookmark Topic Watch Topic
  • New Topic

Object instance value to a table field  RSS feed

 
aman bhatt
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do we store Object instance value to a table field.
Suppose I have a class Car and needs to store the instance value of Car with all its member variable to a table Filed.

If we need to save this in a file we could have used FileOutputStream and ObjectOutputStream with the Clas Car implements Serizaliable but how do we store th einstance in to table field

Thanks,
aman
 
Ken Blair
Ranch Hand
Posts: 1078
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you say "table" are you referring to a database or...?

In the case of a table you should be able to get a blob and then get an OutputStream from that to write to it with. From there I imagine it's pretty much the same deal.
[ November 11, 2005: Message edited by: Ken Blair ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!