Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 14895 invoked from network); 3 Sep 2009 14:38:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Sep 2009 14:38:03 -0000 Received: (qmail 90232 invoked by uid 500); 3 Sep 2009 14:38:02 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 90219 invoked by uid 500); 3 Sep 2009 14:38:02 -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 90211 invoked by uid 99); 3 Sep 2009 14:38:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Sep 2009 14:38:02 +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 (athena.apache.org: domain of clinton.begin@gmail.com designates 209.85.212.191 as permitted sender) Received: from [209.85.212.191] (HELO mail-vw0-f191.google.com) (209.85.212.191) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Sep 2009 14:37:53 +0000 Received: by vws29 with SMTP id 29so1481090vws.4 for ; Thu, 03 Sep 2009 07:37:32 -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=FFkbSGMjEaFnSSxLyJ5riDWS/k0EgAzFk5Med26Is5s=; b=vCJlMgVCzRoHr0wnEsMU25Jae5f+C+DwBl1UGStwONb0rR7tgHgY6GHf1E32rx1nZX 9HEdo/WdIgaTzd5dETznJITCHJQdaQ5KJtQgzSFkGLRy1MxiijSfwN4NX7frYJhHmtcC +LcgzmnDxmnG/NOdurJSNjJsK4oHKOFURGSvc= 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=q+mSoZqtvPFj8dBs3crlHyoJbNKpvWgIUVAtbrzprYgg9W2Pu0L79UOJ9D+QWwrifE yESzrFKLRA/GVAtgO++hbLgP3VoNzQ6L5K676+h4uoLqo/xnjxskbHKi3W5doYYou5RA tv3FlWX7a9k8BsLu0G5CPMSOXw+yME1Xma1b0= MIME-Version: 1.0 Received: by 10.220.19.199 with SMTP id c7mr13388094vcb.84.1251988652036; Thu, 03 Sep 2009 07:37:32 -0700 (PDT) In-Reply-To: <16178eb10909030734k787d828fn65a48f84a703c00a@mail.gmail.com> References: <25277076.post@talk.nabble.com> <16178eb10909030734k787d828fn65a48f84a703c00a@mail.gmail.com> Date: Thu, 3 Sep 2009 08:37:32 -0600 Message-ID: <16178eb10909030737i7e36ef60q51a3422a057b1fd9@mail.gmail.com> Subject: Re: SqlMapClientBuilder or SqlSessionFactoryBuilder From: Clinton Begin To: user-java@ibatis.apache.org Content-Type: multipart/alternative; boundary=00163646da3ade21e40472ad52a5 X-Virus-Checked: Checked by ClamAV on apache.org --00163646da3ade21e40472ad52a5 Content-Type: text/plain; charset=ISO-8859-1 Sorry, pushed send too fast... to the second part of your question: >> What's the difference between SqlMapClient or SqlSessionFactory? The primary difference is that SqlSessionFactory does not contain the "ThreadLocal" convenience methods that SqlMapClient did. If you look at SqlMapClient, there's an .openSession() method. That approach is the one I focused on when building iBATIS 3, as I wasn't sure that the ThreadLocal based methods were a good development pattern or not... So far, I think we'd all agree in theory that using the session objects is cleaner and better.... But a lot of people miss the simplicity of the ThreadLocal methods. I'm undecided as to what to do about that, if anything at all. Clinton On Thu, Sep 3, 2009 at 8:34 AM, Clinton Begin wrote: > There are no Javadocs for iB3 yet. There's a full user guide though... > > > > > On Thu, Sep 3, 2009 at 8:18 AM, liny wrote: > >> >> Hi, >> >> I'd like to ask why I can't find SqlSessionFactoryBuilder in oneline java >> doc of iBatis web site? >> I downloaded iBatis3 user guide, and this guide told me to use >> SqlSessionFactory. >> What's the difference between SqlMapClient or SqlSessionFactory? >> -- >> View this message in context: >> http://www.nabble.com/SqlMapClientBuilder-or-SqlSessionFactoryBuilder-tp25277076p25277076.html >> Sent from the iBATIS - User - Java mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org >> For additional commands, e-mail: user-java-help@ibatis.apache.org >> >> > --00163646da3ade21e40472ad52a5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Sorry, pushed send too fast... to the second part of your question:

=
>> What's the difference between SqlMapClient or SqlSessionFa= ctory?

The primary difference is that SqlSessionFactory does not con= tain the "ThreadLocal" convenience methods that SqlMapClient did.= =A0

If you look at SqlMapClient, there's an .openSession() method.=A0 T= hat approach is the one I focused on when building iBATIS 3, as I wasn'= t sure that the ThreadLocal based methods were a good development pattern o= r not...

So far, I think we'd all agree in theory that using the session obj= ects is cleaner and better....

But a lot of people miss the simplici= ty of the ThreadLocal methods.=A0

I'm undecided as to what to d= o about that, if anything at all.

Clinton


On Thu, Sep 3, 2009 at 8:= 34 AM, Clinton Begin <clinton.begin@gmail.com> wrote:
There are no Javadocs for iB3 yet.=A0 There's a full user guide though.= ..




On Thu, Sep 3, 2009 at 8:18 AM, liny <innocentliny@gmail.com&= gt; wrote:

Hi,

I'd like to ask why I can't find SqlSessionFactoryBuilder in onelin= e java
doc of iBatis web site?
I downloaded iBatis3 user guide, and this guide told me to use
SqlSessionFactory.
What's the difference between SqlMapClient or SqlSessionFactory?
--
View this message in context: http://www.nabble.com/SqlMapClientBuilder-or-SqlSessionFactoryBuilder-= tp25277076p25277076.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org



--00163646da3ade21e40472ad52a5--