fr.paris.lutece.plugins.myportal.business
Class WidgetStyleHome

java.lang.Object
  extended by fr.paris.lutece.plugins.myportal.business.WidgetStyleHome

public final class WidgetStyleHome
extends java.lang.Object

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


Method Summary
static Style create(Style style)
          Create an instance of the style class
static Style findByPrimaryKey(int nKey)
          Returns an instance of a style whose identifier is specified in parameter
static fr.paris.lutece.util.ReferenceList getStyles()
          Load the data of all the style objects and returns them in form of a list
static java.util.List<Style> getStylesList()
          Load the data of all the style objects and returns them in form of a list
static int newPrimaryKey()
          Generates a new primary key
static void remove(int nStyleId)
          Remove the style whose identifier is specified in parameter
static Style update(Style style)
          Update of the style which is specified in parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newPrimaryKey

public static int newPrimaryKey()
Generates a new primary key

Returns:
The new primary key

create

public static Style create(Style style)
Create an instance of the style class

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

update

public static Style update(Style style)
Update of the style which is specified in parameter

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

remove

public static void remove(int nStyleId)
Remove the style whose identifier is specified in parameter

Parameters:
nStyleId - The style Id

findByPrimaryKey

public static Style findByPrimaryKey(int nKey)
Returns an instance of a style whose identifier is specified in parameter

Parameters:
nKey - The style primary key
Returns:
an instance of Style

getStylesList

public static java.util.List<Style> getStylesList()
Load the data of all the style objects and returns them in form of a list

Returns:
the list which contains the data of all the style objects

getStyles

public static fr.paris.lutece.util.ReferenceList getStyles()
Load the data of all the style objects and returns them in form of a list

Returns:
the list which contains the data of all the style objects


Copyright © 2012 Mairie de Paris. All Rights Reserved.