[teiid-commits] teiid SVN: r2384 - trunk/connectors/translator-loopback/src/main/java/org/teiid/translator/loopback.

teiid-commits at lists.jboss.org teiid-commits at lists.jboss.org
Wed Jul 28 12:39:19 EDT 2010


Author: rareddy
Date: 2010-07-28 12:39:18 -0400 (Wed, 28 Jul 2010)
New Revision: 2384

Modified:
   trunk/connectors/translator-loopback/src/main/java/org/teiid/translator/loopback/LoopbackExecutionFactory.java
Log:
TEIID-1172: The setter method were taking the object form of the input variables, where as getter methods were designed with primitive types. Since the injection logic looks for the setter methods based on the getter return types, it was not finding the correct methods thus the error during the deployment.

Modified: trunk/connectors/translator-loopback/src/main/java/org/teiid/translator/loopback/LoopbackExecutionFactory.java
===================================================================
--- trunk/connectors/translator-loopback/src/main/java/org/teiid/translator/loopback/LoopbackExecutionFactory.java	2010-07-28 15:20:07 UTC (rev 2383)
+++ trunk/connectors/translator-loopback/src/main/java/org/teiid/translator/loopback/LoopbackExecutionFactory.java	2010-07-28 16:39:18 UTC (rev 2384)
@@ -63,8 +63,8 @@
 		return waitTime;
 	}
 	
-	public void setWaitTime(Integer waitTime) {
-		this.waitTime = waitTime.intValue();
+	public void setWaitTime(int waitTime) {
+		this.waitTime = waitTime;
 	}
 	
 	@TranslatorProperty(display="Rows Per Query", advanced=true)
@@ -72,7 +72,7 @@
 		return rowCount;
 	}
 	
-	public void setRowCount(Integer rowCount) {
+	public void setRowCount(int rowCount) {
 		this.rowCount = rowCount;
 	}
 	
@@ -81,8 +81,8 @@
 		return this.throwError;
 	}
 	
-	public void setThrowError(Boolean error) {
-		this.throwError = error.booleanValue();
+	public void setThrowError(boolean error) {
+		this.throwError = error;
 	}
 	
 	@TranslatorProperty(display="Poll interval if using a Asynchronous Connector")
@@ -90,8 +90,8 @@
 		return this.pollIntervalInMilli;
 	}
 	
-	public void setPollIntervalInMilli(Long intervel) {
-		this.pollIntervalInMilli = intervel.longValue();
+	public void setPollIntervalInMilli(long intervel) {
+		this.pollIntervalInMilli = intervel;
 	}
 	
 	@Override



More information about the teiid-commits mailing list