Subject | Re: [Firebird-Java] JayBird |
---|---|
Author | Rick Fincher |
Post date | 2002-10-31T19:10:19Z |
Hi George,
Are the Java examples in the release notes not adequate? Local and
networked connections are made in exactly the same way, except that you can,
but don't have to, substitute "localhost" for the server's DNS name or IP
Number.
If you are just learning Java, one way to start might be to write a Java
demo application that has a button and some sort of text field. Set it up
so that clicking the button calls a method that inserts a string like "this
is a test" into the text field. You should be able to find examples for
that in almost any learning Java book. You can get that working without the
complication of trying to do the Java and the database simutaneously.
After you get that working you can copy and paste the Java examples found in
the release notes into the method that executes when you click the button.
Change the appropriate lines for your server name and the database and table
names.
Use IBConsole or one of the other gui programs to debug an SQL statement
that selects something from your database. Then paste your working SQL
statement into the appropriate place in your Java method. Then modify your
method to stick the string returned by the sql statement into the Java text
field instead of the string "this is a test".
Rick
Are the Java examples in the release notes not adequate? Local and
networked connections are made in exactly the same way, except that you can,
but don't have to, substitute "localhost" for the server's DNS name or IP
Number.
If you are just learning Java, one way to start might be to write a Java
demo application that has a button and some sort of text field. Set it up
so that clicking the button calls a method that inserts a string like "this
is a test" into the text field. You should be able to find examples for
that in almost any learning Java book. You can get that working without the
complication of trying to do the Java and the database simutaneously.
After you get that working you can copy and paste the Java examples found in
the release notes into the method that executes when you click the button.
Change the appropriate lines for your server name and the database and table
names.
Use IBConsole or one of the other gui programs to debug an SQL statement
that selects something from your database. Then paste your working SQL
statement into the appropriate place in your Java method. Then modify your
method to stick the string returned by the sql statement into the Java text
field instead of the string "this is a test".
Rick
----- Original Message -----
> And please can we hava a simple java program (gui) to
> demonstrate a local and a networked connection. It
> would help those of us who are struggling with java.
> thanks
>
> george
>
> > -----Original Message-----
> > From: Ann W. Harrison [mailto:aharrison@...]
> > Sent: Thursday, October 31, 2002 11:14 AM
> > To: fbrunners@yahoogroups.com; Firebird-Java@yahoogroups.com;
> > Firebird-Admin@...
> > Subject: [Firebird-Java] JayBird
> >
> >
> > Is there anyone with the spare time to put together a
> > description of JayBird - what makes it great, why it's
> > exciting - that we could send around as a press release?
> >
> > Regards
> >
> >
> > Ann
>