View Javadoc
1   /******************************************************************************
2    * UsersDao.java - Dao interface for the Chains
3    * 
4    * PicMan - The BuckoSoft Picture Manager in Java
5    * Copyright(c) 2007 - Dick Balaska
6    * 
7    */
8   package com.buckosoft.PicMan.db;
9   
10  import com.buckosoft.PicMan.domain.User;
11  
12  /** Dao interface for the {@link com.buckosoft.PicMan.domain.User}s.
13   * @author Dick Balaska
14   * @since 2007/12/01
15   * @see <a href="http://cvs.buckosoft.com/Projects/java/PicMan/PicMan/src/com/buckosoft/PicMan/db/UsersDao.java">UsersDao.java</a>
16   */
17  public interface UsersDao {
18  	/** Fetch the <code>User</code> with this User ID.
19  	 * @param userid The User ID to query
20  	 * @return The User with this User ID or null if not found.
21  	 */
22  	User		getUser(int userid);
23  
24  	/** Write this <code>User</code> to the database.
25  	 * @param user The User to store.
26  	 */
27  	void		storeUser(User user);
28  
29  }