You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Reuben Firmin <Re...@Copart.Com> on 2006/08/16 17:32:34 UTC
modal typehandler?
Is there a way I can construct a type handler in different modes?
My specific need is this:
The iSeries folks like to give me back dates as integers, e.g. 20061004. They also give me back times as integers, e.g. 1203. Writing a type handler that copes with this is no big deal, but it would be useful if I could generalize the typehandler, and tell it to expect things of a particular format; e.g. new IntDateTypeHandler("HHmm"), or new IntDateTypeHandler("yyyyMMdd").
Re: modal typehandler?
Posted by Larry Meadors <lm...@apache.org>.
Couldn't you create an abstract base class with subclasses that do that?
Larry
On 8/16/06, Reuben Firmin <Re...@copart.com> wrote:
>
> Is there a way I can construct a type handler in different modes?
>
> My specific need is this:
>
> The iSeries folks like to give me back dates as integers, e.g. 20061004.
> They also give me back times as integers, e.g. 1203. Writing a type
> handler that copes with this is no big deal, but it would be useful if I
> could generalize the typehandler, and tell it to expect things of a
> particular format; e.g. new IntDateTypeHandler("HHmm"), or new
> IntDateTypeHandler("yyyyMMdd").
>
>
>