Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 60181 invoked from network); 13 Nov 2006 07:20:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Nov 2006 07:20:44 -0000 Received: (qmail 14004 invoked by uid 500); 13 Nov 2006 07:20:48 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 13979 invoked by uid 500); 13 Nov 2006 07:20:48 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 13959 invoked by uid 99); 13 Nov 2006 07:20:48 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Nov 2006 23:20:48 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [212.202.99.194] (HELO nsdcom.de) (212.202.99.194) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Nov 2006 23:20:34 -0800 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: AW: oracle XmlType X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Mon, 13 Nov 2006 08:20:09 +0100 Message-ID: <2720B176E7BC0E4F8AC94C5DD748030918ED69@nsd-comix.nsdcom.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: oracle XmlType Thread-Index: AccFqFl3N5dEGVbTSAWYeI4Ro1P5eQBS8KqA References: <2720B176E7BC0E4F8AC94C5DD748030918ED66@nsd-comix.nsdcom.local> From: =?iso-8859-1?Q?Timo_Schn=F6lzer?= To: , X-Virus-Checked: Checked by ClamAV on apache.org Hi Larry, thx for Info, I did it like u said! Timo -----Urspr=FCngliche Nachricht----- Von: larry.meadors@gmail.com [mailto:larry.meadors@gmail.com] Im Auftrag = von Larry Meadors Gesendet: Samstag, 11. November 2006 16:45 An: user-java@ibatis.apache.org Betreff: Re: oracle XmlType That didn't take long. :-) This method on the dbcp.DelegatingResultSet will get it's wrapped result = set: public ResultSet getDelegate() So, now, you just have to look at the RS you get, and if it's dbcp's, = call that. If it's the iB logging one, get it's "rs" field (which will = most likely be the dbcp resultset). Non-standard APIs can be a pain, and as much as I like Oracle, they seem = to be masters of making them. :-( Larry On 11/11/06, Larry Meadors wrote: > Hmm, this could be fun. ;-) > > The connection pool wraps the result set...and so does iBATIS (for=20 > logging), and depending upon the log level, you will see different=20 > result set objects. > > What you will need to do is look at the result set you get, and based=20 > on that, try to get the object it is wrapping. > > So, if it's the ResultSetLogProxy, there is a private field that has=20 > it (it's private, but you can still get that via reflection... and I=20 > just added a getter for it in SVN). > > I am looking for a copy of dbcp now.. > > Larry > > > On 11/11/06, Timo Schn=F6lzer wrote: > > > > > > Hi Jeff, > > > > I am getting a > > > > com.ibatis.common.jdbc.logging.ResultSetLogProxy > > > > when using DEBUG level and a apache dbcp.DelegatingResultSet when=20 > > going on ERROR for Resultset debugging. > > > > Any ideas welcome > > > > > > > > Timo > > > > ________________________________ > > Von: Jeff Butler [mailto:jeffgbutler@gmail.com] > > Gesendet: Freitag, 10. November 2006 17:51 > > An: user-java@ibatis.apache.org > > Betreff: Re: oracle XmlType > > > > > > > > What class is returned from getter.getResultSet()? > > > > If you have logging enabled, you might be getting iBATIS' result set = > > proxy instead of the underlying result set. > > > > Does it work differently if you enable or disable logging? > > > > Jeff Butler > > > > > > > > > > On 11/10/06, Timo Schn=F6lzer wrote: > > > Hi Folks, > > > > > > I am using the Ibatis mapping tool for long and want to map=20 > > > XmlType from > > Oracle. > > > I registerd the XMLTypeHandlerCallbackand the system is running=20 > > > into the > > getResult Method > > > returning the UnsupportedOperationException error: > > > > > > if (getter.getResultSet() instanceof OracleResultSet) { > > > OPAQUE opaqueValue =3D = getOpaqueValue(getter); > > > if (opaqueValue !=3D null) { > > > XMLType xmlResult =3D > > XMLType.createXML(opaqueValue); > > > return xmlResult.getDOM(); > > > } else { > > > return (Document) null; > > > } > > > } else { > > > throw new UnsupportedOperationException( > > > "XMLType mapping > > only supported for Oracle RDBMS"); > > > } > > > > > > Has anyone out there running example with the mapping and Object ? > > > > > > I am using "SELECT 1 as id, xmlelement("Flat",=20 > > > xmlattributes(z.floors > > ..... " > > > > > > With: > > > > > > > > > > > > > > > > > > > > >