List:Commits« Previous MessageNext Message »
From:mmatthews Date:April 3 2006 3:16pm
Subject:Connector/J commit: r5121 - in branches: branch_3_1/connector-j branch_3_1/connector-j/src/com/mysql/jdbc branch_5_0/connector-j branch_5_0/connector-...
View as plain text  
Modified:
   branches/branch_3_1/connector-j/CHANGES
   branches/branch_3_1/connector-j/src/com/mysql/jdbc/ConnectionProperties.java
   branches/branch_5_0/connector-j/CHANGES
   branches/branch_5_0/connector-j/src/com/mysql/jdbc/ConnectionProperties.java
   branches/branch_5_1/connector-j/CHANGES
   branches/branch_5_1/connector-j/src/com/mysql/jdbc/ConnectionProperties.java
Log:
Added additional accessor and mutator methods on ConnectionProperties
	  so that DataSource users can use same naming as regular URL properties.

Modified: branches/branch_3_1/connector-j/CHANGES
===================================================================
--- branches/branch_3_1/connector-j/CHANGES	2006-04-03 15:11:21 UTC (rev 5120)
+++ branches/branch_3_1/connector-j/CHANGES	2006-04-03 15:16:16 UTC (rev 5121)
@@ -75,6 +75,9 @@
 	  causes NPE.
 	  
 	- Map "latin1" on MySQL server to CP1252 for MySQL > 4.1.0.
+	
+	- Added additional accessor and mutator methods on ConnectionProperties
+	  so that DataSource users can use same naming as regular URL properties.
     
 11-30-05 - Version 3.1.12
 

Modified: branches/branch_3_1/connector-j/src/com/mysql/jdbc/ConnectionProperties.java
===================================================================
--- branches/branch_3_1/connector-j/src/com/mysql/jdbc/ConnectionProperties.java	2006-04-03 15:11:21 UTC (rev 5120)
+++ branches/branch_3_1/connector-j/src/com/mysql/jdbc/ConnectionProperties.java	2006-04-03 15:16:16 UTC (rev 5121)
@@ -3487,43 +3487,96 @@
 		this.useGmtMillisForDatetimes.setValue(flag);
 	}
 
