X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 438C352A0B for ; Wed, 27 Jul 2005 12:04:44 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 76070-04 for ; Wed, 27 Jul 2005 15:04:36 +0000 (GMT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by svr1.postgresql.org (Postfix) with ESMTP id F242A52BBF for ; Wed, 27 Jul 2005 12:04:34 -0300 (ADT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j6RF4XIo008465 for ; Wed, 27 Jul 2005 11:04:33 -0400 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j6RF4XV16187 for ; Wed, 27 Jul 2005 11:04:33 -0400 Received: from vpn83-155.boston.redhat.com (vpn83-155.boston.redhat.com [172.16.83.155]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id j6RF4WMT002742 for ; Wed, 27 Jul 2005 11:04:33 -0400 From: Vadim Nasardinov Organization: Red Hat (Westford) To: pgsql-jdbc@postgresql.org Subject: Re: jdbc xa patches Date: Wed, 27 Jul 2005 11:04:19 -0400 User-Agent: KMail/1.8 References: <20050726193540.M74424@yvyyl> <20050726225605.T74424@yvyyl> <42E70E8E.9010408@opencloud.com> In-Reply-To: <42E70E8E.9010408@opencloud.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200507271104.19933.vadimn@redhat.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.011 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/367 X-Sequence-Number: 13515 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