fr.paris.lutece.plugins.workflow.modules.mappings.business
Interface ICodeMappingDAO

All Known Implementing Classes:
CodeMappingDAO

public interface ICodeMappingDAO

ICodeMappingDAO


Method Summary
 boolean checkCodeMapping(ICodeMapping codeMapping, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Check if the code mapping is valid
 void insert(ICodeMapping codeMapping, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new code mapping
 ICodeMapping load(int nIdCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the code mapping
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get new primary key
 void remove(int nCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove a code mapping
 java.util.List<ICodeMapping> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Select all code mappings
 java.util.List<ICodeMapping> selectByFilter(CodeMappingFilter cmFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Select code mappings by filter
 void update(ICodeMapping codeMapping, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update a code mapping
 

Method Detail

newPrimaryKey

int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get new primary key

Parameters:
plugin - the plugin
Returns:
a new primary key

load

ICodeMapping load(int nIdCode,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the code mapping

Parameters:
nIdCode - the id code
plugin - the plugin
Returns:
an instance of ICodeMapping

selectAll

java.util.List<ICodeMapping> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select all code mappings

Parameters:
plugin - the plugin
Returns:
a list of ICodeMapping

selectByFilter

java.util.List<ICodeMapping> selectByFilter(CodeMappingFilter cmFilter,
                                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select code mappings by filter

Parameters:
cmFilter - the filter
plugin - the plugin
Returns:
a list of ICodeMapping

insert

void insert(ICodeMapping codeMapping,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new code mapping

Parameters:
codeMapping - the code mapping
plugin - the plugin

remove

void remove(int nCode,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a code mapping

Parameters:
nCode - the id code
plugin - the plugin

update

void update(ICodeMapping codeMapping,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update a code mapping

Parameters:
codeMapping - the code mapping
plugin - the plugin

checkCodeMapping

boolean checkCodeMapping(ICodeMapping codeMapping,
                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if the code mapping is valid

Parameters:
codeMapping - the code mapping
plugin - the plugin
Returns:
true if the mapping does not exist yet, false otherwise


Copyright © 2012 Mairie de Paris. All Rights Reserved.