-	protected boolean getOverrideSupportsIntegrityEnhancementFacility() {
+	public boolean getOverrideSupportsIntegrityEnhancementFacility() {
 		return this.overrideSupportsIntegrityEnhancementFacility.getValueAsBoolean();
 	}
 
-	protected void setOverrideSupportsIntegrityEnhancementFacility(boolean flag) {
+	public void setOverrideSupportsIntegrityEnhancementFacility(boolean flag) {
 		this.overrideSupportsIntegrityEnhancementFacility.setValue(flag);	
 	}
 
-	protected boolean getAutoClosePStmtStreams() {
+	public boolean getAutoClosePStmtStreams() {
 		return this.autoClosePStmtStreams.getValueAsBoolean();
 	}
 
-	protected void setAutoClosePStmtStreams(boolean flag) {
+	public void setAutoClosePStmtStreams(boolean flag) {
 		this.autoClosePStmtStreams.setValue(flag);
 	}
 
-	protected boolean getProcessEscapeCodesForPrepStmts() {
+	public boolean getProcessEscapeCodesForPrepStmts() {
 		return this.processEscapeCodesForPrepStmts.getValueAsBoolean();
 	}
 
-	protected void setProcessEscapeCodesForPrepStmts(boolean flag) {
+	public void setProcessEscapeCodesForPrepStmts(boolean flag) {
 		this.processEscapeCodesForPrepStmts.setValue(flag);
 	}
 
-	protected boolean getDumpMetadataOnColumnNotFound() {
+	public boolean getDumpMetadataOnColumnNotFound() {
 		return this.dumpMetadataOnColumnNotFound.getValueAsBoolean();
 	}
 
-	protected void setDumpMetadataOnColumnNotFound(boolean flag) {
+	public void setDumpMetadataOnColumnNotFound(boolean flag) {
 		this.dumpMetadataOnColumnNotFound.setValue(flag);
 	}
 
-	protected boolean getRewriteBatchedStatements() {
+	public boolean getRewriteBatchedStatements() {
 		return this.rewriteBatchedStatements.getValueAsBoolean();
 	}
 
-	protected void setRewriteBatchedStatements(boolean flag) {
+	public void setRewriteBatchedStatements(boolean flag) {
 		this.rewriteBatchedStatements.setValue(flag);
 	}
+	
+	/*
+	 * "Aliases" which match the property names to make using 
+	 * from datasources easier.
+	 */
+	
+	public void setUseServerPrepStmts(boolean flag) {
+		setUseServerPreparedStmts(flag);
+	}
+
+	public boolean getUseServerPrepStmts() {
+		return getUseServerPreparedStmts();
+	}
+
+	public void setCacheCallableStmts(boolean flag) {
+		setCacheCallableStatements(flag);
+	}
+
+	public boolean getCacheCallableStmts() {
+		return getCacheCallableStatements();
+	}
+
+	public void setCachePrepStmts(boolean flag) {
+		setCachePreparedStatements(flag);
+	}
+
+	public boolean getCachePrepStmts() {
+		return getCachePreparedStatements();
+	}
+
+	public void setCallableStmtCacheSize(int cacheSize) {
+		setCallableStatementCacheSize(cacheSize);
+	}
+
+	public int getCallableStmtCacheSize() {
+		return getCallableStatementCacheSize();
+	}
+
+	public void setPrepStmtCacheSize(int cacheSize) {
+		setPreparedStatementCacheSize(cacheSize);
+	}
+
+	public int getPrepStmtCacheSize() {
+		return getPreparedStatementCacheSize();
+	}
+
+	public void setPrepStmtCacheSqlLimit(int sqlLimit) {
+		setPreparedStatementCacheSqlLimit(sqlLimit);
+	}
+
+	public int getPrepStmtCacheSqlLimit() {
+		return getPreparedStatementCacheSqlLimit();
+	}
 }

Modified: branches/branch_5_0/connector-j/CHANGES
===================================================================
--- branches/branch_5_0/connector-j/CHANGES	2006-04-03 15:11:21 UTC (rev 5120)
+++ branches/branch_5_0/connector-j/CHANGES	2006-04-03 15:16:16 UTC (rev 5121)
@@ -179,6 +179,9 @@
     	  
 	- Map "latin1" on MySQL server to CP1252 for MySQL > 4.1.0.
 	
+	- Added additional accessor and mutator methods on ConnectionProperties
+	  so that DataSource users can use same naming as regular URL properties.
+	
 11-30-05 - Version 3.1.12
 
     - Fixed client-side prepared statement bug with embedded ? inside

Modified: branches/branch_5_0/connector-j/src/com/mysql/jdbc/ConnectionProperties.java
===================================================================
--- branches/branch_5_0/connector-j/src/com/mysql/jdbc/ConnectionProperties.java	2006-04-03 15:11:21 UTC (rev 5120)
+++ branches/branch_5_0/connector-j/src/com/mysql/jdbc/ConnectionProperties.java	2006-04-03 15:16:16 UTC (rev 5121)
@@ -3609,4 +3609,57 @@
 	protected void setRewriteBatchedStatements(boolean flag) {
 		this.rewriteBatchedStatements.setValue(flag);
 	}
+	
+	/*
+	 * "Aliases" which match the property names to make using 
+	 * from datasources easier.
+	 */
+	
+	public void setUseServerPrepStmts(boolean flag) {
+		setUseServerPreparedStmts(flag);
+	}
+
+	public boolean getUseServerPrepStmts() {
+		return getUseServerPreparedStmts();
+	}
+
+	public void setCacheCallableStmts(boolean flag) {
+		setCacheCallableStatements(flag);
+	}
+
+	public boolean getCacheCallableStmts() {
+		return getCacheCallableStatements();
+	}
+
+	public void setCachePrepStmts(boolean flag) {
+		setCachePreparedStatements(flag);
+	}
+
+	public boolean getCachePrepStmts() {
+		return getCachePreparedStatements();
+	}
+
+	public void setCallableStmtCacheSize(int cacheSize) {
+		setCallableStatementCacheSize(cacheSize);
+	}
+
+	public int getCallableStmtCacheSize() {
+		return getCallableStatementCacheSize();
+	}
+
+	public void setPrepStmtCacheSize(int cacheSize) {
+		setPreparedStatementCacheSize(cacheSize);
+	}
+
+	public int getPrepStmtCacheSize() {
+		return getPreparedStatementCacheSize();
+	}
+
+	public void setPrepStmtCacheSqlLimit(int sqlLimit) {
+		setPreparedStatementCacheSqlLimit(sqlLimit);
+	}
+
+	public int getPrepStmtCacheSqlLimit() {
+		return getPreparedStatementCacheSqlLimit();
+	}
 }

Modified: branches/branch_5_1/connector-j/CHANGES
===================================================================
--- branches/branch_5_1/connector-j/CHANGES	2006-04-03 15:11:21 UTC (rev 5120)
+++ branches/branch_5_1/connector-j/CHANGES	2006-04-03 15:16:16 UTC (rev 5121)
@@ -181,6 +181,9 @@
 	  
 	- Map "latin1" on MySQL server to CP1252 for MySQL > 4.1.0.
     
+    - Added additional accessor and mutator methods on ConnectionProperties
+	  so that DataSource users can use same naming as regular URL properties.
+	  
 11-30-05 - Version 3.1.12
 
     - Fixed client-side prepared statement bug with embedded ? inside

Modified: branches/branch_5_1/connector-j/src/com/mysql/jdbc/ConnectionProperties.java
===================================================================
--- branches/branch_5_1/connector-j/src/com/mysql/jdbc/ConnectionProperties.java	2006-04-03 15:11:21 UTC (rev 5120)
+++ branches/branch_5_1/connector-j/src/com/mysql/jdbc/ConnectionProperties.java	2006-04-03 15:16:16 UTC (rev 5121)
@@ -3610,4 +3610,57 @@
 	protected void setRewriteBatchedStatements(boolean flag) {
 		this.rewriteBatchedStatements.setValue(flag);
 	}
+	
+	/*
+	 * "Aliases" which match the property names to make using 
+	 * from datasources easier.
+	 */
+	
+	public void setUseServerPrepStmts(boolean flag) {
+		setUseServerPreparedStmts(flag);
+	}
+
+	public boolean getUseServerPrepStmts() {
+		return getUseServerPreparedStmts();
+	}
+
+	public void setCacheCallableStmts(boolean flag) {
+		setCacheCallableStatements(flag);
+	}
+
+	public boolean getCacheCallableStmts() {
+		return getCacheCallableStatements();
+	}
+
+	public void setCachePrepStmts(boolean flag) {
+		setCachePreparedStatements(flag);
+	}
+
+	public boolean getCachePrepStmts() {
+		return getCachePreparedStatements();
+	}
+
+	public void setCallableStmtCacheSize(int cacheSize) {
+		setCallableStatementCacheSize(cacheSize);
+	}
+
+	public int getCallableStmtCacheSize() {
+		return getCallableStatementCacheSize();
+	}
+
+	public void setPrepStmtCacheSize(int cacheSize) {
+		setPreparedStatementCacheSize(cacheSize);
+	}
+
+	public int getPrepStmtCacheSize() {
+		return getPreparedStatementCacheSize();
+	}
+
+	public void setPrepStmtCacheSqlLimit(int sqlLimit) {
+		setPreparedStatementCacheSqlLimit(sqlLimit);
+	}
+
+	public int getPrepStmtCacheSqlLimit() {
+		return getPreparedStatementCacheSqlLimit();
+	}
 }

Thread
Connector/J commit: r5121 - in branches: branch_3_1/connector-j branch_3_1/connector-j/src/com/mysql/jdbc branch_5_0/connector-j branch_5_0/connector-...mmatthews3 Apr