|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.j2biz.blogunity.dao.AbstractDAO
com.j2biz.blogunity.dao.UserDAO
Field Summary |
Fields inherited from class com.j2biz.blogunity.dao.AbstractDAO |
eventService |
Constructor Summary | |
UserDAO()
|
Method Summary | |
void |
attachToSession(User user)
Refreshes user-instance saved within Hibernate-Session. |
Serializable |
createUser(User user)
Persists given user-instance into database. |
void |
deleteUser(User user)
Deletes database-entry equals to the given user-instance from database. |
List |
getAllUsers()
Returns a list of all persistent user-objects. |
List |
getFriendOfList(User u)
Returns list of the users, one of whose friends is the given user. |
List |
getLastRegisteredUsers(int count)
Returns #count - users ordered by registration date. |
User |
getUserByID(long id)
Returns user-instance with the given ID. |
User |
getUserByID(Long id)
Returns user-instance with the given ID. |
User |
getUserByName(String nickname)
Returns user-instance with the given nickname. |
User |
getUserByNameAndPassword(String nickname,
String password)
Returns user-instance with the given nickname and password. |
List |
getUsersWithNicknameLike(String likeNickname)
Returns list of the users, whose nickname is like the given one (similar to sql's LIKE). |
void |
updateUser(User user)
Updates database-entry equals to the given user-instance. |
Methods inherited from class com.j2biz.blogunity.dao.AbstractDAO |
create, delete, getByID, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UserDAO()
Method Detail |
public User getUserByID(long id) throws BlogunityException
id
-
BlogException
BlogunityException
public User getUserByID(Long id) throws BlogunityException
id
-
BlogException
BlogunityException
public User getUserByNameAndPassword(String nickname, String password) throws BlogunityException
nickname
- password
-
BlogException
BlogunityException
public User getUserByName(String nickname) throws BlogunityException
nickname
-
BlogException
BlogunityException
public Serializable createUser(User user) throws BlogunityException
user
-
BlogException
BlogunityException
public void deleteUser(User user) throws BlogunityException
user
-
BlogException
BlogunityException
public void updateUser(User user) throws BlogunityException
user
-
BlogException
BlogunityException
public void attachToSession(User user) throws BlogunityException
user
-
BlogException
BlogunityException
public List getLastRegisteredUsers(int count) throws BlogunityException
count
-
BlogException
BlogunityException
public List getAllUsers() throws BlogunityException
BlogunityException
public List getFriendOfList(User u) throws BlogunityException
u
-
BlogException
BlogunityException
public List getUsersWithNicknameLike(String likeNickname) throws BlogunityException
likeNickname
-
BlogException
BlogunityException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |