Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 21794 invoked from network); 23 Jul 2005 02:42:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Jul 2005 02:42:50 -0000 Received: (qmail 84453 invoked by uid 500); 23 Jul 2005 02:42:48 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 84418 invoked by uid 500); 23 Jul 2005 02:42:47 -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 84404 invoked by uid 99); 23 Jul 2005 02:42:47 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jul 2005 19:42:47 -0700 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=HTML_30_40,HTML_MESSAGE,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of clinton.begin@gmail.com designates 64.233.184.195 as permitted sender) Received: from [64.233.184.195] (HELO wproxy.gmail.com) (64.233.184.195) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jul 2005 19:42:40 -0700 Received: by wproxy.gmail.com with SMTP id i30so507436wra for ; Fri, 22 Jul 2005 19:42:44 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:references; b=um443Um57yqLoC5anHlmS5muHC4Ex80q6wi9sSASIZG6xeTzwuTVy8KYv7C5vMPEveAfkTT+iqsLEWpvB1TWuQQ4acYzXTCpV0gKKLt/k+tbyym+aK+65JrFSnRd+OIY5QiPx+qJNS8EbNLVb+YXd0A2i6YrZvvV/W9Gh3jEF0I= Received: by 10.54.13.38 with SMTP id 38mr1559138wrm; Fri, 22 Jul 2005 19:42:44 -0700 (PDT) Received: by 10.54.93.11 with HTTP; Fri, 22 Jul 2005 19:42:44 -0700 (PDT) Message-ID: <16178eb1050722194261c58ffc@mail.gmail.com> Date: Fri, 22 Jul 2005 20:42:44 -0600 From: Clinton Begin Reply-To: cbegin@ibatis.com To: user-java@ibatis.apache.org, Mississippi John Hurt Subject: Re: M:N example In-Reply-To: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3685_11790231.1122086564511" References: <20050721225417.19509.qmail@smtp.qnet.com.pe> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_3685_11790231.1122086564511 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Ouch. That's quite a unique requirement. The biggest problem will be that= =20 iBATIS exclusively uses PreparedStatements (for performance and security=20 reasons).=20 So the first step would be to check to see if you can run DML within a=20 Prepared statement. After that, we can start to explore whether this can be= =20 done at all. Cheers, Clinton On 7/21/05, Mississippi John Hurt wrote: >=20 > Hi, >=20 > I need to encapsulate some DML (such as ALTER TABLE DISABLE CONSTRAINT) a= s=20 > well as a long anonymous PL/SQL block of code (not compiled in the databa= se)=20 > in Java objects. Can I do this with iBatis? If so how? From what I=20 > understand iBatis can only map SQL and a single stored procedure. How wou= ld=20 > I map say, something like a script with DML (ALTER TABLE) followed by a= =20 > block of anonymous PL/SQL? Thanks. > ------=_Part_3685_11790231.1122086564511 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Ouch.  That's quite a unique requirement.  The biggest problem will be that iBATIS exclusively uses PreparedStatements (for performance and security reasons). 

So the first step would be to check to see if you can run DML within a Prepared statement.  After that, we can start to explore whether this can be done at all.

Cheers,
Clinton

On 7/21/05, Mississippi John Hurt <johnhurt@gmail.com> wrote:
Hi,

I need to encapsulate some DML (such as ALTER TABLE DISABLE CONSTRAINT) as well as a long anonymous PL/SQL block of code (not compiled in the database) in Java objects.  Can I do this with iBatis?  If so how?  From what I understand iBatis can only map SQL and a single stored procedure.  How would I map say, something like a script with DML (ALTER TABLE) followed by a block of anonymous PL/SQL?  Thanks.

------=_Part_3685_11790231.1122086564511--