Class MappingDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.files2docs.business.MappingDAO
-
- All Implemented Interfaces:
IMappingDAO
public class MappingDAO extends java.lang.Object implements IMappingDAO
This class provides Data Access methods for Mapping objects
-
-
Constructor Summary
Constructors Constructor Description MappingDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nMappingId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Deletes a record from the tablevoidinsert(Mapping mapping, fr.paris.lutece.portal.service.plugin.Plugin plugin)Inserts a new record in the tableMappingload(int nMappingId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Loads the data of the mapping from the tablejava.util.Collection<Mapping>selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)Loads the data of all the mappingMappingselectByDocumentTypeCode(java.lang.String strDocumentTypeCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)Loads the data of the mapping filtered by document type codevoidstore(Mapping mapping, fr.paris.lutece.portal.service.plugin.Plugin plugin)Updates the record in the table
-
-
-
Method Detail
-
selectAll
public java.util.Collection<Mapping> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
public void insert(Mapping mapping, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Inserts a new record in the table- Specified by:
insertin interfaceIMappingDAO- Parameters:
mapping- Instance of the Mapping object to insertplugin- The plugin
-
load
public Mapping load(int nMappingId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
public void store(Mapping mapping, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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(java.lang.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
-
-