org.apache.shale.usecases.model
Interface UsersDAO

All Known Implementing Classes:
MinimalUsersDAO

public interface UsersDAO

Data Access Object (DAO) for accessing model data about registered users and their profile information.

$Id: UsersDAO.java 464373 2006-10-16 04:21:54Z rahul $


Method Summary
 User createUser()
          Create and return a User object that may be populated and then passed to insertUser() for persistence.
 User findUser(int id)
          Return the User for the corresponding user id, if any.
 User findUser(String username)
          Return the User for the corresponding username, if any.
 void insertUser(User user)
          Insert a newly created User into persistent storage.
 void updateUser(User user)
          Update an existing User into persistent storage.
 

Method Detail

createUser

User createUser()

Create and return a User object that may be populated and then passed to insertUser() for persistence.


findUser

User findUser(int id)

Return the User for the corresponding user id, if any. Otherwise, return null.

Parameters:
id - User id to look up

findUser

User findUser(String username)

Return the User for the corresponding username, if any. Otherwise, return null.

Parameters:
username - Username to look up

insertUser

void insertUser(User user)

Insert a newly created User into persistent storage.

Parameters:
user - Created User to be persisted

updateUser

void updateUser(User user)

Update an existing User into persistent storage.

Parameters:
user - Updated User to be persisted


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.