fr.paris.lutece.portal.business.style
Class ModeHome

java.lang.Object
  extended by fr.paris.lutece.portal.business.style.ModeHome

public final class ModeHome
extends java.lang.Object

This class provides instances management methods (create, find, ...) for Mode objects


Method Summary
static Mode create(Mode mode)
          Creation of an instance of a mode
static Mode findByPrimaryKey(int nKey)
          Returns an instance of an mode whose identifier is specified in parameter
static ReferenceList getModes()
          Returns a reference list which contains all the modes
static java.util.Collection<Mode> getModesList()
          Return the list of all the modes
static java.util.Properties getOuputXslProperties(int nKey)
          Returns a set of properties used for xsl output
static void remove(int nId)
          Remove the mode whose identifier is specified in parameter
static Mode update(Mode mode)
          Update of the mode which is specified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static Mode create(Mode mode)
Creation of an instance of a mode

Parameters:
mode - An instance of a mode which contains the informations to store
Returns:
The instance of a mode which has been created with its primary key.

update

public static Mode update(Mode mode)
Update of the mode which is specified

Parameters:
mode - The instance of the mode which contains the data to store
Returns:
The instance of the mode which has been updated

remove

public static void remove(int nId)
Remove the mode whose identifier is specified in parameter

Parameters:
nId - The identifier of the mode to remove

findByPrimaryKey

public static Mode findByPrimaryKey(int nKey)
Returns an instance of an mode whose identifier is specified in parameter

Parameters:
nKey - The mode primary key
Returns:
an instance of a mode

getModesList

public static java.util.Collection<Mode> getModesList()
Return the list of all the modes

Returns:
A collection of modes objects

getModes

public static ReferenceList getModes()
Returns a reference list which contains all the modes

Returns:
a reference list

getOuputXslProperties

public static java.util.Properties getOuputXslProperties(int nKey)
Returns a set of properties used for xsl output

Parameters:
nKey - The mode primary key
Returns:
the output properties to use for xsl transformation


Copyright © 2012 Mairie de Paris. All Rights Reserved.