|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Abstract class for User Data Access objects
| Method Summary | |
void |
deleteUser(String id)
Delete the User having the input id from the database. |
String |
getProviderType()
Get the data provider type |
User |
getUser(String login,
String passwd)
Get the registered User identified by the input login and passwd properties. |
void |
getUser(User user)
Update the input User object with the user informations retrieved from the database. |
boolean |
loginExists(String login)
Test if the input login property
already exists into the application database. |
boolean |
loginExists(User user)
Test if the input user login property
already exists into the application database. |
void |
setUser(User user)
Persist the user informations into the database. |
| Method Detail |
public String getProviderType()
public User getUser(String login,
String passwd)
throws Exception
login and passwd properties.
login - Description of the Parameterpasswd - Description of the Parameter
Exception - Description of the Exception
public void getUser(User user)
throws Exception
login
and passwd properties to execute the login procedure.
user - the user object with the login
and passwd properties properly set.
Exception - Description of the Exception
public void setUser(User user)
throws Exception
user - the user object to persist into the database
Exception - if any error occurs
public void deleteUser(String id)
throws Exception
id - the identifier of the user to remove from the database
Exception - if any error occurs
public boolean loginExists(User user)
throws Exception
login property
already exists into the application database.
user - the user object
Exception - if any error occurs
public boolean loginExists(String login)
throws Exception
login property
already exists into the application database.
login - the login string
Exception - if any error occurs
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||