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 List<User> |
findByEmail(String strEmail)
return user(s) by its email
|
static User |
findByFirstNameLastNameAndEmail(String strFirstName,
String strLastName,
String strEmail)
return a user by its firstname, lastname and 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 findByFirstNameLastNameAndEmail(String strFirstName, String strLastName, String strEmail)
strFirstName
- the user first namestrLastName
- the user last namestrEmail
- the user emailpublic static List<User> findByEmail(String strEmail)
strEmail
- the user emailpublic List<Appointment> getListAppointments()
Copyright © 2018 City of Paris. All rights reserved.