fr.paris.lutece.plugins.mypage.business
Class WidgetHome

java.lang.Object
  extended by fr.paris.lutece.plugins.mypage.business.WidgetHome

public final class WidgetHome
extends java.lang.Object

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


Method Summary
static Widget create(Widget widget)
          Create an instance of the widget class
static java.util.List<Widget> findAll()
          Load the data of all the widget objects and returns them in form of a collection
static Widget findByPrimaryKey(int nKey)
          Returns an instance of a widget whose identifier is specified in parameter
static void remove(int nWidgetId)
          Remove the widget whose identifier is specified in parameter
static Widget update(Widget widget)
          Update of the widget data specified in parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static Widget create(Widget widget)
Create an instance of the widget class

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

update

public static Widget update(Widget widget)
Update of the widget data specified in parameter

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

remove

public static void remove(int nWidgetId)
Remove the widget whose identifier is specified in parameter

Parameters:
nWidgetId - The widget Id

findByPrimaryKey

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

Parameters:
nKey - The widget primary key
Returns:
an instance of Widget

findAll

public static java.util.List<Widget> findAll()
Load the data of all the widget objects and returns them in form of a collection

Returns:
the collection which contains the data of all the widget objects


Copyright © 2011 Mairie de Paris. All Rights Reserved.