True.

Although surely if you're passing an item through the conversion, it
requires the conversion every time, so the default behaviour *should* never
happen.  So, checking the extra types should only impact cases where you've
not used INTEGER.  So, no penalty (except a few more bytes in class file) to
people using it properly!

Daniel.

> -----Original Message-----
> From: Thomas Dudziak [mailto:[EMAIL PROTECTED]
> Sent: 07 September 2005 15:36
> To: OJB Users List
> Subject: Re: Boolean2IntFieldConversion with TINYINT
>
>
> On 9/7/05, Daniel Perry <[EMAIL PROTECTED]> wrote:
>
> > Hmm... What about modifying Boolean2IntFeild itself so it handles both:
>
> <snip>
>
> Yes, this would be possible but the instanceof's have a possibly
> significant runtime cost, esp. since you would want to also handle
> Short, Long and possibly Character as well.
>
> Tom
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to