You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by "Rafiq, Adnan" <ar...@carreker.com> on 2007/04/11 01:38:35 UTC

Dynamically Generated Prepared Statements

We have a requirement where the entire sql statement has to be
dynamically generated once, and then used as a prepared statement from
that point onward (with the usual parameter bindings),
 
For example, the following statement has to be generated at runtime (by
inspecting metadata, xml files etc.):
 
INSERT INTO TABLE_A (COLUMN1, COLUMNS2, COLUMN3)
VALUES (?,?,?)
 
Does iBatis provide an API where it can be configured dynamically
without relying on an xml file.