From 010fef5ee43367d3a9a67ef87f2a7b4ff4a1ada5 Mon Sep 17 00:00:00 2001 From: hns Date: Thu, 23 Oct 2003 11:43:28 +0000 Subject: [PATCH] Minor cosmetic fixes, changed constructor signature --- src/helma/scripting/rhino/extensions/DatabaseObject.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/helma/scripting/rhino/extensions/DatabaseObject.java b/src/helma/scripting/rhino/extensions/DatabaseObject.java index 14f7b596..13d14e9f 100644 --- a/src/helma/scripting/rhino/extensions/DatabaseObject.java +++ b/src/helma/scripting/rhino/extensions/DatabaseObject.java @@ -20,9 +20,7 @@ package helma.scripting.rhino.extensions; -import helma.framework.core.Application; import helma.objectmodel.db.DbSource; -import java.util.Date; import java.util.Enumeration; import java.util.Vector; import java.sql.*; @@ -36,7 +34,6 @@ public class DatabaseObject { private transient Connection connection = null; // Null if not connected private transient DatabaseMetaData databaseMetaData = null; private transient String driverName = null; - private transient ClassLoader driverLoader = null; private transient Exception lastError = null; private transient boolean driverOK = false; @@ -46,7 +43,7 @@ public class DatabaseObject { * @param dbsource The name of the DB source */ - public DatabaseObject(DbSource dbsource, int flag) { + public DatabaseObject(DbSource dbsource) { try { connection = dbsource.getConnection (); driverName = dbsource.getDriverName (); @@ -130,7 +127,9 @@ public class DatabaseObject { /** * Connect to the database, using the specific url, optional user name and password * - * @param arguments The argument list + * @param url the database URL + * @param userName the database user name + * @param password the database password * @return true if successful, false otherwise */ public boolean connect(String url, String userName, String password) {