*/
package org.mxchange.pizzaapplication.beans.customer;
-import java.lang.reflect.Field;
-import java.lang.reflect.InvocationTargetException;
-import java.util.Iterator;
-import java.util.Map;
import org.mxchange.jcore.client.Client;
-import org.mxchange.jcore.contact.Gender;
+import org.mxchange.jcore.contact.gender.Gender;
import org.mxchange.jshop.beans.FrameworkBean;
/**
* @author Roland Haeder
*/
public interface CustomerBean extends FrameworkBean {
- /**
- * Returns an iterator of all values from this object
- *
- * @return An iterator
- * @throws java.lang.NoSuchMethodException If the invoked method was not found
- * @throws java.lang.IllegalAccessException If the method cannot be accessed
- * @throws java.lang.reflect.InvocationTargetException Any other problems?
- */
- public Iterator<Map.Entry<Field, Object>> iterator ()throws NoSuchMethodException, IllegalAccessException, InvocationTargetException;
-
/**
* Some "getter" for translated gender of the contact
*
* @param client Client instance to call back
*/
public void show (final Client client);
-
- /**
- * Some "getter for a value from given column name. This name will be
- * translated into a method name and then this method is called.
- *
- * @param columnName Column name
- * @return Value from field
- * @throws IllegalArgumentException Some implementations may throw this
- * @throws java.lang.NoSuchMethodException If the invoked method was not found
- * @throws java.lang.IllegalAccessException If the method cannot be accessed
- * @throws java.lang.reflect.InvocationTargetException Any other problems?
- */
- public Object getValueFromColumn (final String columnName) throws IllegalArgumentException, NoSuchMethodException, IllegalAccessException, InvocationTargetException;
-
- /**
- * Some "setter" for a value from given column name. You may wish to overwrite this method in your
- * own class.
- *
- * @param columnName Column name
- * @param value Value to set in object's field
- * @throws IllegalArgumentException Some implementations may throw this
- * @throws java.lang.NoSuchMethodException If the invoked method was not found
- * @throws java.lang.IllegalAccessException If the method cannot be accessed
- * @throws java.lang.reflect.InvocationTargetException Any other problems?
- */
- public void setValueFromColumn (final String columnName, final Object value) throws NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException;
}