Title: Message
You can't get access to the column name.  I've tried before.  Its a private field on the ResultGetter implementation object.  If only there was a getter method on the ResultGetter  interface.  Now that's an idea...
 
Paul


From: Balaji [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 29 March 2006 12:30 AM
To: [email protected]
Subject: Re: CTH - column name

won't getColumnName(int) need the column index.  What column index?
Tried doing getter.getClob().getAsciiStream(); - does not work bcos of Jconnect /Jdbc driver does not support getClob() method.
I am reading a 'text' column by calling getter.getResultSet().getAsciiStream("COLNAME");
But, i do not want to hard code the column name and be able to use CTH it for multiple columns of similar data type
 
 
Balaji
----- Original Message -----
Sent: Tuesday, March 28, 2006 10:13 AM
Subject: RE: CTH - column name

I think you can get column name from jdbc resultset metadata. Metadata can be accessed from resultset
-----Original Message-----
From: Balaji [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 28, 2006 11:09 AM
To: [email protected]
Subject: CTH - column name

Is there way to determine the column name that is being processed in getresult method (ResultGetter) of column type handler code?
 
Balaji
"DISCLAIMER: This email, including any attachments, is intended only for use by the addressee(s) and may contain confidential and/or personal information and may also be the subject of legal privilege. If you are not the intended recipient, you must not disclose or use the information contained in it. In this case, please let me know by return email, delete the message permanently from your system and destroy any copies.

Before you take any action based upon advice and/or information contained in this email you should carefully consider the advice and information and consider obtaining relevant independent advice.

Reply via email to