commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 26260] New: - RowSetDynaClass hardcodes BasicDynaBean
Date Mon, 19 Jan 2004 22:54:12 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26260>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26260

RowSetDynaClass hardcodes BasicDynaBean

           Summary: RowSetDynaClass hardcodes BasicDynaBean
           Product: Commons
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Bean Utilities
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: yennersnow@yahoo.com


A suggestion to allow users to flexibly subclass RowSetDynaClass...

The current RowSetDynaClass implementation has a method "copy(ResultSet
resultSet)" which has a hardcoded "new BasicDynaBean(this)".  Instead, perhaps
it should use "this.newInstance()".  

RowSetDynaClass.newInstance() should then of course be implemented as "return
new BasicDynaBean(this)" instead of throwing an exception.  

A subclass of RowSetDynaClass can then specify its own DynaBean subclasses,
rather than be forced to use the hardcoded BasicDynaBean.

thanks,
yennersnow@yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message