Search the web
Sign In
New User? Sign Up
congo-dev
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
r4453 - /congo/branches/congo-2.0.0.2/src/main/java/com/stonekeep/co   Message List  
Reply | Forward Message #1773 of 1893 |
Author: ojacobson
Date: Tue Jun 30 10:29:48 2009
New Revision: 4453

Log:
A few more interposing statements moved out from between resource aquisition and
try.

Modified:

congo/branches/congo-2.0.0.2/src/main/java/com/stonekeep/congo/dao/PropertyDAO.j\
ava

Modified:
congo/branches/congo-2.0.0.2/src/main/java/com/stonekeep/congo/dao/PropertyDAO.j\
ava
==============================================================================
---
congo/branches/congo-2.0.0.2/src/main/java/com/stonekeep/congo/dao/PropertyDAO.j\
ava [iso-8859-1] (original)
+++
congo/branches/congo-2.0.0.2/src/main/java/com/stonekeep/congo/dao/PropertyDAO.j\
ava [iso-8859-1] Tue Jun 30 10:29:48 2009
@@ -214,9 +214,9 @@
}

public void updatePropertyConfiguration(PropertyConfiguration pc) throws
SQLException {
- Connection c = dataSource.getConnection();
- PreparedStatement p;
- logger.debug("Update: Using " + SQL_UPDATE_PROPERTYCONFIGURATION);
+ PreparedStatement p;
+ logger.debug("Update: Using " + SQL_UPDATE_PROPERTYCONFIGURATION);
+ Connection c = dataSource.getConnection();
try {
p = c.prepareStatement(SQL_UPDATE_PROPERTYCONFIGURATION);
p.setString(1,pc.defaultvalue);
@@ -250,9 +250,9 @@

public PropertyConfiguration getPropertyConfiguration(int cid, String name)
throws SQLException {
logger.debug("Loading PropertyConfiguration '" + name + "' for con " + cid);
- Connection c = dataSource.getConnection();
- PreparedStatement p;
PropertyConfiguration pc = new PropertyConfiguration();
+ PreparedStatement p;
+ Connection c = dataSource.getConnection();
try {
p = c.prepareStatement(SQL_SELECT_PROPERTYCONFIGURATION);
p.setInt(1,cid);




Tue Jun 30, 2009 2:29 pm

svn@...
Send Email Send Email

Forward
Message #1773 of 1893 |
Expand Messages Author Sort by Date

Author: ojacobson Date: Tue Jun 30 10:29:48 2009 New Revision: 4453 Log: A few more interposing statements moved out from between resource aquisition and try. ...
svn@...
Send Email
Jun 30, 2009
2:38 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help