[Idrs-commit] CVS: Idrs/dev/src/net/sourceforge/idrs/jdbc JDBCInfo.java,1.3,1.4
Brought to you by:
bigman921
|
From: Marc B. <big...@us...> - 2002-08-22 20:07:08
|
Update of /cvsroot/idrs/Idrs/dev/src/net/sourceforge/idrs/jdbc
In directory usw-pr-cvs1:/tmp/cvs-serv21727/dev/src/net/sourceforge/idrs/jdbc
Modified Files:
JDBCInfo.java
Log Message:
Synced development
Index: JDBCInfo.java
===================================================================
RCS file: /cvsroot/idrs/Idrs/dev/src/net/sourceforge/idrs/jdbc/JDBCInfo.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** JDBCInfo.java 15 Sep 2001 19:25:22 -0000 1.3
--- JDBCInfo.java 22 Aug 2002 20:06:35 -0000 1.4
***************
*** 2,14 ****
JDBCInfo.java
Copyright (C) 2001 Marc Boorshtein
!
! The contents of this file are subject to the Mozilla Public License Version 1.0 (the License);
! you may not use this file except in compliance with the License. You may obtain a copy of the
License at http://www.mozilla.org/MPL/
!
! Software distributed under the License is distributed on an "AS IS" basis,
! WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific
language governing rights and limitations under the License.
! */
package net.sourceforge.idrs.jdbc;
--- 2,14 ----
JDBCInfo.java
Copyright (C) 2001 Marc Boorshtein
!
! The contents of this file are subject to the Mozilla Public License Version 1.0 (the License);
! you may not use this file except in compliance with the License. You may obtain a copy of the
License at http://www.mozilla.org/MPL/
!
! Software distributed under the License is distributed on an "AS IS" basis,
! WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific
language governing rights and limitations under the License.
! */
package net.sourceforge.idrs.jdbc;
***************
*** 19,38 ****
/**
! JDBCthis maintains useful information that describes
! JDBCPool. It contains this such as the pool name,
! the connection parameters, and the number of available
! connections.
*/
public class JDBCInfo {
!
protected String poolname, drivername, url, username, password;
!
public JDBCInfo() {}
!
/**
! Generates the jdbc information
! */
! public JDBCInfo(String poolname, String drivername, String url,
! String username, String password) {
setPoolname(poolname);
setDrivername(drivername);
--- 19,38 ----
/**
! * JDBCthis maintains useful information that describes
! * JDBCPool. It contains this such as the pool name,
! * the connection parameters, and the number of available
! * connections.
*/
public class JDBCInfo {
!
protected String poolname, drivername, url, username, password;
!
public JDBCInfo() {}
!
/**
! * Generates the jdbc information
! */
! public JDBCInfo(String poolname, String drivername, String url,
! String username, String password) {
setPoolname(poolname);
setDrivername(drivername);
***************
*** 41,124 ****
setPassword(password);
}
!
/**
! Retrieves the pool name
! */
! public String getPoolname() {
return this.poolname;
}
!
/**
! Sets the pool name
! @param name Name of pool
! */
! public void setPoolname(String name) {
this.poolname = name;
}
!
! /**
! Retrieves the pool driver
! */
public String getDrivername() {
return this.drivername;
}
!
/**
! Sets the pool driver
! @param drivername The driver
! */
! public void setDrivername (String drivername) {
this.drivername = drivername;
}
!
/**
! Retrieves the pool url
! */
! public String getUrl() {
return this.url;
}
!
/**
! Sets the pool url
! @param url The URL is used
! */
! public void setUrl (String url) {
this.url = url;
}
!
! /**
! Retrieves the user name specified
! */
public String getUsername() {
return this.username;
}
!
! /**
! Sets the user name specified
! @param username User name specified
! */
! public void setUsername (String username) {
this.username = username;
}
!
/**
! Retrieves the password specified
! */
! public String getPassword() {
return this.password;
}
!
/**
! Sets the Password specified
! @param password Password specified
! */
! public void setPassword (String password) {
this.password = password;
}
!
/**
! Generates a new connection based on the JDBC info
! */
! public Connection build() throws Exception {
Driver d = (Driver) (Class.forName(this.getDrivername()).newInstance());
Properties p = new Properties();
--- 41,124 ----
setPassword(password);
}
!
/**
! * Retrieves the pool name
! */
! public String getPoolname() {
return this.poolname;
}
!
/**
! * Sets the pool name
! * @param name Name of pool
! */
! public void setPoolname(String name) {
this.poolname = name;
}
!
! /**
! * Retrieves the pool driver
! */
public String getDrivername() {
return this.drivername;
}
!
/**
! * Sets the pool driver
! * @param drivername The driver
! */
! public void setDrivername(String drivername) {
this.drivername = drivername;
}
!
/**
! * Retrieves the pool url
! */
! public String getUrl() {
return this.url;
}
!
/**
! * Sets the pool url
! * @param url The URL is used
! */
! public void setUrl(String url) {
this.url = url;
}
!
! /**
! * Retrieves the user name specified
! */
public String getUsername() {
return this.username;
}
!
! /**
! * Sets the user name specified
! * @param username User name specified
! */
! public void setUsername(String username) {
this.username = username;
}
!
/**
! * Retrieves the password specified
! */
! public String getPassword() {
return this.password;
}
!
/**
! * Sets the Password specified
! * @param password Password specified
! */
! public void setPassword(String password) {
this.password = password;
}
!
/**
! * Generates a new connection based on the JDBC info
! */
! public Connection build() throws Exception {
Driver d = (Driver) (Class.forName(this.getDrivername()).newInstance());
Properties p = new Properties();
***************
*** 128,135 ****
return con;
}
!
public Object clone() {
return new JDBCInfo(poolname, drivername, url, username, password);
}
!
}
--- 128,135 ----
return con;
}
!
public Object clone() {
return new JDBCInfo(poolname, drivername, url, username, password);
}
!
}
|