From: Oliver Jowett <oliver@opencloud.com>
To: Vadim Nasardinov <vadimn@redhat.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: jdbc xa patches
Date: Thu, 28 Jul 2005 10:37:47 +1200
Message-ID: <42E80CBB.1030006@opencloud.com> (raw)
In-Reply-To: <200507271104.19933.vadimn@redhat.com>
References: <20050726193540.M74424@yvyyl>
<20050726225605.T74424@yvyyl>
<42E70E8E.9010408@opencloud.com>
<200507271104.19933.vadimn@redhat.com>
Vadim Nasardinov wrote:
> On Wednesday 27 July 2005 00:33, Oliver Jowett wrote:
>
>>>>Having ResourceAssociationState as a full-blown class seems like
>>>>overkill since you only have one instance anyway.
>>>
>>>Maybe. Java 1.4 doesn't have enums. What do you suggest as an
>>>alternative?
>>
>>Just a bare int?
>
>
> Java 1.4's typesafe enum pattern doesn't usually strike me as an
> overkill, as long as you're aware of its problems:
>
> http://www.google.com/search?q=Java+typesafe+enum
Shrug, the main reason for an enum-like pattern is to get type safety,
but in this case there's only one field that ever uses the enum (and
it's never passed around as a parameter), so there's not much scope for
getting it wrong.
-O
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: oliver@opencloud.com, vadimn@redhat.com
Subject: Re: jdbc xa patches
In-Reply-To: <42E80CBB.1030006@opencloud.com>
References: <20050726193540.M74424@yvyyl> <20050726225605.T74424@yvyyl> <42E70E8E.9010408@opencloud.com> <200507271104.19933.vadimn@redhat.com> <42E80CBB.1030006@opencloud.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