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

java.lang.Object
  extended by fr.paris.lutece.plugins.workflow.modules.mappings.business.CodeMappingHome

public final class CodeMappingHome
extends java.lang.Object

CodeMappingHome


Method Summary
static boolean checkCodeMapping(ICodeMapping codeMapping)
          Check if the code mapping is valid
static void create(ICodeMapping codeMapping)
          Insert a new code mapping
static java.util.List<ICodeMapping> findAll()
          Select all code mappings
static java.util.List<ICodeMapping> findByFilter(CodeMappingFilter cmFilter)
          Select code mappings by filter
static ICodeMapping findByPrimaryKey(int nIdCode)
          Load the code mapping
static void remove(int nIdCode)
          Remove a code mapping
static void update(ICodeMapping codeMapping)
          Update a code mapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findByPrimaryKey

public static ICodeMapping findByPrimaryKey(int nIdCode)
Load the code mapping

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

findAll

public static java.util.List<ICodeMapping> findAll()
Select all code mappings

Returns:
a list of ICodeMapping

findByFilter

public static java.util.List<ICodeMapping> findByFilter(CodeMappingFilter cmFilter)
Select code mappings by filter

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

create

public static void create(ICodeMapping codeMapping)
Insert a new code mapping

Parameters:
codeMapping - the code mapping

remove

public static void remove(int nIdCode)
Remove a code mapping

Parameters:
nIdCode - the id code

update

public static void update(ICodeMapping codeMapping)
Update a code mapping

Parameters:
codeMapping - the code mapping

checkCodeMapping

public static boolean checkCodeMapping(ICodeMapping codeMapping)
Check if the code mapping is valid

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


Copyright © 2012 Mairie de Paris. All Rights Reserved.