Class SetAppointmentResourceHistoryDAO
java.lang.Object
fr.paris.lutece.plugins.appointment.modules.resource.business.workflow.SetAppointmentResourceHistoryDAO
- All Implemented Interfaces:
ISetAppointmentResourceHistoryDAO
public class SetAppointmentResourceHistoryDAO
extends Object
implements ISetAppointmentResourceHistoryDAO
DAO to manage history of set appointment resource tasks
-
Field Summary
Fields inherited from interface fr.paris.lutece.plugins.appointment.modules.resource.business.workflow.ISetAppointmentResourceHistoryDAO
BEAN_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate(SetAppointmentResourceHistory history, fr.paris.lutece.portal.service.plugin.Plugin plugin) Create a new historyvoiddelete(int nIdNotif, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove an history from its primary keyvoiddeleteByIdAppointment(int nIdAppointment, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove every history associated with a given appointmentfindByIdHistory(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get the list of history associated with a given history idfindByPrimaryKey(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get an history from its primary key
-
Constructor Details
-
SetAppointmentResourceHistoryDAO
public SetAppointmentResourceHistoryDAO()
-
-
Method Details
-
create
public void create(SetAppointmentResourceHistory history, fr.paris.lutece.portal.service.plugin.Plugin plugin) Create a new history- Specified by:
createin interfaceISetAppointmentResourceHistoryDAO- Parameters:
history- The history to insert into the databaseplugin- The plugin
-
findByPrimaryKey
public SetAppointmentResourceHistory findByPrimaryKey(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get an history from its primary key- Specified by:
findByPrimaryKeyin interfaceISetAppointmentResourceHistoryDAO- Parameters:
nId- The primary keyplugin- The plugin- Returns:
- The history
-
delete
public void delete(int nIdNotif, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove an history from its primary key- Specified by:
deletein interfaceISetAppointmentResourceHistoryDAO- Parameters:
nIdNotif- The primary keyplugin- the plugin
-
findByIdHistory
public List<SetAppointmentResourceHistory> findByIdHistory(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get the list of history associated with a given history id- Specified by:
findByIdHistoryin interfaceISetAppointmentResourceHistoryDAO- Parameters:
nIdHistory- The history idplugin- The plugin- Returns:
- the list of history, or an empty list if none was found
-
deleteByIdAppointment
public void deleteByIdAppointment(int nIdAppointment, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove every history associated with a given appointment- Specified by:
deleteByIdAppointmentin interfaceISetAppointmentResourceHistoryDAO- Parameters:
nIdAppointment- The id of the appointmentplugin- the plugin
-