On Tue, 10 Apr 2001, Jon Stevens wrote:
> on 4/10/01 6:46 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > +
> > /**
> > + * Close any database connection that is currently open.
> > + */
> > + protected void close() {
> > +
> > + // Do nothing if the database connection is already closed
> > + if (dbConnection == null)
> > + return;
> > +
> > + // Close our prepared statements (if any)
> > + try {
> > + preparedCredentials.close();
> > + } catch (Throwable f) {
> > + ;
> > + }
> > + try {
> > + preparedRoles.close();
> > + } catch (Throwable f) {
> > + ;
> > + }
> > +
> > + // Close this database connection, and log any errors
> > + try {
> > + dbConnection.close();
> > + } catch (SQLException e) {
> > + log(sm.getString("jdbcRealm.close"), e); // Just log it here
> > + }
> > +
> > + // Release resources associated with the closed connection
> > + dbConnection = null;
> > + preparedCredentials = null;
> > + preparedRoles = null;
> > +
> > + }
>
> Craig, does this mean you (finally) aren't using tabs anymore? :-)
>
I haven't been using tabs for quite a long while :-), although when
temporarily borrowing someone else's computer to do edits they might sneak
in.
You'll note that all the modified code above is nicely lined up, courtesy
of emacs being set to change tabs to spaces.
> -jon
>
>