Class FormDAO
java.lang.Object
fr.paris.lutece.plugins.form.business.FormDAO
- All Implemented Interfaces:
IFormDAO
class FormDAO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablefr.paris.lutece.util.ReferenceListgetEnableFormList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all enable form returns them in a reference listintInsert a new record in the table.load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of the Form from the tableintnewPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin) Generates a new primary keyselectFormList(FormFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the form who verify the filter and returns them in a listvoidUpdate the form in the table
-
Constructor Details
-
FormDAO
public FormDAO()
-
-
Method Details
-
newPrimaryKey
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin) Generates a new primary key- Parameters:
plugin- the plugin- Returns:
- The new primary key
-
insert
Insert a new record in the table. -
load
Load the data of the Form from the table -
delete
public void delete(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table -
store
Update the form in the table -
selectFormList
public List<Form> selectFormList(FormFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the form who verify the filter and returns them in a list- Specified by:
selectFormListin interfaceIFormDAO- Parameters:
filter- the filterplugin- the plugin- Returns:
- the list of form
-
getEnableFormList
public fr.paris.lutece.util.ReferenceList getEnableFormList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all enable form returns them in a reference list- Specified by:
getEnableFormListin interfaceIFormDAO- Parameters:
plugin- the plugin- Returns:
- a reference list of form
-