Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 85896 invoked from network); 10 Apr 2007 23:38:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Apr 2007 23:38:57 -0000 Received: (qmail 36106 invoked by uid 500); 10 Apr 2007 23:39:00 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 36090 invoked by uid 500); 10 Apr 2007 23:39:00 -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 36079 invoked by uid 99); 10 Apr 2007 23:39:00 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Apr 2007 16:39:00 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [209.163.213.35] (HELO smtp2.carreker.com) (209.163.213.35) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Apr 2007 16:38:53 -0700 Received: from DALVIR02.carreker.com (unknown [172.21.1.15]) by smtp2.carreker.com (Postfix) with SMTP id 8D958158168 for ; Tue, 10 Apr 2007 18:38:32 -0500 (CDT) Received: From DALEXC01.carreker.com ([172.16.15.1]) by DALVIR02.carreker.com (WebShield SMTP v4.5 MR1a); id 117624831289; Tue, 10 Apr 2007 18:38:32 -0500 Received: from DALEXC05.carreker.com ([172.16.1.24]) by DALEXC01.carreker.com with Microsoft SMTPSVC(6.0.3790.211); Tue, 10 Apr 2007 18:38:31 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C77BC9.5913F4FE" Subject: Dynamically Generated Prepared Statements Date: Tue, 10 Apr 2007 18:38:35 -0500 Message-ID: <745691AF0880C64E8F02CFB140A3872D01A48FAD@DALEXC05.carreker.com> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Dynamically Generated Prepared Statements Thread-Index: Acd7rpV+WC14KPa2SLWaMl24iWLN1wAB446QAAS2mZA= From: "Rafiq, Adnan" To: X-OriginalArrivalTime: 10 Apr 2007 23:38:31.0890 (UTC) FILETIME=[59390320:01C77BC9] X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. ------_=_NextPart_001_01C77BC9.5913F4FE Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable 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), =20 For example, the following statement has to be generated at runtime (by inspecting metadata, xml files etc.): =20 INSERT INTO TABLE_A (COLUMN1, COLUMNS2, COLUMN3) VALUES (?,?,?) =20 Does iBatis provide an API where it can be configured dynamically without relying on an xml file. =20 =20 ------_=_NextPart_001_01C77BC9.5913F4FE Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable
We have a = requirement=20 where the entire sql statement has to be dynamically generated once, and = then=20 used as a prepared statement from that point onward (with the usual = parameter=20 bindings),
 
For example, = the=20 following statement has to be generated at runtime (by inspecting = metadata, xml=20 files etc.):
 
INSERT INTO = TABLE_A=20 (COLUMN1, COLUMNS2, COLUMN3)
VALUES=20 (?,?,?)
 
Does iBatis = provide an=20 API where it can be configured dynamically without relying on an xml=20 file.
 
 
------_=_NextPart_001_01C77BC9.5913F4FE--