Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 72296 invoked from network); 8 Aug 2006 08:25:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Aug 2006 08:25:45 -0000 Received: (qmail 65489 invoked by uid 500); 8 Aug 2006 08:25:44 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 64948 invoked by uid 500); 8 Aug 2006 08:25:43 -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 64937 invoked by uid 99); 8 Aug 2006 08:25:43 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Aug 2006 01:25:43 -0700 X-ASF-Spam-Status: No, hits=2.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [68.142.198.102] (HELO web31307.mail.mud.yahoo.com) (68.142.198.102) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 08 Aug 2006 01:25:42 -0700 Received: (qmail 31439 invoked by uid 60001); 8 Aug 2006 08:25:21 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=RVHlZ9Ob40T9SMw3wm0EG4mPi3grUkaeTl6PNWkuytmbp2gXisacvjTBh2x4hdup8yOf1DRxg5IGhkJpdizh4y6L4pGd6gVT/RifkpkHHx36otwmTldcW1dAsWMBGkVQ8kDRNtOba/yrWv23zcN75DJdVRAEd8NxfiOlLFUUk0A= ; Message-ID: <20060808082521.31437.qmail@web31307.mail.mud.yahoo.com> Received: from [202.178.112.80] by web31307.mail.mud.yahoo.com via HTTP; Tue, 08 Aug 2006 01:25:21 PDT Date: Tue, 8 Aug 2006 01:25:21 -0700 (PDT) From: Socheat KHAUV Subject: Re: What is purpose of TypeHandler To: user-java@ibatis.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-94094233-1155025521=:27933" Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --0-94094233-1155025521=:27933 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit this example is did not show how confige and use it in XML file, it is a bit abstract. Gwyn Evans wrote: Take a look at the "Creating custom Type Handlers" section of the iBATIS-SqlMaps-2.pdf for an example that shows how a java boolean might be mapped to/from "Y" or "N" values in a DB field. /Gwyn On 08/08/06, Socheat KHAUV wrote: > can you give me a small example on it ? > cuz i can not find this simple configuration in the document of iBatis. > > > Clinton Begin wrote: > > Type handlers handle the translation between Java types and database types. > You can customize them, but you don't need to. The advantage is that you > can deal with complex or unique types not supported by default. > > You seem new to iBATIS, so to begin with, you will likely not have to worry > about it. When you need a custom type handler, you'll know. :-) > > Clinton > > On 8/7/06, Socheat KHAUV wrote: > > > > Could you give some clue ? > > > > what is the advantage of TypeHandler and how to use it ? > > > > > > ________________________________ > Groups are talking. We�re listening. Check out the handy changes to Yahoo! > Groups. > > > > > > > ________________________________ > Yahoo! Music Unlimited - Access over 1 million songs. Try it free. > > -- Download Wicket 1.2.1 now! - http://wicketframework.org --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. --0-94094233-1155025521=:27933 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit this example is did not show how confige and use it in XML file,
it is a bit abstract.

Gwyn Evans <gwyn.evans@gmail.com> wrote:
Take a look at the "Creating custom Type Handlers" section of the
iBATIS-SqlMaps-2.pdf for an example that shows how a java boolean
might be mapped to/from "Y" or "N" values in a DB field.

/Gwyn

On 08/08/06, Socheat KHAUV wrote:
> can you give me a small example on it ?
> cuz i can not find this simple configuration in the document of iBatis.
>
>
> Clinton Begin wrote:
>
> Type handlers handle the translation between Java types and database types.
> You can customize them, but you don't need to. The advantage is that you
> can deal with complex or unique types not supported by default.
>
> You seem new to iBATIS, so to begin with, you will likely not have to worry
> about it. When you need a custom type handler, you'll know. :-)
>
> Clinton
>
> On 8/7/06, Socheat KHAUV wrote:
> >
> > Could you give some clue ?
> >
> > what is the advantage of TypeHandler and how to use it ?
> >
> >
> > ________________________________
> Groups are talking. We�re listening. Check out the handy changes to Yahoo!
> Groups.
> >
>
>
>
>
> ________________________________
> Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
>
>


--
Download Wicket 1.2.1 now! - http://wicketframework.org


Do you Yahoo!?
Next-gen email? Have it all with the all-new Yahoo! Mail Beta. --0-94094233-1155025521=:27933--