File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes B&S : DBAccess 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 "B&S : DBAccess" Watch "B&S : DBAccess" New topic

B&S : DBAccess

Chris Hurst
Ranch Hand

Joined: Oct 26, 2003
Posts: 443

I'm assuming its ok to expand on the DBAccess interface i.e. implement more methods in Data that can be used by the GUI as currently there are no methods to read the database schema from the database in mine, just manipulate records so I'ed have to hard code this data in the GUI otherwise ?? Does the GUI have to use methods of the DBAccess form at all I mean I know you have to provide them and they must work but could you just provide some better ones as well and actually use them on the GUI (not intending to do this just thinking aloud).

"Eagles may soar but weasels don't get sucked into jet engines" SCJP 1.6, SCWCD 1.4, SCJD 1.5,SCBCD 5
Mark Ebeling
Ranch Hand

Joined: Jul 06, 2007
Posts: 38
I agree. I have implemented more methods in the Data class than are in the DBAccess interface too. But it would be good to hear from someone who has passed that they did it. I really don't see why it would be a problem.

GREAT DAY TO BE ALIVE - Beats the alternative!<br />
SCJP 5.0
Musab Al-Rawi
Ranch Hand

Joined: Aug 06, 2007
Posts: 231
I am also doing the SCJD.

I think that it would be better to take these extra methods into a higher level (business level/layer), these extended methods will use the original interface methods.

that's only my opinion.

uzma ali
Ranch Hand

Joined: Jun 22, 2007
Posts: 56

You might want to read through older post regarding this. What others have done, extended the DBACESS interface from another interface and defined additional methods in that interface.

I hope this helps

I agree. Here's the link:
subject: B&S : DBAccess
It's not a secret anymore!