|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.pmr.core.domain.user.UserRepositoryImpl
public class UserRepositoryImpl
| Constructor Summary | |
|---|---|
UserRepositoryImpl(UserMapper mapper)
Constructor |
|
| Method Summary | |
|---|---|
void |
addOrUpdate(User user)
add a user in the persistance |
java.lang.Integer |
countAll()
Count All User |
void |
delete(User user)
delete a user in the persistance |
java.util.List |
findAll()
find all users |
User |
findUserById(int id)
find a user by it's id |
User |
findUserByLogin(java.lang.String login)
find a user by login |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserRepositoryImpl(UserMapper mapper)
mapper - userMapper| Method Detail |
|---|
public final User findUserById(int id)
UserRepository
findUserById in interface UserRepositoryid - id
net.sf.pmr.core.domain.user.UserRepository#findUserById(java.lang.Integer)public final User findUserByLogin(java.lang.String login)
findUserByLogin in interface UserRepositorylogin - login
public final java.lang.Integer countAll()
countAll in interface UserRepositorypublic final java.util.List findAll()
findAll in interface UserRepositorypublic final void addOrUpdate(User user)
addOrUpdate in interface UserRepositoryuser - user to addpublic final void delete(User user)
delete in interface UserRepositoryuser - user to add
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||