Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > cvs commit: joist/java/org/joist/database RolePermissionManager.java

Project highlights: Architectural Overview

joist
Discussion topic

Back to topic list

cvs commit: joist/java/org/joist/database RolePermissionManager.java

Author commitlogger at hocus dot collab dot net
Full name commitlogger at hocus dot collab dot net
Date 2000-02-03 21:03:35 PST
Message root 00/02/03 21:03:35

  Modified: java/org/joist/database RolePermissionManager.java
  Log:
  Ensure that jdbc resources get closed by putting in to try {} finally {} blocks.
  
  Revision Changes Path
  1.3 +11 -4 joist/java/org/joist​/database/RolePermis​sionManager.java
  
  Index: RolePermissionManager.java
  ====================​====================​====================​=======
  RCS file: /cvs/joist/java/org/​joist/database/RoleP​ermissionManager.jav​a,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- RolePermissionManager.java 2000/01/30 13:00:35 1.2
  +++ RolePermissionManager.java 2000/02/04 05:03:34 1.3
  @@ -19,7 +19,7 @@
     * Manages assignment of roles to permissions.
     *
     * @author David C. Pellegrini <A HREF="mailto:davidp@​dataweb-systems.com"​>davidp@dataweb-s​ystems.com</A>​
  - * @version $Revision: 1.2 $
  + * @version $Revision: 1.3 $
     *
     * Copyright (c) 1999 dataweb systems, inc.
    * Copyright (c) 1999, 2000 Collab.Net, Inc.
  @@ -127,9 +127,16 @@
       throws SQLException
       {
       Statement stmt = connection.createStatement();
  - stmt.executeUpdate("delete from RolePermission where permissionID=" +
  - permissionID);
  - stmt.close();
  + try
  + {
  + stmt.executeUpdate(
  + "delete from RolePermission where permissionID=" +
  + permissionID);
  + }
  + finally
  + {
  + stmt.close();
  + }
       }

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

cvs commit: joist/java/org/joist/database RolePermissionManager.java commitlogger at hocus dot collab dot net commitlogger at hocus dot collab dot net 2000-02-03 21:03:35 PST
Messages per page: