@Singleton public class LoginAttemptDao extends AbstractDao
jpa| Modifier and Type | Method and Description | 
|---|---|
int | 
countLoginAttemptsOfLastMin(java.lang.String username)
Returns the count of LoginAttempts that happened within the last minute for the given username 
 | 
void | 
create(LoginAttempt loginAttempt)  | 
LoginAttempt | 
find(java.lang.Long id)  | 
void | 
remove(LoginAttempt loginAttempt)  | 
void | 
removeByUsername(java.lang.String username)  | 
void | 
removeOldAttempts()
Removes all LoginAttempts that are older than 1 minute 
 | 
void | 
update(LoginAttempt loginAttempt)  | 
merge, persist, refresh, removepublic void create(LoginAttempt loginAttempt)
public void update(LoginAttempt loginAttempt)
public void remove(LoginAttempt loginAttempt)
public LoginAttempt find(java.lang.Long id)
public void removeByUsername(java.lang.String username)
public void removeOldAttempts()
public int countLoginAttemptsOfLastMin(java.lang.String username)