Return-Path: X-Original-To: apmail-db-derby-user-archive@www.apache.org Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 883B4620D for ; Mon, 25 Jul 2011 19:00:23 +0000 (UTC) Received: (qmail 90320 invoked by uid 500); 25 Jul 2011 19:00:23 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 90278 invoked by uid 500); 25 Jul 2011 19:00:22 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 90271 invoked by uid 99); 25 Jul 2011 19:00:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jul 2011 19:00:22 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [141.146.126.227] (HELO acsinet15.oracle.com) (141.146.126.227) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jul 2011 19:00:13 +0000 Received: from rtcsinet21.oracle.com (rtcsinet21.oracle.com [66.248.204.29]) by acsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p6PIxoAE015260 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 25 Jul 2011 18:59:52 GMT Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by rtcsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p6PIxnwG020049 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 25 Jul 2011 18:59:49 GMT Received: from abhmt112.oracle.com (abhmt112.oracle.com [141.146.116.64]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p6PIxiDr006243 for ; Mon, 25 Jul 2011 13:59:44 -0500 Received: from localhost (/84.48.59.165) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 25 Jul 2011 11:59:43 -0700 From: Knut Anders Hatlen To: "Derby Discussion" Subject: Re: metadata / getClientInfo() References: Mail-Copies-To: never Mail-Followup-To: "Derby Discussion" Date: Mon, 25 Jul 2011 20:59:44 +0200 In-Reply-To: (Thomas Hill's message of "Mon, 25 Jul 2011 18:25:24 +0000 (UTC)") Message-ID: User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (usg-unix-v) MIME-Version: 1.0 Content-Type: text/plain X-Source-IP: rtcsinet21.oracle.com [66.248.204.29] X-CT-RefId: str=0001.0A090203.4E2DBD28.009D,ss=1,re=0.000,fgs=0 Thomas Hill writes: > okay - true. > I was however wondering and wanted to test whether I could replace a > potentially in terms of performace more costly JDBC statement definition > and result set processing of a 'select session_user from sysibm.sysdummy1' > by an assumed less costly request of a property from a connection object > I have at hand anway? > Even if this would turn out to not be better in terms of performance, I > think I would still like to understand how this getClientInfo() works. > When using SQuirreL I can see a lot of connection properties / metadata > displayed under their 'metadata' tab that I would suspect they are getting > via such mechanisms. > In the derby docs I am afraid one hardly finds details on the subject. > Thanks Thomas In the lack of documentation, there's always the source... ;) EmbedConnection40.java: /** * getClientInfo always returns a * null String since Derby doesn't support * ClientInfoProperties. * * @param name a String value * @return a null String value * @exception SQLException if the connection is closed. */ public String getClientInfo(String name) throws SQLException{ checkIfClosed(); return null; } So I'm afraid getClientInfo() won't be the solution to any of your problems... -- Knut Anders