From: Roland Haeder Date: Fri, 14 Aug 2015 19:42:00 +0000 (+0200) Subject: Added more thrown exceptions X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=505dbc8892f35508cb61b35e1f850938239df877;p=pizzaservice-war.git Added more thrown exceptions 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 dbc4fa51..2a781dde 100644 --- a/src/java/org/mxchange/pizzaapplication/category/BaseCategory.java +++ b/src/java/org/mxchange/pizzaapplication/category/BaseCategory.java @@ -163,12 +163,29 @@ public class BaseCategory extends BaseFrameworkSystem implements Category { } @Override - public void setValueFromColumn (final String columnName, final String value) { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + public void setValueFromColumn (final String columnName, final String value) throws NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException { + // Trace message + this.getLogger().trace(MessageFormat.format("columnName={0},value={1} - CALLED!", columnName, value)); + + // Call super method + this.setValueInStoreableFromColumn(this, "BaseCategory", columnName, value); + + // Trace message + this.getLogger().trace("EXIT!"); } @Override public Object getValueFromColumn (final String columnName) throws IllegalArgumentException, NoSuchMethodException, IllegalAccessException, InvocationTargetException { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + // Trace message + this.getLogger().trace(MessageFormat.format("columnName={0} - CALLED!", columnName)); + + // Call super method + Object value = this.getValueInStoreableFromColumn(this, "BaseCategory", columnName); + + // Trace message + this.getLogger().trace("value=" + value + " - EXIT!"); + + // Return value + return value; } }