edu.rice.rubis.beans
Interface UserLocalHome
- All Superinterfaces:
- javax.ejb.EJBLocalHome
- public interface UserLocalHome
- extends javax.ejb.EJBLocalHome
This is the LocalHome interface of the User Bean
Method Summary |
UserLocal |
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! |
UserLocal |
findByNickName(java.lang.String nickName)
This method is used to retrieve a User from its nick name. |
UserLocal |
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.EJBLocalHome |
remove |
create
public UserLocal 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,
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 nameuserLastName
- user's last nameuserNickName
- user's nick nameuserEmail
- email address of the useruserPassword
- user's passworduserRegionId
- region id where the user lives- Returns:
- the local interface on bean User
findByPrimaryKey
public UserLocal findByPrimaryKey(UserPK id)
throws javax.ejb.FinderException
- 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 UserLocal findByNickName(java.lang.String nickName)
throws javax.ejb.FinderException
- 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 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.