Author: [log in to unmask]
Date: Wed Sep 23 08:18:58 2015
New Revision: 3678
Log:
Correct bug where connection not opened for getting run list.
Modified:
java/trunk/run-database/src/main/java/org/hps/run/database/RunManager.java
Modified: java/trunk/run-database/src/main/java/org/hps/run/database/RunManager.java
=============================================================================
--- java/trunk/run-database/src/main/java/org/hps/run/database/RunManager.java (original)
+++ java/trunk/run-database/src/main/java/org/hps/run/database/RunManager.java Wed Sep 23 08:18:58 2015
@@ -85,7 +85,7 @@
/**
* Close the database connection.
*/
- private void closeConnection() {
+ public void closeConnection() {
if (!(this.connection == null)) {
try {
if (!this.connection.isClosed()) {
@@ -120,6 +120,7 @@
* @return the complete list of run numbers
*/
List<Integer> getRuns() {
+ openConnection();
return new RunSummaryDaoImpl(this.connection).getRuns();
}
|