Class UserDAO
java.lang.Object
fr.paris.lutece.plugins.appointment.business.user.UserDAO
- All Implemented Interfaces:
IUserDAO
This class provides Data Access methods for User objects
- Author:
- Laurent Payen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablefindByEmail(String strEmail, fr.paris.lutece.portal.service.plugin.Plugin plugin) Return the users by its emailfindByFirstNameLastNameAndEmail(String strFirstName, String strLastName, String strEmail, fr.paris.lutece.portal.service.plugin.Plugin plugin) Return the user by its first name, last name and emailvoidInsert a new record in the table.select(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableselectByGuid(String strGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tablevoidUpdate the record in the table
-
Constructor Details
-
UserDAO
public UserDAO()
-
-
Method Details
-
insert
Description copied from interface:IUserDAOInsert a new record in the table. -
update
Description copied from interface:IUserDAOUpdate the record in the table -
delete
public void delete(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:IUserDAODelete a record from the table -
select
Description copied from interface:IUserDAOLoad the data from the table -
selectByGuid
Description copied from interface:IUserDAOLoad the data from the table- Specified by:
selectByGuidin interfaceIUserDAO- Parameters:
strGuid- The identifier of the userplugin- the Plugin- Returns:
- The instance of the user
-
findByEmail
Description copied from interface:IUserDAOReturn the users by its email- Specified by:
findByEmailin interfaceIUserDAO- Parameters:
strEmail- the email of the userplugin- the plugin- Returns:
- The Users found
-
findByFirstNameLastNameAndEmail
public User findByFirstNameLastNameAndEmail(String strFirstName, String strLastName, String strEmail, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:IUserDAOReturn the user by its first name, last name and email- Specified by:
findByFirstNameLastNameAndEmailin interfaceIUserDAO- Parameters:
strFirstName- the first name of the userstrLastName- the last name of the userstrEmail- the email of the userplugin- the plugin- Returns:
- the user found
-