This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi all, I just got my results from sun. Grade: P Score: 147 Comment: This report shows the total points that could have been awarded in each section and the actual number of points you were awarded. This is provided to give you per-section feedback on your strengths. The maximum possible # of points is 155; the minimum to pass is 124. General Considerations(maximum = 58): 58 Documentation(maximum = 20): 17 GUI(maximum = 24): 23 Server(maximum = 53): 49 I want to thank all of you for the wonderful posts and especially Mark and Peter, who gave me some great ideas. Thanks, guys. By the way, I took my written exam on 3/28 and i was surprised to get the results so soon (2 weeks). When submitting the assignment I moved some images into another directory to decrease the jar file size and i forgot to update the links in the documentation. I guess that's why they took 3 points out. But the most important things is that i learned a lot of new stuff and of course the fact that i passed the exam. regards Roddy SCJD
Hi Reshma, I am not sure from where to start, but I'll do my best to explain what i did. so, - each of my components have clearly defined responsibilities. - i moved the application logic (booking and search criteria generation) into another class, called DataFacade, which uses the facade pattern, thus creating a thin layer between the gui and the data client. I tried to follow the mvc model. - i implemented the data client following the instructions. i provided two constructors (for local and remote mode), as required, though the factory pattern would be a better solution. - i modified the data class. i used linear algorithm for the criteriaFind method and used StringTokenizer to parse the criteria string. I wrote another method that returns all values in a column. - i implemented the record locking in a LockManager class and left the lock and unlock methods in Data class empty (they are not needed in local mode). - i provided additional locking for the db.db file. - i used rmi and i applied the factory pattern to it (thanks to Mark and Peter) - my RemoteData implements the Unreferenced interface and takes care of unlocked records, when its client dies. the gui has two jcomboboxes where the airports are listed alphabetically. the search result is displayed in a jtable. i played a little bit more with the table and allowed the user to sort flights by each column. The user enters the number of seats in a JTextField, to which i attached a listener who was checking for valid user inputs. i allowed to user to change the connection mode, too. I used the GridBagLayout manager. I think this explains most of the things i did. regards roddy