Connection leak checking is now implemented.
[utils] / test / enterprise / src / main / java / org / wamblee / support / persistence / Database.java
index 987646eccae0c45262ab703240d8cb99e680a551..70ab8c5bb7b7dddb86889c6b5fd08256863f4677 100755 (executable)
@@ -29,6 +29,13 @@ public interface Database {
      * database has been started.
      */
     DataSource start();
+    
+    /**
+     * Gets the number of active connections from the pool. This is useful for 
+     * determining resource leaks. 
+     * @return Active connections. 
+     */
+    int getActiveConnections(); 
 
     /**
      * Gets the Jdbc Url to connect to this database.