Class FormDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.appointment.business.form.FormDAO
-
-
Constructor Summary
Constructors Constructor Description FormDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tableList<Form>findActiveAndDisplayedOnPortletForms(fr.paris.lutece.portal.service.plugin.Plugin plugin)Get all the forms that are active on displayed on portletList<Form>findActiveForms(fr.paris.lutece.portal.service.plugin.Plugin plugin)Get all the forms that are activeList<Form>findAllForms(fr.paris.lutece.portal.service.plugin.Plugin plugin)Get all the formsList<Form>findByTitle(String strTitle, fr.paris.lutece.portal.service.plugin.Plugin plugin)Get all the forms with a given titlevoidinsert(Form form, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the tableFormselect(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tableList<Form>selectByCategory(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablevoidupdate(Form form, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(Form form, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IFormDAOInsert a new record in the table
-
update
public void update(Form form, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IFormDAOUpdate the record in the table
-
delete
public void delete(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)Description copied from interface:IFormDAODelete a record from the table
-
select
public Form select(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IFormDAOLoad the data from the table
-
selectByCategory
public List<Form> selectByCategory(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IFormDAOLoad the data from the table- Specified by:
selectByCategoryin interfaceIFormDAO- Parameters:
nIdCategory- the identifier of the categoryplugin- the plugin- Returns:
- the instance of the Form
-
findActiveForms
public List<Form> findActiveForms(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IFormDAOGet all the forms that are active- Specified by:
findActiveFormsin interfaceIFormDAO- Parameters:
plugin- the plugin- Returns:
- all the active forms
-
findActiveAndDisplayedOnPortletForms
public List<Form> findActiveAndDisplayedOnPortletForms(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IFormDAOGet all the forms that are active on displayed on portlet- Specified by:
findActiveAndDisplayedOnPortletFormsin interfaceIFormDAO- Parameters:
plugin- the plugin- Returns:
- all the active and displayed on portlet forms
-
findByTitle
public List<Form> findByTitle(String strTitle, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IFormDAOGet all the forms with a given title- Specified by:
findByTitlein interfaceIFormDAO- Parameters:
strTitle- the Title of the formplugin- the plugin- Returns:
- all the forms with this title
-
findAllForms
public List<Form> findAllForms(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IFormDAOGet all the forms- Specified by:
findAllFormsin interfaceIFormDAO- Parameters:
plugin- the plugin- Returns:
- all the forms
-
-