Return-Path: Delivered-To: apmail-ibatis-dev-archive@www.apache.org Received: (qmail 69300 invoked from network); 28 Sep 2009 08:01:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Sep 2009 08:01:35 -0000 Received: (qmail 92490 invoked by uid 500); 28 Sep 2009 08:01:34 -0000 Delivered-To: apmail-ibatis-dev-archive@ibatis.apache.org Received: (qmail 92441 invoked by uid 500); 28 Sep 2009 08:01:34 -0000 Mailing-List: contact dev-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ibatis.apache.org Delivered-To: mailing list dev@ibatis.apache.org Received: (qmail 92433 invoked by uid 99); 28 Sep 2009 08:01:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Sep 2009 08:01:34 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of joseph.piron@gmail.com designates 209.85.220.221 as permitted sender) Received: from [209.85.220.221] (HELO mail-fx0-f221.google.com) (209.85.220.221) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Sep 2009 08:01:24 +0000 Received: by fxm21 with SMTP id 21so3322993fxm.33 for ; Mon, 28 Sep 2009 01:01:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=8dvK+VNViwiy0jzZvi08t4naseI2AhznOn//EC+czSA=; b=nAYjOT22O4Nf/hhafzHEtB0TrEEisaK3ruUCQJW2AdfOBPvYt70YaEUsNQ51+mxsSK teODhiaWFFMp13CvEi5+8t9Tm8nvhYn+jduLyVDAPZ/n5c40YNjKchOinH42gKhM2ROx ogN+CoamqrA6xW8Fi753OOXhgglG7hIgG2+js= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=pTImcKwTuoRKBzQ62lm0aaQd/DZoa/6WjMn6wQ9qTmaOebleqzwd01cUzqB+LQI3Ak O2uX9KYy40xMPxm0Pi1OMT0FrM9DYoyphSGNH++yEIBwd6b2zhct1DYB8uZJAhu0E6OY vk6GSbrt4R3RIpWOPYqgw73mnqCpqnv8pKqTI= MIME-Version: 1.0 Received: by 10.204.34.200 with SMTP id m8mr2821150bkd.73.1254124863691; Mon, 28 Sep 2009 01:01:03 -0700 (PDT) In-Reply-To: References: <3DC2E94B1E860A49ABAAE1A8B3077AA5079B9B40@exch01.mgm-edv.de> Date: Mon, 28 Sep 2009 10:01:03 +0200 Message-ID: Subject: Re: Programmatically add a statement From: Joseph Piron To: dev@ibatis.apache.org Content-Type: multipart/alternative; boundary=000325559cf6011cb804749eb372 X-Virus-Checked: Checked by ClamAV on apache.org --000325559cf6011cb804749eb372 Content-Type: text/plain; charset=ISO-8859-1 No one knows how to do this ? I really need help as I'm rather stuck here... :) Br all, Joseph PIRON. 2009/9/25 Yuri de Wit > I am also interested in this. I would like to have a templatized CRUD > sqlmap that can generate a final sqlmap for a specific POJO based on the > POJO fields. Is creating statement dynamically something that can be done or > has been done in the past? thanks. > > > On Fri, Sep 25, 2009 at 4:34 AM, Joseph Piron wrote: > >> Hello Kambiz, >> >> thanks for your answer. >> Unfortunately, I'm not able to go further. >> Indeed, the CachingStatement has a constructor which gets a >> MappedStatement as argument and I don't find the BaseStatement in the >> IBatisNet.DataMapper.MappedStatements namespace. >> Are you sure this is not only available in Java ? >> Would you have any example for me as a guideline ? >> >> Thanks. >> >> 2009/9/25 Kambiz Tavakoli >> >> Hello Joseph, >>> >>> MappedStatement is an interface. >>> You can try BaseStatement or >>> CachingStatement >>> . >>> You can also use your own Class implementing the >>> MappedStatement interface. >>> >>> kambiz >>> >>> >>> >>> >>> >>> ------------------------------ >>> *Von:* Joseph Piron [mailto:joseph.piron@gmail.com] >>> *Gesendet:* Donnerstag, 24. September 2009 22:03 >>> *An:* dev@ibatis.apache.org >>> *Betreff:* Programmatically add a statement >>> >>> Dears, >>> >>> I'm looking for some information on ibatisnet api. >>> Indeed, I'm trying to add a statement in runtime and I haven't found >>> enough information on how to do this... :) >>> I've tried the AddMappedStatement method, but the MappedStatement class >>> doesn't seem to have a constructor.. >>> >>> Could someone help me ? >>> >>> Thanks all! >>> >> >> > --000325559cf6011cb804749eb372 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable No one knows how to do this ?
I really need help as I'm rather stuc= k here... :)

Br all,
Joseph PIRON.

2009/9/25 Yuri de Wit <ydewit@gmail.com>
I am also interes= ted in this. I would like to have a templatized CRUD sqlmap that can genera= te a final sqlmap for a specific POJO based on the POJO fields. Is creating= statement dynamically something that can be done or has been done in the p= ast?
thanks.


On Fri, Sep 25, 2009 at 4:34 AM, Joseph Piron <joseph.piron@gmail.co= m> wrote:
Hello Kambiz,

thanks for your answer.
Unfortunately, I'm no= t able to go further.
Indeed, the CachingStatement has a constructor wh= ich gets a MappedStatement as argument and I don't find the BaseStateme= nt in the IBatisNet.DataMapper.MappedStatements namespace.
Are you sure this is not only available in Java ?
Would you have any exa= mple for me as a guideline ?

Thanks.

2009/9/25 Kambiz Tavakoli <Kambiz.Tavakoli@mgm-tp.com><= /span>

Hello Joseph,
=A0
MappedStatement is an=20 interface.
You can try BaseStatement=A0or=20 CachingStatement.<= /div>
You can also use your own=20 Class implementing the MappedStatement=A0interface.
=A0
kambiz


=A0

=A0


Von: Joseph Piron=20 [mailto:joseph.= piron@gmail.com]
Gesendet: Donnerstag, 24. September=20 2009 22:03
An: dev@ibatis.apache.org
Betreff:=20 Programmatically add a statement

Dears,

I'm looking for some information on ibatisnet= =20 api.
Indeed, I'm trying to add a statement in runtime and I haven= 9;t found=20 enough information on how to do this... :)
I've tried the AddMappedS= tatement=20 method, but the MappedStatement class doesn't seem to have a=20 constructor..

Could someone help me ?

Thanks all!



--000325559cf6011cb804749eb372--