aspose file tools*
The moose likes Java in General and the fly likes serialize and deserialize class objects in order to write/retrieve to/from database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "serialize and deserialize class objects in order to write/retrieve to/from database" Watch "serialize and deserialize class objects in order to write/retrieve to/from database" New topic
Author

serialize and deserialize class objects in order to write/retrieve to/from database

Tadas Davidsonas
Greenhorn

Joined: Aug 17, 2010
Posts: 9
I have a class:



How can I:
1) serialize page1 object
2) send it to the database
3) retrieve
4) deserialize

Serialize and desirealize are the most important to me. Sending and receiving I can handle on my own.

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10523
    
    9

Welcome to the Ranch.

Check out this link http://java.sun.com/developer/technicalArticles/Programming/serialization/ for more information on serializing/deserializing an object.

Your question is not pertaining to GWT. So I will move it to a more appropriate forum.
CarefullyChooseOneForum


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Tadas Davidsonas
Greenhorn

Joined: Aug 17, 2010
Posts: 9
It relates to GWT because I have serialise and deserialise using GWT classes. GWT implement only some libraries of JAVA and does not support the others that's why I have some problems to serialise. And the best, for me would be to serialise/deserialise everything on the client side. Any suggestions?

Thank you.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

What do you mean, serialize and deserialize on the client side? The client side is a browser for GWT, no? You're not running Java on the client.
Tadas Davidsonas
Greenhorn

Joined: Aug 17, 2010
Posts: 9
I mean hot to serialise the object using google gwt classes then pass that object to PHP and with php write it to the database.

Thank you very much for your concern. Sorry for the late reply.
 
 
subject: serialize and deserialize class objects in order to write/retrieve to/from database