1. Did you wait on lockManager(if you had one) or on the record in lock method?
2. And did you use notfiy or notifyAll in the unlock method?
When I close the window by clicking the X at right-top corner, the window closes even I don't add a window listener,why?
I'm curious if anyone here has decided to write their database contents to file when the database is being closed.
I tested writing my database's contents to a temp file using RandomAccessFile's writeXXXX methods,
Note also that nothing is actually serialized in local mode; the class just implements in interface that says it's OK if you do serialize it.
No, it is serializable. You can try omitting this declaration initially, but eventually rmic will complain that it can't create a stub class for a Remote interface if a return value or parameter type isn't Serializable, or a primitive type.
This fact that this object is Serializable enables me to return it from my RemoteDataImpl in RMI, but in local mode this is irrelevant. I just call getMetaData() and get the object.
Given the above, it will probably be my final design decision that the client only support one view of the data. So this means I shouldn't be using MVC, correct? Sure, I should work to separate business logic from view logic, etc. etc. but it's my understanding doing so is just adhering to good coding practices, and not really implementing the MVC pattern.
Your user interface should be designed with the expectation of future functionality enhancements.
When you are ready to upload your project, you won't have to worry about how and where to include this file and also since the grader's machine and set-up most likely will be so different that yours that it doesn't make sense to include it in the first place (thanks Andrew).
I agree with you that there are no need for default values.