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 ]
posted 10 years ago
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.