fr.paris.lutece.plugins.files2docs.business
Class MappingDAO

java.lang.Object
  extended by 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
MappingDAO()
           
 
Method Summary
 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
 java.util.Collection<Mapping> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Loads the data of all the mapping
 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
 void store(Mapping mapping, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Updates the record in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappingDAO

public MappingDAO()
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:
selectAll in interface IMappingDAO
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:
insert in interface IMappingDAO
Parameters:
mapping - Instance of the Mapping object to insert
plugin - 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:
load in interface IMappingDAO
Parameters:
nMappingId - The mapping identifier
plugin - 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:
store in interface IMappingDAO
Parameters:
mapping - The reference of the mapping
plugin - The plugin

delete

public void delete(int nMappingId,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Deletes a record from the table

Specified by:
delete in interface IMappingDAO
Parameters:
nMappingId - The mapping identifier
plugin - 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:
selectByDocumentTypeCode in interface IMappingDAO
Parameters:
strDocumentTypeCode - The document type code
plugin - The plugin
Returns:
The instance of the Mapping


Copyright © 2012 Mairie de Paris. All Rights Reserved.