Package com.ateam.webstore.dao

Examples of com.ateam.webstore.dao.PersonDAO


  }

  @Override
  public void remove(Person person) {

    PersonDAO repository = new PersonDAO();
    repository.delete(person);
   
  }
View Full Code Here


  }

  @Override
  public Collection<Person> getAll() {

    PersonDAO repository = new PersonDAO();
    return repository.getAll();
   
  }
View Full Code Here

   
  }

  @Override
  public Person getById(Serializable id) {
    PersonDAO repository = new PersonDAO();
    return repository.get(id);
  }
View Full Code Here

    PersonDAO repository = new PersonDAO();
    return repository.get(id);
  }
 
  public Person getByLogin(String email) {
    PersonDAO repository = new PersonDAO();
    return repository.getPersonByLogin(email);
  }
View Full Code Here

    PersonDAO repository = new PersonDAO();
    return repository.getPersonByLogin(email);
  }

  public Person getByLoginAndPassword(String email, String password) {
    PersonDAO repository = new PersonDAO();
    return repository.getPersonByLoginAndPassword(email, password);
  }
View Full Code Here

public class PersonService implements RepositoryService<Person> {

  @Override
  public Person store(Person person) {
   
    PersonDAO repository = new PersonDAO();
    return repository.save(person);
   
  }
View Full Code Here

TOP

Related Classes of com.ateam.webstore.dao.PersonDAO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.