Because the ResultSet will return its Statement. We want to return the StatementWrapper in this case to keep the underlying wrapped driver completely hidden to the user.
Hen On Thu, 23 Jan 2003, Steven Caswell wrote: > I'm looking at the ResultSetWrapper with the idea of extending it for a > couple of classes. I'm wondering why the getStatement method returns a > statement provided by the constructor, instead of just delegating to the > wrapped result set. > > > Steven Caswell > [EMAIL PROTECTED] > "In our own native land, in defense of the freedom that is our > birthright, and which we ever enjoyed till the late violation of it -- > for the protection of our property, acquired solely by the honest > industry of our fore-fathers and ourselves, against violence actually > offered, we have taken up arms. We shall lay them down when hostilities > shall cease on the part of the aggressors, and all danger of their being > renewed shall be removed, and not before." - Thomas Jefferson > > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
