tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdan...@apache.org
Subject svn commit: r451017 - in /incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/impl: InsertCommandImpl.java WriteCommandImpl.java
Date Thu, 28 Sep 2006 20:24:14 GMT
Author: bdaniel
Date: Thu Sep 28 13:24:13 2006
New Revision: 451017

URL: http://svn.apache.org/viewvc?view=rev&rev=451017
Log:
Remove "subtypeProcessing" from WriteCommand. This was no longer being used and was generating
a PMD error

Modified:
    incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/impl/InsertCommandImpl.java
    incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/impl/WriteCommandImpl.java

Modified: incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/impl/InsertCommandImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/impl/InsertCommandImpl.java?view=diff&rev=451017&r1=451016&r2=451017
==============================================================================
--- incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/impl/InsertCommandImpl.java
(original)
+++ incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/impl/InsertCommandImpl.java
Thu Sep 28 13:24:13 2006
@@ -41,8 +41,7 @@
 
 		boolean success = false;
 		try {
-			statement.executeUpdate(parameters, keys);
-			subtypeProcessing();
+			statement.executeUpdate(parameters, keys);			
 			success = true;
 		} catch (SQLException e) {
 			throw new RuntimeException(e);

Modified: incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/impl/WriteCommandImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/impl/WriteCommandImpl.java?view=diff&rev=451017&r1=451016&r2=451017
==============================================================================
--- incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/impl/WriteCommandImpl.java
(original)
+++ incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/impl/WriteCommandImpl.java
Thu Sep 28 13:24:13 2006
@@ -36,8 +36,7 @@
 
 		boolean success = false;
 		try {
-			statement.executeUpdate(parameters);
-			subtypeProcessing();
+			statement.executeUpdate(parameters);		
 			success = true;
 		} catch (SQLException e) {
 			throw new RuntimeException(e);
@@ -58,15 +57,6 @@
 		return configWrapper.getConfig();
 	}
 
-	
-	/**
-	 * Subclasses add specific bahavior
-	 * Default is to do nothing
-	 */
-	protected void subtypeProcessing() throws SQLException {
-		if ( false )
-			throw new SQLException();
-	}
 	
 	public String toString() {
 		



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message