|
||||||||||
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
- userMapperMethod Detail |
---|
public final User findUserById(int id)
UserRepository
findUserById
in interface UserRepository
id
- id
net.sf.pmr.core.domain.user.UserRepository#findUserById(java.lang.Integer)
public final User findUserByLogin(java.lang.String login)
findUserByLogin
in interface UserRepository
login
- login
public final java.lang.Integer countAll()
countAll
in interface UserRepository
public final java.util.List findAll()
findAll
in interface UserRepository
public final void addOrUpdate(User user)
addOrUpdate
in interface UserRepository
user
- user to addpublic final void delete(User user)
delete
in interface UserRepository
user
- user to add
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |