Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!nx01.iad01.newshosting.com!newshosting.com!69.16.185.11.MISMATCH!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe21.iad.POSTED!45cd109c!not-for-mail From: Ian Pilcher User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110816 Thunderbird/6.0 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Unmodifiable ResultSet wrapper? Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Lines: 15 Message-ID: X-Complaints-To: abuse@teranews.com NNTP-Posting-Date: Mon, 29 Aug 2011 19:42:47 UTC Organization: TeraNews.com Date: Mon, 29 Aug 2011 14:42:47 -0500 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:7477 Is there any standard way to wrap a ResultSet into an unmodifiable wrapper? I need to pass a ResultSet to a callback as I iterate through it, and the callback has no business altering its state (calling next(), etc.) It's a perfectly straightforward exercise to create such a wrapper, but that's a ton of boilerplate code ... TIA -- ======================================================================== Ian Pilcher arequipeno@gmail.com "If you're going to shift my paradigm ... at least buy me dinner first." ========================================================================