Class DisplayDAO
java.lang.Object
fr.paris.lutece.plugins.appointment.business.display.DisplayDAO
- All Implemented Interfaces:
IDisplayDAO
This class provides Data Access methods for Display objects
- Author:
- Laurent Payen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcountByIdCalendarTemplate(int nIdCalendarTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin) Count the forms displayed with a calendar templatevoiddelete(int nIdDisplay, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablevoiddeleteByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablefindByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns the display of the given formvoidInsert a new record in the table.select(int nIdDisplay, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tablevoidUpdate the record in the table
-
Constructor Details
-
DisplayDAO
public DisplayDAO()
-
-
Method Details
-
insert
Description copied from interface:IDisplayDAOInsert a new record in the table.- Specified by:
insertin interfaceIDisplayDAO- Parameters:
display- instance of the Display object to insertplugin- the Plugin
-
update
Description copied from interface:IDisplayDAOUpdate the record in the table- Specified by:
updatein interfaceIDisplayDAO- Parameters:
display- the reference of the Displayplugin- the Plugin
-
delete
public void delete(int nIdDisplay, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:IDisplayDAODelete a record from the table- Specified by:
deletein interfaceIDisplayDAO- Parameters:
nIdDisplay- identifier of the Display to deleteplugin- the Plugin
-
deleteByIdForm
public void deleteByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:IDisplayDAODelete a record from the table- Specified by:
deleteByIdFormin interfaceIDisplayDAO- Parameters:
nIdForm- identifier of the formplugin- the Plugin
-
select
Description copied from interface:IDisplayDAOLoad the data from the table- Specified by:
selectin interfaceIDisplayDAO- Parameters:
nIdDisplay- The identifier of the Displayplugin- the Plugin- Returns:
- The instance of the Display
-
findByIdForm
Description copied from interface:IDisplayDAOReturns the display of the given form- Specified by:
findByIdFormin interfaceIDisplayDAO- Parameters:
nIdForm- the form idplugin- the plugin- Returns:
- the form display
-
countByIdCalendarTemplate
public int countByIdCalendarTemplate(int nIdCalendarTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:IDisplayDAOCount the forms displayed with a calendar template- Specified by:
countByIdCalendarTemplatein interfaceIDisplayDAO- Parameters:
nIdCalendarTemplate- the calendar template idplugin- the plugin- Returns:
- the number of displays using the template
-