|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectajax.database.UserBean
public class UserBean
Encapsulated the logic for dealing with Users [objects].
User| Constructor Summary | |
|---|---|
UserBean()
|
|
| Method Summary | |
|---|---|
static User |
findUser(java.lang.Integer uid)
Find a user by user id |
static User |
findUser(java.lang.String name)
Find a user by user id |
static java.util.List |
getPendingMessages(User to,
User from)
Retrieve all messages waiting to be delivered between two users. |
static User |
getPersistentHandle(java.lang.Object o)
Obtain a handle to persistent user object |
static java.util.List |
getUserList()
Retrieve a list of all users. |
static User |
registerUser(java.lang.String name,
java.lang.String email)
Adds a new user to the database |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserBean()
| Method Detail |
|---|
public static User findUser(java.lang.String name)
throws java.sql.SQLException,
UserAccountNotFoundException
name - The id of the User to find
UserAccountNotFoundException - If the user was not found
java.sql.SQLException - If something terrible happened
public static User findUser(java.lang.Integer uid)
throws java.sql.SQLException,
UserAccountNotFoundException
uid - The id of the User to find
UserAccountNotFoundException - If the user was not found
java.sql.SQLException - If something terrible happened
public static User registerUser(java.lang.String name,
java.lang.String email)
name - The usernameemail - The email address
public static java.util.List getUserList()
throws java.lang.Exception
java.lang.ExceptionUser
public static java.util.List getPendingMessages(User to,
User from)
throws java.sql.SQLException
to - The recipient userfrom - The sending user
java.sql.SQLExceptionUser,
PendingMessagepublic static User getPersistentHandle(java.lang.Object o)
o - An instantiated user object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||