fehlende Basistypen ergaenzt
This commit is contained in:
parent
c99182b3b8
commit
23bcbfb199
@ -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();
|
||||||
|
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user