Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 9005 invoked from network); 23 Jun 2006 01:35:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Jun 2006 01:35:31 -0000 Received: (qmail 67749 invoked by uid 500); 23 Jun 2006 01:35:29 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 67732 invoked by uid 500); 23 Jun 2006 01:35:28 -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 67721 invoked by uid 99); 23 Jun 2006 01:35:28 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jun 2006 18:35:28 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [202.58.71.77] (HELO ekalifid1.ekalife.co.id) (202.58.71.77) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 22 Jun 2006 18:35:25 -0700 Received: (qmail 18763 invoked from network); 23 Jun 2006 01:35:01 -0000 X-NetworkBox-HamSign: 0101;OUT;ekalifid1;50c56ee28fc5f101847e1fa5901a38c9; Received: from unknown (HELO ekalife.co.id) (128.21.32.2) by 128.21.32.27 with SMTP; 23 Jun 2006 01:35:01 -0000 Received: from ekamailserver.ekalife2000.com [128.21.32.15] by ekalife.co.id [128.21.32.2] with SMTP (MDaemon.v3.5.8.R) for ; Fri, 23 Jun 2006 08:31:39 +0700 Subject: RE: sql map via Java API MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Fri, 23 Jun 2006 08:33:32 +0700 content-class: urn:content-classes:message Message-ID: X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: sql map via Java API Thread-Index: AcaWVG1VnvCMdkR0Qhizv9EH0EVKqQAED5og From: "Yusuf" To: X-MDRemoteIP: 128.21.32.15 X-Return-Path: Yusuf@ekalife.co.id X-MDaemon-Deliver-To: user-java@ibatis.apache.org X-Scanned-By-ekalifid1: Virus scan performed by network-box X-Scanned-By-ekalifid1: Scanner file id is ekalifid1-1151026501.321-18760-000 X-Scanned-By-ekalifid1: No known viruses found in message (received+scanned in 0.02/0.09 secs) X-Scanned-By-ekalifid1: Spam-Check-Result: No, hits=0 required=7 tests= autolearn=no version=2.0 X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N just my opinion, but what's the point of using iBatis if you wanted to build a statement at runtime?=20 maybe you can just use simple jdbc? yusuf -----Original Message----- From: Edwin Lukaweski [mailto:serjann@rogers.com] Sent: Friday, June 23, 2006 3:28 AM To: user-java@ibatis.apache.org Subject: Re: sql map via Java API Yes - good one!!! However, just to carry this a bit further, ideally, I would like to have=20 iBatis prepare this once and then use the prepared statement. As I understand it, 'remapResults=3Dtrue' will force a lot of work = due to=20 examining the result set meta data. Also, I would imagine that the=20 $generatedSqlStatement$ will also be prepared on each call. I guess I could go straight to the JDBC driver but will that interfere=20 with iBatis' operation? Thanks, Edwin ----- Original Message -----=20 From: "Larry Meadors" To: Sent: Thursday, June 22, 2006 2:52 PM Subject: Re: sql map via Java API > Yeah, it's risky, but life is about risks, right? :-) > > > > Larry > > > On 6/22/06, Edwin Lukaweski wrote: >> >> >> Hi: >> >> Is there any way of submitting a new SQL Map >> snippet via the Java API. Or, alternatively, is there a way of=20 >> contructing >> an object, from iBatis, that accomplishes the same thing? >> What I am trying to do is build a SELECT statement at execution time, >> based on parameters entered, but after ibatis has been initialized. I >> would >> then like to load it into an SQL-MAP for a specific table (namespace ID)=20 >> and >> then use the standard interface calls. >> >> Thanks, >> Edwin >> >=20