[Idrs-commit] CVS: Idrs/dev/src/net/sourceforge/idrs/jdbc JDBCInfo.java,1.4,1.5 JDBCInfo.class,1.3,N
Brought to you by:
bigman921
|
From: Marc B. <big...@us...> - 2003-01-08 06:02:09
|
Update of /cvsroot/idrs/Idrs/dev/src/net/sourceforge/idrs/jdbc
In directory sc8-pr-cvs1:/tmp/cvs-serv32140/dev/src/net/sourceforge/idrs/jdbc
Modified Files:
JDBCInfo.java
Removed Files:
JDBCInfo.class JDBCPool.class
Log Message:
Added new validation capabilities, and all idrs object are given access to the idrs script oject without it being passed in as a parameter. Also fixed a security bug and setup for more memory effecient pooling. Finally add a new configuration file to simplify deployments.
Index: JDBCInfo.java
===================================================================
RCS file: /cvsroot/idrs/Idrs/dev/src/net/sourceforge/idrs/jdbc/JDBCInfo.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** JDBCInfo.java 22 Aug 2002 20:06:35 -0000 1.4
--- JDBCInfo.java 8 Jan 2003 06:01:36 -0000 1.5
***************
*** 26,33 ****
public class JDBCInfo {
! protected String poolname, drivername, url, username, password;
public JDBCInfo() {}
/**
* Generates the jdbc information
--- 26,36 ----
public class JDBCInfo {
! protected String poolname, drivername, url, username, password,logPath;
! protected int min, max,daysOpen;
public JDBCInfo() {}
+
+
/**
* Generates the jdbc information
***************
*** 91,94 ****
--- 94,99 ----
*/
public String getUsername() {
+ if (this.username == null) return "";
+
return this.username;
}
***************
*** 106,109 ****
--- 111,115 ----
*/
public String getPassword() {
+ if (this.password == null) return "";
return this.password;
}
***************
*** 133,135 ****
--- 139,205 ----
}
+ /**
+ * Returns the daysOpen.
+ * @return int
+ */
+ public int getDaysOpen() {
+ return daysOpen;
+ }
+
+ /**
+ * Returns the logPath.
+ * @return String
+ */
+ public String getLogPath() {
+ return logPath;
+ }
+
+ /**
+ * Returns the max.
+ * @return int
+ */
+ public int getMax() {
+ return max;
+ }
+
+ /**
+ * Returns the min.
+ * @return int
+ */
+ public int getMin() {
+ return min;
+ }
+
+ /**
+ * Sets the daysOpen.
+ * @param daysOpen The daysOpen to set
+ */
+ public void setDaysOpen(int daysOpen) {
+ this.daysOpen = daysOpen;
+ }
+
+ /**
+ * Sets the logPath.
+ * @param logPath The logPath to set
+ */
+ public void setLogPath(String logPath) {
+ this.logPath = logPath;
+ }
+
+ /**
+ * Sets the max.
+ * @param max The max to set
+ */
+ public void setMax(int max) {
+ this.max = max;
+ }
+
+ /**
+ * Sets the min.
+ * @param min The min to set
+ */
+ public void setMin(int min) {
+ this.min = min;
+ }
+
}
--- JDBCInfo.class DELETED ---
--- JDBCPool.class DELETED ---
|