ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Butler" <jeffgbut...@gmail.com>
Subject Re: Sql statement and Meta-Data
Date Mon, 11 Jun 2007 21:40:28 GMT
This is not a great solution, but the best you could do in iBATIS is this:

<select id="customSelect" resultClass="java.util.HashMap"

This is wide open to SQL injection, but I assume you are handling this other

iBATIS does not use ResultSetMetadata.  If you need access to such, then you
should probably drop to plain JDBC.

Jeff Butler

On 6/11/07, Caio Zanchetti <caio.zanchetti@gmail.com> wrote:
> Hi!
> Now I have another problem! (I'm sorry if my questions are so simple!)
> I would need to execute an sql statement created by the user. I will not
> have this statement mapped in my xml file. How can I do that?
> I would like to know to, how can I get the meta-data of a result (like the
> getMetadata() in resultset object (JDBC))?
> Thank's
> Caio.
> --
> Claudiomir G. Zanchetti (Caio)
> Sun Certified Programmer for the Java 2 Plataform, Standard Edition 5.0
> "Use com sabedoria a mente e energia para beneficiar ambos, vocĂȘ mesmo e
> os outros." -Dr. Jigoro Kano

View raw message