Hi Ken,
I implemented the int[] find(
String[] criteria) method in tha Data class to return all records that match the criteria. However in my business layer I filter on date and records that have booked.
I guess it depends on how you interpret the requirements.
They take bookings only within 48 hours of the start of room occupancy
The GUI does not support searching by date, so I have decided to filter based upon the 48 hour requirement as there could be records in the database for rooms that were available 3 months ago, and I don't think it makes sense to display these rooms.
I'm not saying my approach is right, but personally think having hundreds of records that are not available is not very user friendly, i.e date of availability in the past or in the future, or already booked.
I'm sure you approach is also valid, it's just that I think it will not be clear to the user which rooms are available or not.
As long as you can justify the reason for your decision I'm sure you will not lose marks.
Jason.
[ March 31, 2006: Message edited by: Jason Moors ]
[ March 31, 2006: Message edited by: Jason Moors ]