fr.paris.lutece.plugins.workflow.modules.mappings.business
Class CodeMappingDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.workflow.modules.mappings.business.CodeMappingDAO
All Implemented Interfaces:
ICodeMappingDAO

public class CodeMappingDAO
extends java.lang.Object
implements ICodeMappingDAO

CodeMappingDAO


Constructor Summary
CodeMappingDAO()
           
 
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 nIdCode, 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 setCodeMappingFactory(CodeMappingFactory codeMappingFactory)
          Set the code mapping factory
 void update(ICodeMapping codeMapping, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update a code mapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodeMappingDAO

public CodeMappingDAO()
Method Detail

setCodeMappingFactory

public void setCodeMappingFactory(CodeMappingFactory codeMappingFactory)
Set the code mapping factory

Parameters:
codeMappingFactory - the code mapping factory

newPrimaryKey

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

Specified by:
newPrimaryKey in interface ICodeMappingDAO
Parameters:
plugin - the plugin
Returns:
a new primary key

insert

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

Specified by:
insert in interface ICodeMappingDAO
Parameters:
codeMapping - the code mapping
plugin - the plugin

load

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

Specified by:
load in interface ICodeMappingDAO
Parameters:
nIdCode - the id code
plugin - the plugin
Returns:
an instance of ICodeMapping

selectAll

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

Specified by:
selectAll in interface ICodeMappingDAO
Parameters:
plugin - the plugin
Returns:
a list of ICodeMapping

remove

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

Specified by:
remove in interface ICodeMappingDAO
Parameters:
nIdCode - the id code
plugin - the plugin

update

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

Specified by:
update in interface ICodeMappingDAO
Parameters:
codeMapping - the code mapping
plugin - the plugin

checkCodeMapping

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

Specified by:
checkCodeMapping in interface ICodeMappingDAO
Parameters:
codeMapping - the code mapping
plugin - the plugin
Returns:
true if the mapping does not exist yet, false otherwise

selectByFilter

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

Specified by:
selectByFilter in interface ICodeMappingDAO
Parameters:
cmFilter - the filter
plugin - the plugin
Returns:
a list of ICodeMapping


Copyright © 2012 Mairie de Paris. All Rights Reserved.