[Wylug-help] jdbc

Frank Shute Frank Shute <frank at esperance-linux.co.uk>
Sat, 7 Dec 2002 10:07:27 +0000


On Fri, Dec 06, 2002 at 10:38:05AM +0000, Phil Driscoll wrote:
>
> On Friday 06 December 2002 8:19 am, Frank Shute wrote:
> > I would have thought that the driver documentation would at least show
> > you an example query in Java with which you could test your
> > installation.
>
> The documentation implies that there is some kind of framework into which I
> should install the driver, but says nothing about it, and as I know little
> about Java other than in the context of browser applets, I remain bemused.

The driver itself should consist of some class files which will
describe the methods you invoke and the objects you create to write
java code to access the database.

These will be placed somewhere in the library of your JDK. You'd have
to look at the documentation of your JDK to know where to put them.
You're then in a position to write some code and the code will do the
required magic to supply a query to the database in a form that it
will understand & then pick up the result in an array or something.

If you haven't done any Java then I'd really recommend a book,
& certainly if you haven't done any OO programming.

I'd recommend `Understanding Object-oriented programming with Java'
auth: Budd pub: Addison Wesley.

It doesn't really go into all the classes and the API but you should be
able to get that from your JDK docs. But it does go into some important OO
programming techniques.

Sun & IBM have got some tutorials about Java on their sites.

It's a good language if you want to write anything fairly complicated
hooking up bits & pieces but it takes time to get your head around the
OO paradigm (especially if you're used to non-OO languages) and it
also takes time to find your way around the large & ever expanding
API.

I've found though that if you do your OO design homework, then the
code largely writes itself.

There's a huge market for Java programmers as you know, so it's worth
getting to know it - especially on the *nix side of things.

Unfortunately, I had to abandon my Java studies this year but I'm
hoping to get stuck into it next year again.

>
> > BTW, your clock is wrong!
> It's exactly one hour fast to the second though :)

Yes, I was impressed by how exactly it was wrong ;)

>
> Cheers
> --
> Phil Driscoll

Regards,

--

 Frank

*-*-*-*-*-*-*-*-*-*-*
   Boroughbridge.
 Tel: 01423 323019
     ---------
PGP keyID: 0xC0B341A3
*-*-*-*-*-*-*-*-*-*-*

http://www.esperance-linux.co.uk/

 Q: So a `Trusted Computer' is one that can break my security?
 A: Now You've got it.
                      - Dr Ross Anderson

     http://www.cl.cam.ac.uk/users/rja14/tcpa-faq.html