Interface IFormDAO
- All Known Implementing Classes:
FormDAO
public interface IFormDAO
Form DAO Interface
- Author:
- Laurent Payen
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablefindActiveAndDisplayedOnPortletForms(fr.paris.lutece.portal.service.plugin.Plugin plugin) Get all the forms that are active on displayed on portletfindActiveForms(fr.paris.lutece.portal.service.plugin.Plugin plugin) Get all the forms that are activefindAllForms(fr.paris.lutece.portal.service.plugin.Plugin plugin) Get all the formsfindByTitle(String strTitle, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get all the forms with a given titlevoidInsert a new record in the tableselect(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableselectByCategory(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tablevoidUpdate the record in the table
-
Method Details
-
insert
Insert a new record in the table- Parameters:
form- instance of the form object to insertplugin- the plugin
-
update
Update the record in the table- Parameters:
form- the reference of the formplugin- the plugin
-
delete
void delete(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Parameters:
nIdFrom- identifier of the form to deleteplugin- the plugin
-
selectByCategory
Load the data from the table- Parameters:
nIdCategory- the identifier of the categoryplugin- the plugin- Returns:
- the instance of the Form
-
select
Load the data from the table- Parameters:
nIdForm- the identifier of the formplugin- the plugin- Returns:
- the instance of the Form
-
findActiveForms
Get all the forms that are active- Parameters:
plugin- the plugin- Returns:
- all the active forms
-
findActiveAndDisplayedOnPortletForms
List<Form> findActiveAndDisplayedOnPortletForms(fr.paris.lutece.portal.service.plugin.Plugin plugin) Get all the forms that are active on displayed on portlet- Parameters:
plugin- the plugin- Returns:
- all the active and displayed on portlet forms
-
findByTitle
Get all the forms with a given title- Parameters:
strTitle- the Title of the formplugin- the plugin- Returns:
- all the forms with this title
-
findAllForms
Get all the forms- Parameters:
plugin- the plugin- Returns:
- all the forms
-