fehlende Basistypen ergaenzt

This commit is contained in:
Peter Hormanns 2011-05-19 11:49:59 +00:00
parent c99182b3b8
commit 23bcbfb199
2 changed files with 3 additions and 4 deletions

View File

@ -124,11 +124,11 @@ public class CLIClientConnectorServlet extends HttpServlet {
try { try {
if (type.equals("java.lang.String")) if (type.equals("java.lang.String"))
m[j].invoke(o, value); m[j].invoke(o, value);
else if (type.equals("java.lang.Integer")) else if (type.equals("java.lang.Integer") || type.equals("int"))
m[j].invoke(o, Integer.parseInt(value)); m[j].invoke(o, Integer.parseInt(value));
else if (type.equals("java.lang.Long")) else if (type.equals("java.lang.Long") || type.equals("long"))
m[j].invoke(o, Long.parseLong(value)); m[j].invoke(o, Long.parseLong(value));
else if (type.equals("java.lang.Boolean")) else if (type.equals("java.lang.Boolean") || type.equals("boolean"))
m[j].invoke(o, Boolean.valueOf(value)); m[j].invoke(o, Boolean.valueOf(value));
else if (type.equals("java.util.Date")) { else if (type.equals("java.util.Date")) {
DateFormat df = DateFormat.getInstance(); DateFormat df = DateFormat.getInstance();

View File

@ -51,7 +51,6 @@ public class CustomerTest {
setParams.put("contact_title", "Dr."); setParams.put("contact_title", "Dr.");
setParams.put("contact_firstname", "Ömer Günther"); setParams.put("contact_firstname", "Ömer Günther");
setParams.put("contact_lastname", "Janßen-Müller"); setParams.put("contact_lastname", "Janßen-Müller");
setParams.put("contact_salut", "Herr");
setParams.put("contact_street", "Hauptstr. 1"); setParams.put("contact_street", "Hauptstr. 1");
setParams.put("contact_zipcode", "99998"); setParams.put("contact_zipcode", "99998");
setParams.put("contact_city", "Musterstadt"); setParams.put("contact_city", "Musterstadt");