From a6a6a3af43c2676be8eb114d4e48c5a8e61c2614 Mon Sep 17 00:00:00 2001 From: Mark Spruiell Date: Wed, 20 Aug 2008 16:35:18 -0700 Subject: minor cleanup of JDBC demo --- java/demo/Database/library/SQLRequestContext.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'java/demo/Database/library/SQLRequestContext.java') diff --git a/java/demo/Database/library/SQLRequestContext.java b/java/demo/Database/library/SQLRequestContext.java index 226f8d50001..34274ecf2a9 100644 --- a/java/demo/Database/library/SQLRequestContext.java +++ b/java/demo/Database/library/SQLRequestContext.java @@ -7,8 +7,9 @@ // // ********************************************************************** +// // A SQL request context encapsulates SQL resources allocated in the -// process a of executing a request, such as the database connection, +// process of executing a request, such as the database connection, // and associated SQL statements. // // The request context is automatically destroyed at the end of a @@ -18,6 +19,7 @@ // When the request context is destroyed, the transaction is rolled // back, if not already committed, and all allocated resources are // released, +// class SQLRequestContext { public static SQLRequestContext @@ -100,7 +102,7 @@ class SQLRequestContext } _pool.release(_conn); - + _statements.clear(); _conn = null; _pool = null; @@ -152,7 +154,8 @@ class SQLRequestContext } // A map of threads to request contexts. - private static java.util.Map _contextMap = new java.util.HashMap(); + private static java.util.Map _contextMap = + new java.util.HashMap(); private Ice.Logger _logger; private ConnectionPool _pool; -- cgit v1.2.3