ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry Meadors" <lmead...@apache.org>
Subject Re: modal typehandler?
Date Wed, 16 Aug 2006 15:58:16 GMT
Couldn't you create an abstract base class with subclasses that do that?

Larry


On 8/16/06, Reuben Firmin <Reuben.Firmin@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").
>
>
>

Mime
View raw message