|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--businessmodel.User | +--dataabstraction.PersistentUser
The PersistentUser class provides the object-relational / relational-object mapping for User objects in the BugTracker application. It handles all persistence issues for User objects. The User objects that are remoted to the BugTracker application and servlet are of the PersistentUser class.
Field Summary | |
static java.lang.String |
DROPBYKEY
|
static java.lang.String |
GETUSERIDS
|
static java.lang.String |
INSERTUSER
|
static java.lang.String |
QUERYBYKEY
|
static java.lang.String |
UPDATEUSER
|
Fields inherited from class businessmodel.User |
m_emailAddress,
m_faxNumber,
m_firstName,
m_lastName,
m_phoneNumber,
m_privLevel,
m_userID |
Constructor Summary | |
PersistentUser()
Default constructor. |
|
PersistentUser(java.lang.String uid)
Constructor. |
Method Summary | |
void |
commit(java.lang.String userid)
Attempt to store updates made to a user record |
void |
drop()
Delete the data from the persistent store for this user. |
void |
fetch()
Fetch the user object from the persistent store based on the user id |
protected void |
getDatabaseConnection()
This method ensures that the JDBC driver is loaded and we have a connection to the database. |
java.lang.String[] |
getUserIDList()
get all user ids |
void |
insert()
Insert the user information into the database as a new user |
boolean |
rowExists()
indicates whether the user is stored in the database or not |
boolean |
TestUnit()
TestUnit implemented to support test harness |
java.lang.String |
toString()
Debug method; provides a text representation of the internal User state |
void |
update()
Update the user information in the database |
Methods inherited from class businessmodel.User |
getEmail,
getFax,
getFirstName,
getLastName,
getPhone,
getPriv,
getUserID,
setEmail,
setFax,
setFirstName,
setLastName,
setPhone,
setPriv,
setUserID |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String QUERYBYKEY
public static final java.lang.String DROPBYKEY
public static final java.lang.String INSERTUSER
public static final java.lang.String UPDATEUSER
public static final java.lang.String GETUSERIDS
Constructor Detail |
public PersistentUser()
public PersistentUser(java.lang.String uid)
Method Detail |
protected void getDatabaseConnection() throws java.sql.SQLException
public void fetch() throws java.sql.SQLException
public void drop() throws java.sql.SQLException
public void insert() throws java.sql.SQLException
public void update() throws java.sql.SQLException
public boolean rowExists()
public void commit(java.lang.String userid) throws UpdateException, AppSecurityException
userid
- the identity of the user requesting the change to be madepublic java.lang.String[] getUserIDList()
public java.lang.String toString()
public boolean TestUnit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |