pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Servin <cservin@cromagnon.com>
To: Kevin Murphy <murphy@genome.chop.edu>
To: pgsql-jdbc@postgresql.org
Subject: Re: OT: easiest way to create a custom PreparedStatement class
Date: Tue, 28 Jun 2005 14:55:09 -0500
Message-ID: <200506281455.09688.cservin@cromagnon.com> (raw)
In-Reply-To: <42C19D1D.30809@genome.chop.edu>
References: <42C19D1D.30809@genome.chop.edu>

Or you could use:

java.lang.reflect.Proxy


On Tuesday 28 June 2005 01:55 pm, Kevin Murphy wrote:
> I am modifying some existing data loading code (that only makes use of 4
> or 5 methods from PreparedStatement) to optionally be able to *not*
> connect to a database but instead dump either the generated SQL code or
> the raw insert data to files on the file system.
>
> It would be great if I could just overload PreparedStatement with my own
> classes, but unfortunately it is an interface, so I presumably need to
> implement stubs for the umpty-ump methods defined by PreparedStatement?
>
> Is this true, and if so, what is the easiest/fastest way to do this (if
> it is even possible)?
>
> I am a java newbie, by the way.  Don't flame me too hard.  I did say
> "OT", after all ;-)
>
> Thanks,
> Kevin
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
>        subscribe-nomail command to majordomo@postgresql.org so that your
>        message can get through to the mailing list cleanly



view thread (4+ messages)  latest in thread

Message-ID: <200506281455.09688.cservin@cromagnon.com>
Permalink:  ../200506281455.09688.cservin@cromagnon.com/
Also on:    postgresql.org/message-id/200506281455.09688.cservin@cromagnon.com

 · 

reply

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: cservin@cromagnon.com, murphy@genome.chop.edu
  Subject: Re: OT: easiest way to create a custom PreparedStatement class
  In-Reply-To: <200506281455.09688.cservin@cromagnon.com>
  References: <42C19D1D.30809@genome.chop.edu> <200506281455.09688.cservin@cromagnon.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