Class MappingDAO
java.lang.Object
fr.paris.lutece.plugins.files2docs.business.MappingDAO
- All Implemented Interfaces:
IMappingDAO
This class provides Data Access methods for Mapping objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nMappingId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Deletes a record from the tablevoidInserts a new record in the tableload(int nMappingId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Loads the data of the mapping from the tableselectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin) Loads the data of all the mappingselectByDocumentTypeCode(String strDocumentTypeCode, fr.paris.lutece.portal.service.plugin.Plugin plugin) Loads the data of the mapping filtered by document type codevoidUpdates the record in the table
-
Constructor Details
-
MappingDAO
public MappingDAO()
-
-
Method Details
-
selectAll
Loads the data of all the mapping- Specified by:
selectAllin interfaceIMappingDAO- Parameters:
plugin- The plugin- Returns:
- A collection which contains the data of all the mapping
-
insert
Inserts a new record in the table- Specified by:
insertin interfaceIMappingDAO- Parameters:
mapping- Instance of the Mapping object to insertplugin- The plugin
-
load
Loads the data of the mapping from the table- Specified by:
loadin interfaceIMappingDAO- Parameters:
nMappingId- The mapping identifierplugin- The plugin- Returns:
- The instance of the Mapping
-
store
Updates the record in the table- Specified by:
storein interfaceIMappingDAO- Parameters:
mapping- The reference of the mappingplugin- The plugin
-
delete
public void delete(int nMappingId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Deletes a record from the table- Specified by:
deletein interfaceIMappingDAO- Parameters:
nMappingId- The mapping identifierplugin- The plugin
-
selectByDocumentTypeCode
public Mapping selectByDocumentTypeCode(String strDocumentTypeCode, fr.paris.lutece.portal.service.plugin.Plugin plugin) Loads the data of the mapping filtered by document type code- Specified by:
selectByDocumentTypeCodein interfaceIMappingDAO- Parameters:
strDocumentTypeCode- The document type codeplugin- The plugin- Returns:
- The instance of the Mapping
-