File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Bodgitt & Scarper database & it's jtable display Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Bodgitt & Scarper database & it Watch "Bodgitt & Scarper database & it New topic
Author

Bodgitt & Scarper database & it's jtable display

tim parks
Greenhorn

Joined: May 22, 2004
Posts: 12
Hi
There is a 1 byte flag for valid/deleted records in the datbase format. I presume I'm expected to parse this and only show valid records in the GUI's JTable?

Once I've booked a contractor, should that contractor still be displayed? There is no mention in the assignment about unbooking a contractor to make it availible for others to use,

any thoughts?

thanks
Tim
Paul Anilprem
Enthuware Software Support
Ranch Hand

Joined: Sep 23, 2000
Posts: 3254
    
    2
Originally posted by tim parks:
Hi
There is a 1 byte flag for valid/deleted records in the datbase format. I presume I'm expected to parse this and only show valid records in the GUI's JTable?

I suspect that you've not yet thought about your Database class otherwise you wouldn't have asked this question The reason is that the delete flag is just an implementation detail of how your "database" handles deleted records. Your "select" queries will never return deleted records. In other words, since your Database class will never return deleted records (because logically they don't even exist), your GUI does not have to worry about it.
Yes, some code will be there to parse this byte and to determine whether it is a deleted record or not. But this code will not be a part of the GUI. Do you see the point?

Originally posted by tim parks:

Once I've booked a contractor, should that contractor still be displayed? There is no mention in the assignment about unbooking a contractor to make it availible for others to use,

any thoughts?
thanks
Tim

"There is no mention in the assignment ....", there you said it You are free to do what YOU think is appropriate. You can either show it in the GUI with the booking info in one of the columns (in this case, you'll also prohibit booking it.) or you can just not display any records that have been booked. Neither is wrong.
But whatever you do make sure you make a note of it and explain why you decided to do it.

HTH,
Paul.


Enthuware - Best Mock Exams and Questions for Oracle/Sun Java Certifications
Quality Guaranteed - Pass or Full Refund!
Robert Konigsberg
Ranch Hand

Joined: Jun 23, 2004
Posts: 172
Yeah, in general, what do [bold]you[/bold] think is correct? Start with that, at least.


SCJP 1.4 (91%)<br />SCJD 1.4 (376/400, 94%)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Bodgitt & Scarper database & it's jtable display
 
Similar Threads
JTable
JTable
Gaps in JTable for deleted records?
JTable
JTable