From: Dmitry Tkach <dmitry@openratings.com>
To: Julien Le Goff <julien.legoff@laposte.net>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Prepared Statements
Date: Wed, 16 Jul 2003 18:05:13 -0400
Message-ID: <3F15CC19.8060208@openratings.com> (raw)
In-Reply-To: <200307161624.39340.julien.legoff@laposte.net>
References: <200307161624.39340.julien.legoff@laposte.net>
As for "40 member variables" - what we do is have *one* member variable,
which is a Map, containing prepared statements, keyed by the names, that
are meaningful to the app, so that the code, that uses those PS looks
something like:
PreparedStatement ps = (PreparedStatement) m_MyResources.get
(LOAD_USER_NAMES);
ps.setObject (1, foo);
ps.setObject (2, bar);
return ps.execute ();
Dima
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: dmitry@openratings.com, julien.legoff@laposte.net
Subject: Re: Prepared Statements
In-Reply-To: <3F15CC19.8060208@openratings.com>
References: <200307161624.39340.julien.legoff@laposte.net> <3F15CC19.8060208@openratings.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