Interface ParametersService

All Known Implementing Classes:
ParametersServiceImpl

public interface ParametersService
  • Method Summary

    Modifier and Type Method Description
    Parameters createParameters​(java.lang.String weight, java.lang.String leanMass, java.lang.String fatMass, java.lang.String email)
    create parameters method this methods check if the parameters are acceptable; then able to be insert into database.
    java.util.ArrayList<Parameters> getByMail​(java.lang.String email)
    this method show the parameters for the input email.
    boolean saveParameters​(Parameters parameters)
    save the parameters into the database.
  • Method Details

    • createParameters

      Parameters createParameters​(java.lang.String weight, java.lang.String leanMass, java.lang.String fatMass, java.lang.String email) throws java.lang.IllegalArgumentException, java.io.IOException
      create parameters method this methods check if the parameters are acceptable; then able to be insert into database. and create the parameters.
      Parameters:
      weight -
      leanMass -
      fatMass -
      email - client mail
      Returns:
      client parameter.
      Throws:
      java.lang.IllegalArgumentException
      java.io.IOException
    • saveParameters

      boolean saveParameters​(Parameters parameters) throws java.io.IOException
      save the parameters into the database.
      Parameters:
      parameters - the parameters to insert
      Returns:
      true if the operation is done
      Throws:
      java.io.IOException
    • getByMail

      java.util.ArrayList<Parameters> getByMail​(java.lang.String email) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.io.IOException
      this method show the parameters for the input email.
      Parameters:
      email - mail client who want to retrieve his parameters
      Returns:
      list of parameters
      Throws:
      java.lang.InterruptedException
      java.util.concurrent.ExecutionException
      java.io.IOException