From: anil <anil@server.awcoldstream.com>
To: pgsql-interfaces@postgreSQL.org <pgsql-interfaces@postgreSQL.org>
Subject: JAVA Mapping
Date: Mon, 23 Mar 1998 14:13:01 +0000
Message-ID: <35166DEC.6F1A4285@awcoldstream.com> (raw)
HI!
This may be a more like a Java question.
I wanted to map postgresql DB to Java.
The way I am doing...
class - customer : this is base class.
class - customerList extends customer has methods
public customer fromResultset(Resultset RS) - given the Resultset this
will return customer class instance
public static customerinsert1(String fielsName String content) handle
resultset from deifferent operations
public customerinset2(String fieldName int content)
I do insert field by field - when client press tab from Textbox it
inserts or updates the the DB field if content of field changed.
etc.. for delete and update
class DBConnection - methods - perform real queries and updates and
inserts etc.
opendir() - open connection to DB
closedir() -close connection
pquery() - perform query on db
class mywindow - has GUI
then this class will take customer instance and fill the fields
cna pass textfield vlaues to the instace of customer class
any other better way to do this?? I am sure ... yes!!!
Tks for any advice on this matter.
Anil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: anil@server.awcoldstream.com
Subject: Re: JAVA Mapping
In-Reply-To: <35166DEC.6F1A4285@awcoldstream.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox