Class ExportFormatDAO
java.lang.Object
fr.paris.lutece.plugins.form.business.ExportFormatDAO
- All Implemented Interfaces:
IExportFormatDAO
This class provides Data Access methods for ReportingFiche objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nIdExport, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablefr.paris.lutece.util.ReferenceListgetListExport(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the export format returns them in a reference listvoidinsert(ExportFormat exportFormat, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of the export format from the tableintnewPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin) Generates a new primary keyselectListExport(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the ExportFormat and returns them in form of a listvoidstore(ExportFormat exportFormat, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the exportFormat in the table
-
Constructor Details
-
ExportFormatDAO
public ExportFormatDAO()
-
-
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.- Specified by:
insertin interfaceIExportFormatDAO- Parameters:
exportFormat- instance of the ExportFormat object to insertplugin- the plugin
-
load
Load the data of the export format from the table- Specified by:
loadin interfaceIExportFormatDAO- Parameters:
nId- The identifier of the export formatplugin- the plugin- Returns:
- the instance of the ExportFormat
-
delete
public void delete(int nIdExport, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Specified by:
deletein interfaceIExportFormatDAO- Parameters:
nIdExport- The identifier of the ExportFormatplugin- the plugin
-
store
Update the exportFormat in the table- Specified by:
storein interfaceIExportFormatDAO- Parameters:
exportFormat- instance of the ExportFormat object to updateplugin- the plugin
-
selectListExport
Load the data of all the ExportFormat and returns them in form of a list- Specified by:
selectListExportin interfaceIExportFormatDAO- Parameters:
plugin- the plugin- Returns:
- The List which contains the data of all the ExportFormat
-
getListExport
public fr.paris.lutece.util.ReferenceList getListExport(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the export format returns them in a reference list- Specified by:
getListExportin interfaceIExportFormatDAO- Parameters:
plugin- the plugin- Returns:
- a reference list of export format
-