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
    boolean insertParameters​(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

      public boolean insertParameters​(Parameters parameters) throws java.io.IOException
      this method allows to insert user parameters into database.
      Specified by:
      insertParameters in interface ParametersDAO
      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.ExecutionException
      this method show the parameters for the input email.
      Specified by:
      selectByMail in interface ParametersDAO
      Parameters:
      email - client mail to retrieve his parameters
      Returns:
      a list of client parameters
      Throws:
      java.lang.InterruptedException
      java.io.IOException
      java.util.concurrent.ExecutionException