public class MappingDAO extends Object implements IMappingDAO
Constructor and Description |
---|
MappingDAO() |
Modifier and Type | Method and Description |
---|---|
void |
delete(int nMappingId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Deletes a record from the table
|
void |
insert(Mapping mapping,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Inserts a new record in the table
|
Mapping |
load(int nMappingId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Loads the data of the mapping from the table
|
Collection<Mapping> |
selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Loads the data of all the mapping
|
Mapping |
selectByDocumentTypeCode(String strDocumentTypeCode,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Loads the data of the mapping filtered by document type code
|
void |
store(Mapping mapping,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Updates the record in the table
|
public Collection<Mapping> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAll
in interface IMappingDAO
plugin
- The pluginpublic void insert(Mapping mapping, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface IMappingDAO
mapping
- Instance of the Mapping object to insertplugin
- The pluginpublic Mapping load(int nMappingId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface IMappingDAO
nMappingId
- The mapping identifierplugin
- The pluginpublic void store(Mapping mapping, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface IMappingDAO
mapping
- The reference of the mappingplugin
- The pluginpublic void delete(int nMappingId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface IMappingDAO
nMappingId
- The mapping identifierplugin
- The pluginpublic Mapping selectByDocumentTypeCode(String strDocumentTypeCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectByDocumentTypeCode
in interface IMappingDAO
strDocumentTypeCode
- The document type codeplugin
- The pluginCopyright © 2015 City of Paris. All rights reserved.