“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.” - Rich Cook
SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)
1. I have a field in my dbfile by name 'Date available' which has a description that goes like this: "The single night to which this record relates, format is yyyy/mm/dd". I want to know the importance of this field in the context of the assignment.
2. Also, does this field impact the 48 hour rule implementaion?
3. I need to implement a method in my Data class by this signature:
// Returns an array of record numbers that match the specified
// criteria. Field n in the database file is described by
// criteria[n]. A null value in criteria[n] matches any field
// value. A non-null value in criteria[n] matches any field
// value that begins with criteria[n]. (For example, "Fred"
// matches "Fred" or "Freddy".)
public int [] find(String [] criteria)
throws RecordNotFoundException;
Does this mean that I will need to have multiple search text fields on GUI?
1. Regarding the 48 hour rule implementation, how do we use the 'Date Available' field?. In my db file, I have dates that range from 2004 to 2005.
2. For the find method, the criteria is an array of strings. How do I separate out the name/location to two different strings unless they are delimited? or is it perfectly valid to send a single string as part of our implementation?
3. Also, the find criteria returns an array of ints. If I want to display the search results, where would I get them? Should I query the cached records for these record numbers (obtined as an array of ints from the find method) and send the details back to the gui?
Neil Renaud<br /> <br />SCJP 1.4<br />SCWCD 1.4<br />SCJD - In progress since March 05
scja|scjp|scjd|scwcd|scbcd|scdjws|scmad
scja|scjp|scjd|scwcd|scbcd|scdjws|scmad