This is not a bad idea, but I would need to give it more thought. I tried to reduce code dup when I created AsyncQueryRunner by creating AbstractQueryRunner[1], could we just add more code to that class?
[1] http://commons.apache.org/dbutils/apidocs/org/apache/commons/dbutils/AbstractQueryRunner.html Bill- On Feb 7, 2012 4:47 PM, "Moandji Ezana" <mwa...@gmail.com> wrote: > I noticed that AsyncQueryRunner duplicates much of the code from > QueryRunner. Would it be possible for AsyncQueryRunner to simply decorate a > QueryRunner with async functionality? For example, pass in a QueryRunner > instance in the constructor and delegate the methods to it. > > This would reduce the amount of code duplication and ease future API > extensions. Are there issues I'm overlooking? > > Moandji >