edu.rice.rubis.beans
Interface UserHome

All Superinterfaces:
javax.ejb.EJBHome, java.rmi.Remote

public interface UserHome
extends javax.ejb.EJBHome

This is the Home interface of the User Bean


Method Summary
 User create(java.lang.String userFirstname, java.lang.String userLastname, java.lang.String userNickname, java.lang.String userEmail, java.lang.String userPassword, java.lang.Integer userRegionId)
          This method is used to create a new User Bean.
 java.util.Collection findAllUsers()
          This method is used to retrieve all users from the database!
 User findByNickName(java.lang.String nickName)
          This method is used to retrieve a User from its nick name.
 User findByPrimaryKey(UserPK id)
          This method is used to retrieve a User Item Bean from its primary key, that is to say its id.
 
Methods inherited from interface javax.ejb.EJBHome
getEJBMetaData, getHomeHandle, remove, remove
 

Method Detail

create

public User create(java.lang.String userFirstname,
                   java.lang.String userLastname,
                   java.lang.String userNickname,
                   java.lang.String userEmail,
                   java.lang.String userPassword,
                   java.lang.Integer userRegionId)
            throws javax.ejb.CreateException,
                   java.rmi.RemoteException,
                   javax.ejb.RemoveException
This method is used to create a new User Bean. The user id and the creationDate are automatically set by the system.
Parameters:
userFirstName - user's first name
userLastName - user's last name
userNickName - user's nick name
userEmail - email address of the user
userPassword - user's password
userRegionId - region id where the user lives
Returns:
pk primary key set to null

findByPrimaryKey

public User findByPrimaryKey(UserPK id)
                      throws javax.ejb.FinderException,
                             java.rmi.RemoteException
This method is used to retrieve a User Item Bean from its primary key, that is to say its id.
Parameters:
id - user id (primary key)
Returns:
the User if found else null

findByNickName

public User findByNickName(java.lang.String nickName)
                    throws javax.ejb.FinderException,
                           java.rmi.RemoteException
This method is used to retrieve a User from its nick name.
Parameters:
nickName - User nick name
Returns:
the User if found else null

findAllUsers

public java.util.Collection findAllUsers()
                                  throws java.rmi.RemoteException,
                                         javax.ejb.FinderException
This method is used to retrieve all users from the database!
Returns:
List of all bids (eventually empty)


Copyright © 2003 - ObjectWeb Consortium - All Rights Reserved.