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

java.lang.Object
  extended by fr.paris.lutece.plugins.myportal.business.DefaultPageBuilderDAO
All Implemented Interfaces:
IDefaultPageBuilderDAO

public class DefaultPageBuilderDAO
extends java.lang.Object
implements IDefaultPageBuilderDAO

DefaultPageBuilderDAO


Constructor Summary
DefaultPageBuilderDAO()
           
 
Method Summary
 void delete(int nIdWidgetComponent, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void deleteAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete all record from the table
 void deleteByColumnMax(int nColumnMax, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete the records that have a column > to the given nColumnMax
 void insert(WidgetComponent widgetComponent, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 WidgetComponent load(int nIdWidgetComponent, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of the IndexerAction from the table
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get a new PK
 java.util.List<WidgetComponent> selectAllWidgetComponents(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Finds all WidgetComponent
 java.util.List<java.lang.Integer> selectColumns(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns the columns list
 int selectMaxOrder(int nColumn, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns the max order value, for the given column
 int selectMaxOrder(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns the max order value, for all columns
 java.util.List<WidgetComponent> selectWidgetComponents(WidgetComponentFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Finds all WidgetComponent matching filter
 java.util.List<java.lang.Integer> selectWidgetIds(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Return the widget ids list
 void store(WidgetComponent widgetComponent, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the widgetComponent in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPageBuilderDAO

public DefaultPageBuilderDAO()
Method Detail

newPrimaryKey

public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get a new PK

Specified by:
newPrimaryKey in interface IDefaultPageBuilderDAO
Parameters:
plugin - Plugin
Returns:
the new PK

delete

public void delete(int nIdWidgetComponent,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Specified by:
delete in interface IDefaultPageBuilderDAO
Parameters:
nIdWidgetComponent - the ID of the widget component
plugin - Plugin

deleteByColumnMax

public void deleteByColumnMax(int nColumnMax,
                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete the records that have a column > to the given nColumnMax

Specified by:
deleteByColumnMax in interface IDefaultPageBuilderDAO
Parameters:
nColumnMax - the column max
plugin - Plugin

deleteAll

public void deleteAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete all record from the table

Specified by:
deleteAll in interface IDefaultPageBuilderDAO
Parameters:
plugin - Plugin

insert

public void insert(WidgetComponent widgetComponent,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Specified by:
insert in interface IDefaultPageBuilderDAO
Parameters:
widgetComponent - instance of the widgetComponent object to insert
plugin - Plugin

load

public WidgetComponent load(int nIdWidgetComponent,
                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the IndexerAction from the table

Specified by:
load in interface IDefaultPageBuilderDAO
Parameters:
nIdWidgetComponent - the ID of the widget component
plugin - Plugin
Returns:
the instance of the WidgetComponent

selectAllWidgetComponents

public java.util.List<WidgetComponent> selectAllWidgetComponents(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Finds all WidgetComponent

Specified by:
selectAllWidgetComponents in interface IDefaultPageBuilderDAO
Parameters:
plugin - Plugin
Returns:
all WidgetComponent

selectMaxOrder

public int selectMaxOrder(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the max order value, for all columns

Specified by:
selectMaxOrder in interface IDefaultPageBuilderDAO
Parameters:
plugin - Plugin
Returns:
the max order

selectMaxOrder

public int selectMaxOrder(int nColumn,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the max order value, for the given column

Specified by:
selectMaxOrder in interface IDefaultPageBuilderDAO
Parameters:
nColumn - the column
plugin - Plugin
Returns:
the max order

selectWidgetComponents

public java.util.List<WidgetComponent> selectWidgetComponents(WidgetComponentFilter filter,
                                                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Finds all WidgetComponent matching filter

Specified by:
selectWidgetComponents in interface IDefaultPageBuilderDAO
Parameters:
filter - the filter
plugin - Plugin
Returns:
all WidgetComponent matching filter

store

public void store(WidgetComponent widgetComponent,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the widgetComponent in the table

Specified by:
store in interface IDefaultPageBuilderDAO
Parameters:
widgetComponent - instance of the widgetComponent object to update
plugin - Plugin

selectColumns

public java.util.List<java.lang.Integer> selectColumns(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the columns list

Specified by:
selectColumns in interface IDefaultPageBuilderDAO
Parameters:
plugin - Plugin
Returns:
the columns list

selectWidgetIds

public java.util.List<java.lang.Integer> selectWidgetIds(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the widget ids list

Specified by:
selectWidgetIds in interface IDefaultPageBuilderDAO
Parameters:
plugin - Plugin
Returns:
the widget ids list


Copyright © 2011 Mairie de Paris. All Rights Reserved.