ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Balaji" <bal...@objectec.com>
Subject Re: CTH - column name
Date Tue, 28 Mar 2006 16:30:22 GMT
Messagewon'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 ----- 
  From: Lingala, Sadasiva 
  To: user-java@ibatis.apache.org 
  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:balaji@objectec.com] 
    Sent: Tuesday, March 28, 2006 11:09 AM
    To: user-java@ibatis.apache.org
    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
Mime
View raw message