Re: Prepared Statements

From: Dmitry Tkach <dmitry(at)openratings(dot)com>
To: Julien Le Goff <julien(dot)legoff(at)laposte(dot)net>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Prepared Statements
Date: 2003-07-16 22:05:13
Message-ID: 3F15CC19.8060208@openratings.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Paul Thomas 2003-07-16 23:23:29 Re: Prepared Statements
Previous Message Dmitry Tkach 2003-07-16 22:01:44 Re: Prepared Statements