public final class UserHome extends Object
Modifier and Type | Method and Description |
---|---|
static User |
create(User user)
Create an instance of the User class
|
static void |
delete(int nKey)
Delete the User whose identifier is specified in parameter
|
static User |
findByEmail(String strEmail)
Return a user by its email
|
static User |
findByPrimaryKey(int nKey)
Returns an instance of the User whose identifier is specified in parameter
|
List<Appointment> |
getListAppointments()
Return the list of the appointments of the User
|
static User |
update(User user)
Update of the User which is specified in parameter
|
public static User create(User user)
user
- The instance of the User which contains the informations to storepublic static User update(User user)
user
- The instance of the User which contains the data to storepublic static void delete(int nKey)
nKey
- The User Idpublic static User findByPrimaryKey(int nKey)
nKey
- The User primary keypublic static User findByEmail(String strEmail)
strUser
- The User Emailpublic List<Appointment> getListAppointments()
Copyright © 2018 City of Paris. All rights reserved.