From: Roland Haeder Date: Fri, 14 Aug 2015 19:51:00 +0000 (+0200) Subject: Added more thrown exception (yes, again)Changed parameter type from String to Object... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7e1dc270231ccfec9dbe5c90b35a71fb95ca31d0;p=pizzaservice-war.git Added more thrown exception (yes, again)Changed parameter type from String to Object + implemented one setter Signed-off-by:Roland Häder --- diff --git a/src/java/org/mxchange/pizzaapplication/category/BaseCategory.java b/src/java/org/mxchange/pizzaapplication/category/BaseCategory.java index 2a781dde..54892128 100644 --- a/src/java/org/mxchange/pizzaapplication/category/BaseCategory.java +++ b/src/java/org/mxchange/pizzaapplication/category/BaseCategory.java @@ -163,7 +163,7 @@ public class BaseCategory extends BaseFrameworkSystem implements Category { } @Override - public void setValueFromColumn (final String columnName, final String value) throws NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException { + public void setValueFromColumn (final String columnName, final Object value) throws NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException { // Trace message this.getLogger().trace(MessageFormat.format("columnName={0},value={1} - CALLED!", columnName, value)); diff --git a/src/java/org/mxchange/pizzaapplication/customer/bean/PizzaServiceCustomerBean.java b/src/java/org/mxchange/pizzaapplication/customer/bean/PizzaServiceCustomerBean.java index e68c9828..bcdafaad 100644 --- a/src/java/org/mxchange/pizzaapplication/customer/bean/PizzaServiceCustomerBean.java +++ b/src/java/org/mxchange/pizzaapplication/customer/bean/PizzaServiceCustomerBean.java @@ -256,13 +256,13 @@ public class PizzaServiceCustomerBean extends BasePizzaServiceSystem implements } @Override - public Object getValueFromColumn (String columnName) throws IllegalArgumentException, NoSuchMethodException, IllegalAccessException, InvocationTargetException { + public Object getValueFromColumn (final String columnName) throws IllegalArgumentException, NoSuchMethodException, IllegalAccessException, InvocationTargetException { // Deligate to "hidden" object return this.getContact().getValueFromColumn(columnName); } @Override - public void setValueFromColumn (String columnName, String value) throws IllegalArgumentException, NoSuchMethodException, IllegalAccessException, InvocationTargetException { + public void setValueFromColumn (final String columnName, final Object value) throws IllegalArgumentException, NoSuchMethodException, IllegalAccessException, InvocationTargetException { // Deligate to "hidden" object this.getContact().setValueFromColumn(columnName, value); } diff --git a/src/java/org/mxchange/pizzaapplication/product/BaseProduct.java b/src/java/org/mxchange/pizzaapplication/product/BaseProduct.java index 7d732948..0b9d9740 100644 --- a/src/java/org/mxchange/pizzaapplication/product/BaseProduct.java +++ b/src/java/org/mxchange/pizzaapplication/product/BaseProduct.java @@ -182,7 +182,7 @@ public class BaseProduct extends BaseFrameworkSystem implements Product { } @Override - public void setValueFromColumn (final String columnName, final String value) throws NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException { + public void setValueFromColumn (final String columnName, final Object value) throws NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException { // Trace message this.getLogger().trace(MessageFormat.format("columnName={0},value={1} - CALLED!", columnName, value));