db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/ant RepositoryVerifierHandler.java DBUtility.java
Date Thu, 29 Jan 2004 16:12:32 GMT
tomdz       2004/01/29 08:12:32

  Modified:    src/java/org/apache/ojb/broker/ant
                        RepositoryVerifierHandler.java DBUtility.java
  Log:
  Slight clean-up as the jdbc driver is not needed anymore in the DBUtility class.
  
  Revision  Changes    Path
  1.14      +2 -2      db-ojb/src/java/org/apache/ojb/broker/ant/RepositoryVerifierHandler.java
  
  Index: RepositoryVerifierHandler.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/ant/RepositoryVerifierHandler.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- RepositoryVerifierHandler.java	29 Jan 2004 16:09:32 -0000	1.13
  +++ RepositoryVerifierHandler.java	29 Jan 2004 16:12:32 -0000	1.14
  @@ -642,7 +642,7 @@
   		    // not every jdbc driver registers itself with the driver manager
   		    // so we do it explicitly
   		    DriverManager.registerDriver((Driver)jdbcDriver.newInstance());
  -		    retval = new DBUtility(url, userName, password, jdbcDriver);
  +		    retval = new DBUtility(url, userName, password);
   		}
   		catch(ClassNotFoundException cnfe)
   		{
  
  
  
  1.7       +1 -4      db-ojb/src/java/org/apache/ojb/broker/ant/DBUtility.java
  
  Index: DBUtility.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/ant/DBUtility.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- DBUtility.java	28 Jan 2004 23:27:32 -0000	1.6
  +++ DBUtility.java	29 Jan 2004 16:12:32 -0000	1.7
  @@ -73,7 +73,6 @@
   	private String m_url = null;
   	private String m_user = null;
   	private String m_pwd = null;
  -    private Class m_driver = null;
   	private static String m_ORA_EXCEPTION_1000 = "ORA-01000";
   	private static String m_ORA_EXCEPTION_604 = "ORA-00604";
   
  @@ -83,18 +82,16 @@
   	 * @param url			String representing the jdbc connection url.  For example, "jdbc:hsqldb:target/test/OJB".
   	 * @param user			The database user account to use for logging on.
   	 * @param pwd			The password for the user
  -	 * @param jdbcDriver    The jdbc driver class
   	 * 
   	 * @throws SQLException			Throws SQLException if there are problems connecting to the
database.
   	 * @throws ClassNotFoundException	Throws ClassNotFoundException if the jdbc driver class
can not be found.
   	 */
  -	public DBUtility(String url, String user, String pwd, Class jdbcDriver) 
  +	public DBUtility(String url, String user, String pwd) 
   	throws SQLException,ClassNotFoundException
   	{
   		m_url = url;
   		m_user = user;
   		m_pwd = pwd;
  -        m_driver = jdbcDriver;
   		m_connection = connect(url, user, pwd);		
   	}
   	
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message