jQuery in Action, 3rd edition
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes serialization Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "serialization" Watch "serialization" New topic


woo sung

Joined: Dec 09, 2005
Posts: 6
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 ?
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 ]
Chengwei Lee
Ranch Hand

Joined: Apr 02, 2004
Posts: 884
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.

SCJP 1.4 * SCWCD 1.4 * SCBCD 1.3 * SCJA 1.0 * TOGAF 8
I agree. Here's the link: http://aspose.com/file-tools
subject: serialization
It's not a secret anymore!