Go ahead and remove them. I'll remember they're in there and resurrect to
example/ as and when I get off my lazy arse :)
Hen
On Tue, 21 Oct 2003, David Graham wrote:
>
> --- Henri Yandell <[EMAIL PROTECTED]> wrote:
> >
> > I object to deleting them, but agree they don't offer much.
> >
> > They really exist as an example of the 'driver' package, and should move
> > into some kind of example documentation. They would make a better
> > example
> > if the setLong/getLong methods do the null checking.
>
> Validator has a /src/example directory with classes under
> org.apache.commons.validator.example. If you really want to keep them, we
> could move them to a similar structure.
>
> David
>
> >
> > Switching to using DynamicProxies for driver would make more sense as it
> > would allow the JDBC 1/2/3 issue to become a non-issue. I plan to start
> > looking into this so all of the driver package may become a pre-jdk-1.3
> > thing and be ignored (?). Bit confused as to whether CGLib offers
> > anything
> > here.
> >
> > Hen
> >
> > On Mon, 20 Oct 2003, David Graham wrote:
> >
> > >
> > > --- Tomasz Pik <[EMAIL PROTECTED]> wrote:
> > > > David Graham wrote:
> > > >
> > > > > The Enhanced* classes don't really seem to be enhanced versions of
> > > > their
> > > > > standard counterparts. For example, EnhancedResultSet has this
> > > > method:
> > > > >
> > > > > public Long getLongObject(String column) throws SQLException {
> > > > > return new Long(getLong(column));
> > > > > }
> > > >
> > > > What about:
> > > >
> > > > public Long getLongObject(String column) throws SQLException {
> > > > long result = getLong(column);
> > > > if (wasNull()) {
> > > > return null;
> > > > } else {
> > > > return new Long(result);
> > > > }
> > > > }
> > > >
> > > > > How is that enhanced over the standard rs.getObject(col) which
> > > > performs
> > > > > automatic type conversions or new Long(rs.getLong(col)) ?
> > > >
> > > > Maybe this method check agains null too?
> > >
> > > There is a SqlNullCheckedResultSet wrapper class that assigns a
> > default
> > > value for null fields. This conforms to the ResultSet interface so it
> > > doesn't require casting to use it.
> > >
> > > David
> > >
> > > >
> > > > Regards,
> > > > Tomek
> > > >
> > > > > David
> > > >
> > > >
> > > >
> > > >
> > > >
> > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > >
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > The New Yahoo! Shopping - with improved product search
> > > http://shopping.yahoo.com
> > >
> > > ---------------------------------------------------------------------
> > > 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]
> >
>
>
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
>
> ---------------------------------------------------------------------
> 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]