This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I want to thank the people here for thier help near the end. I had finished my project before finding this site and it helped clearify some questions in my mind before sumitting it. Took my test and sumbitted on Nov. 28. Got my score today. Here is the breakdown. Test: The maximum possible # of points is 155; the minimum to pass is 124. General Considerations (maximum= 58): 58 Documentation (maximum= 20): 20 GUI(maximum= 24): 24 Server(maximum = 53): 49
Congratulation ! what a great score . You must be prof. developer. one question if u dont mind ? did u wrote whole lock and unlock methods in Data class also or only defination(as Data class is used only for local mode)? Or u kept complete lock & unlock methods in Both classes (Data and RemoteData)? pl. guide thanks reena
Joined: Dec 06, 2001
Reena, I implemented a lock manager which took care of managing the locking mechanism. This allowed for encapsulation. The Data class unlock and lock methods use the lock manager since the Data class is mainly used for non-remote database services. The RemoteData class basically provides the remote database services so the unlock and lock methods implement sending the request over to the server. I then used a factory so that a client can just ask the factory for either a remote or non-remote database object. Using an interface provides the polymorphic behavior so the client can just invoke the lock or unlock method on the database object hiding the remote and non-remote implementations. Hope that helps! Jim