• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

serialization

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In my Non-Networked Mode specificaion, "MUST NOT invole the SERIALIZATION of any objects when communicating between the GUI and database elements"

I am reading andrew's book, and I have a question about DVD class.
DVD class is degined by value object pattern and it seems to be a row in database.

It implements "serializable". The reason I guess is that DBClient interface has a method which return value DVD as a selected row ( public DVD getDVD(...) ).

If my interface DB(same as DBClient) does not have method which return class degined as value object(DVD),
Can i omit the serializable in the class?, if I have only "String[] read(int recNO)" to retrun as a row.

Do i need to implement "serializable" in my class ?
and
Do i need any class which implemets "serializable" ? (I will use RMI)

What i need to be careful about serializable to fulfill my Non-Networked specification?
[ January 25, 2006: Message edited by: woo sung ]
 
Ranch Hand
Posts: 884
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In a non-networked mode, your database file is in the same location (physical machine) as your application, you could simply use file I/O to update the database file, hence, no serialization is required. Thats how I interpreted the instructions.
 
If you try to please everybody, your progress is limited by the noisiest fool. And this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic