Originally posted by Ulrich Heeger:
1. Comments?
2. I'm just asking myself if the findByCriteria-method of the Data-Class should proceed a case sensitive search. Because I have implemented this method in the way that it makes a case insensitive search.
If the user asks for "fred" he will find "Freddy", but now I'm unsure if I violate the requirements. Can you help me?
Regards, George
SCJP, SCJD, SCWCD, SCBCD
2. I would implement a case sensitive search since I interpret the "exact match" language in the assignment instructions to include case.
I think you can make the population of the combo boxes a little easier. Nothing in the application allows records to be added or deleted from the database (yes, those operations are available on the server, but no one is making them available on the client). So, the only database operation implemented on the client that changes the database is update which only effect the owner field (which is not one of the search criteria fields). My point is that there is currently no way to modify the database other than by booking. So it is possible, in my opinion, to populate the name and location drop-down lists the first time records are obtained from the database (when all the records are retrieved) and then you don't have to worry about them anymore because that information can't really change given the way the application is currently designed.
I think you can make the population of the combo boxes a little easier. Nothing in the application allows records to be added or deleted from the database (yes, those operations are available on the server, but no one is making them available on the client). So, the only database operation implemented on the client that changes the database is update which only effect the owner field (which is not one of the search criteria fields). My point is that there is currently no way to modify the database other than by booking. So it is possible, in my opinion, to populate the name and location drop-down lists the first time records are obtained from the database (when all the records are retrieved) and then you don't have to worry about them anymore because that information can't really change given the way the application is currently designed.
The company's IT department has a data file that contains the essential information for the company, but because the data must continue to be manipulated for reports using another custom-written application, the new system must reimplement the database code from scratch without altering the data file format.
Originally posted by Leo Tien:
Although our application haven't these operation, but the other application have, and this must happen when you do search use your application.
So ensure we don't make any risk, I suggest to use 'refresh' mechanism.
Make sense?
Locking
Your server must be capable of handling multiple concurrent requests, and as part of this capability, must provide locking functionality as specified in the interface provided above. You may assume that at any moment, at most one program is accessing the database file; therefore your locking system only needs to be concerned with multiple concurrent clients of your server. Any attempt to lock a resource that is already locked should cause the current thread to give up the CPU, consuming no CPU cycles until the desired resource becomes available.
Regards, George
SCJP, SCJD, SCWCD, SCBCD
You may assume that at any moment, at most one program is accessing the database file; therefore your locking system only needs to be concerned with multiple concurrent clients of your server.
Regards, George
SCJP, SCJD, SCWCD, SCBCD
Sunglasses. AKA Coolness prosthetic. This tiny ad doesn't need shades:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|