Class FormDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.form.business.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 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(Form form, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.Formload(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 keyjava.util.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 listvoidstore(Form form, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the form in the table
-
-
-
Method Detail
-
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
public int insert(Form form, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
-
load
public Form load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
public void store(Form form, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the form in the table
-
selectFormList
public java.util.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
-
-