public class

UserAccountDAOImpl

extends DAO
implements UserAccountDAO
java.lang.Object
   ↳ vars.jpa.DAO
     ↳ vars.jpa.UserAccountDAOImpl

Class Overview

Created by IntelliJ IDEA. User: brian Date: Aug 19, 2009 Time: 3:09:01 PM To change this template use File | Settings | File Templates.

Summary

[Expand]
Inherited Fields
From class vars.jpa.DAO
Public Constructors
UserAccountDAOImpl(EntityManager entityManager)
Constructs ...
Public Methods
Collection<UserAccount> findAll()
Collection<UserAccount> findAllByFirstName(String firstName)
Collection<UserAccount> findAllByLastName(String lastName)
Collection<UserAccount> findAllByRole(String role)
UserAccount findByUserName(String userName)
Search for the matching username
[Expand]
Inherited Methods
From class vars.jpa.DAO
From class java.lang.Object
From interface vars.DAO
From interface vars.UserAccountDAO
From interface vars.jpa.EntityManagerAspect

Public Constructors

public UserAccountDAOImpl (EntityManager entityManager)

Constructs ...

Public Methods

public Collection<UserAccount> findAll ()

public Collection<UserAccount> findAllByFirstName (String firstName)

public Collection<UserAccount> findAllByLastName (String lastName)

public Collection<UserAccount> findAllByRole (String role)

public UserAccount findByUserName (String userName)

Search for the matching username

Parameters
userName The username to search for
Returns
  • the match, or null if no match is found