Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #7477

Unmodifiable ResultSet wrapper?

From Ian Pilcher <arequipeno@gmail.com>
Newsgroups comp.lang.java.programmer
Subject Unmodifiable ResultSet wrapper?
Message-ID <XYR6q.1475$Ld7.24@newsfe21.iad> (permalink)
Organization TeraNews.com
Date 2011-08-29 14:42 -0500

Show all headers | View raw


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."
========================================================================

Back to comp.lang.java.programmer | Previous | NextNext in thread | Find similar


Thread

Unmodifiable ResultSet wrapper? Ian Pilcher <arequipeno@gmail.com> - 2011-08-29 14:42 -0500
  Re: Unmodifiable ResultSet wrapper? Lew <lewbloch@gmail.com> - 2011-08-29 14:08 -0700
    Re: Unmodifiable ResultSet wrapper? Ian Pilcher <arequipeno@gmail.com> - 2011-09-02 09:30 -0500
      Re: Unmodifiable ResultSet wrapper? Lew <lewbloch@gmail.com> - 2011-09-03 00:59 -0700

csiph-web