Originally posted by Mark Spritzler:
This is basically used if the create method is called with a new Contractor whose ID or Record number is the same with one that already exists in the db.db file.
It is like trying to add a new record to a database with the primary key being the same as another record's primary key. Since primary key is to be unique, trying to add one with the same key is an error.
Hope that helps clear things up
Mark
Originally posted by Thomas Kijftenbelt:
Hi,
I think that you don't have to implement the create / delete methods from the interface.
Greetings,
TK
Originally posted by Thomas Kijftenbelt:
I am working on the assignment (contractor), and I must admit I am also a bit confused about the recordNumber (which is a long); it simply is not present in the database file.
Further I have a question about the field "size" (number of staff in the organization). The description states: the number of workers available when this record is booked.
Should you create separate records in the database for each customer who books one or more workers; and if that is the case, what do you do when one of the records is for sale again (do you update all other records)?
Originally posted by Martin May
the delete method says in its comment that it should make the associated disk storage available for reuse. Now, does that mean for reuse by the program when it add a new record, or immediately (i.e. get rid of the data right away)?
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |