Class ParametersDAOImpl
java.lang.Object
it.unisa.c03.myPersonalTrainer.parameters.dao.ParametersDAOImpl
- All Implemented Interfaces:
ParametersDAO
public class ParametersDAOImpl extends java.lang.Object implements ParametersDAO
this is an implementation of ParametersDAO.
-
Constructor Summary
Constructors Constructor Description ParametersDAOImpl() -
Method Summary
Modifier and Type Method Description booleaninsertParameters(Parameters parameters)this method allows to insert user parameters into database.java.util.ArrayList<Parameters>selectByMail(java.lang.String email)this method show the parameters for the input email.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ParametersDAOImpl
public ParametersDAOImpl()
-
-
Method Details
-
insertParameters
this method allows to insert user parameters into database.- Specified by:
insertParametersin interfaceParametersDAO- Parameters:
parameters- the parameters to add into database- Returns:
- boolean
- Throws:
java.io.IOException
-
selectByMail
public java.util.ArrayList<Parameters> selectByMail(java.lang.String email) throws java.lang.InterruptedException, java.io.IOException, java.util.concurrent.ExecutionExceptionthis method show the parameters for the input email.- Specified by:
selectByMailin interfaceParametersDAO- Parameters:
email- client mail to retrieve his parameters- Returns:
- a list of client parameters
- Throws:
java.lang.InterruptedExceptionjava.io.IOExceptionjava.util.concurrent.ExecutionException
-