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

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

public final class DefaultPageBuilderHome
extends java.lang.Object

DefaultPageBuilderHome


Method Summary
static void create(WidgetComponent widgetComponent)
          Creation of an instance of widgetComponent
static java.util.List<WidgetComponent> findAll()
          Loads the data of all the widgetComponent
static java.util.List<WidgetComponent> findByFilter(WidgetComponentFilter filter)
          Loads the data of all the widgetComponent
static WidgetComponent findByPrimaryKey(int nIdWidgetComponent)
          Returns an instance of a widgetComponent whose identifier is specified in parameter
static java.util.List<java.lang.Integer> findColumns()
          Find the columns list
static int findMaxOrder()
          Finds the max order for all columns.
static int findMaxOrder(int nColumn)
          Finds the max order for the column.
static java.util.List<java.lang.Integer> findWidgetIds()
          Return the widget ids list
static int newPrimaryKey()
          Get a new PK
static void remove(int nIdWidgetComponent)
          Remove the widgetComponent whose identifier is specified in parameter
static void removeAll()
          Remove the widgetComponent whose identifier is specified in parameter
static void removeByColumnMax(int nColumnMax)
          Delete the records that have a column > to the given nColumnMax
static void update(WidgetComponent widgetComponent)
          Update of the widgetComponent 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()
Get a new PK

Returns:
the new PK

create

public static void create(WidgetComponent widgetComponent)
Creation of an instance of widgetComponent

Parameters:
widgetComponent - The instance of the widgetComponent which contains the informations to store

update

public static void update(WidgetComponent widgetComponent)
Update of the widgetComponent which is specified in parameter

Parameters:
widgetComponent - The instance of the widgetComponent which contains the informations to update

remove

public static void remove(int nIdWidgetComponent)
Remove the widgetComponent whose identifier is specified in parameter

Parameters:
nIdWidgetComponent - The widgetComponent id

removeByColumnMax

public static void removeByColumnMax(int nColumnMax)
Delete the records that have a column > to the given nColumnMax

Parameters:
nColumnMax - the column max

removeAll

public static void removeAll()
Remove the widgetComponent whose identifier is specified in parameter


findByPrimaryKey

public static WidgetComponent findByPrimaryKey(int nIdWidgetComponent)
Returns an instance of a widgetComponent whose identifier is specified in parameter

Parameters:
nIdWidgetComponent - The widgetComponent primary key
Returns:
an instance of widgetComponent

findAll

public static java.util.List<WidgetComponent> findAll()
Loads the data of all the widgetComponent

Returns:
the list which contains the data of all the widgetComponent

findByFilter

public static java.util.List<WidgetComponent> findByFilter(WidgetComponentFilter filter)
Loads the data of all the widgetComponent

Parameters:
filter - a search by criteria
Returns:
the list which contains the data of all the widgetComponent

findMaxOrder

public static int findMaxOrder()
Finds the max order for all columns.

Returns:
the max order

findMaxOrder

public static int findMaxOrder(int nColumn)
Finds the max order for the column.

Parameters:
nColumn - the column
Returns:
the max order

findColumns

public static java.util.List<java.lang.Integer> findColumns()
Find the columns list

Returns:
a list of integer

findWidgetIds

public static java.util.List<java.lang.Integer> findWidgetIds()
Return the widget ids list

Returns:
the widget ids list


Copyright © 2011 Mairie de Paris. All Rights Reserved.