@Singleton public class UserDao extends AbstractDao
jpa
Modifier and Type | Method and Description |
---|---|
boolean |
authenticate(java.lang.String normalizedUsername,
java.lang.String passwordHash) |
int |
count()
Returns the number of User rows
|
void |
create(User user)
Persist user (involves creating a JatosWorker)
|
java.util.List<User> |
findAll() |
User |
findByUsername(java.lang.String normalizedUsername) |
void |
remove(User user) |
void |
update(User user) |
merge, persist, refresh, remove
public void create(User user)
public void update(User user)
public void remove(User user)
public boolean authenticate(java.lang.String normalizedUsername, java.lang.String passwordHash)
public User findByUsername(java.lang.String normalizedUsername)
public java.util.List<User> findAll()
public int count()