fr.paris.lutece.portal.business.dashboard
Class DashboardDAO

java.lang.Object
  extended by fr.paris.lutece.portal.business.dashboard.DashboardDAO
All Implemented Interfaces:
IDashboardDAO

public class DashboardDAO
extends Object
implements IDashboardDAO

DashboardDAO


Constructor Summary
DashboardDAO()
           
 
Method Summary
 void delete(String strBeanName)
          Delete a record from the table
 void deleteAll()
          Delete all record from the table
 void insert(IDashboardComponent dashboardComponent)
          Insert a new record in the table.
 IDashboardComponent load(String strClassName)
          Load the data of the IndexerAction from the table
 List<IDashboardComponent> selectAllDashboardComponents()
          Finds all DashboardComponent
 List<Integer> selectColumns()
          Returns the columns list
 List<IDashboardComponent> selectDashboardComponents(DashboardFilter filter)
          Finds all dashboard components matching filter
 int selectMaxOrder()
          Returns the max order value, for all columns
 int selectMaxOrder(int nColumn)
          Returns the max order value, for the given column
 void store(IDashboardComponent dashboardComponent)
          Update the dashboardComponent in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DashboardDAO

public DashboardDAO()
Method Detail

delete

public void delete(String strBeanName)
Delete a record from the table

Specified by:
delete in interface IDashboardDAO
Parameters:
strBeanName - The identifier of the dashboard

deleteAll

public void deleteAll()
Delete all record from the table

Specified by:
deleteAll in interface IDashboardDAO

insert

public void insert(IDashboardComponent dashboardComponent)
Insert a new record in the table.

Specified by:
insert in interface IDashboardDAO
Parameters:
dashboardComponent - instance of the dashboardComponent object to insert

load

public IDashboardComponent load(String strClassName)
Load the data of the IndexerAction from the table

Specified by:
load in interface IDashboardDAO
Parameters:
strClassName - The identifier of the action
Returns:
the instance of the IndexerAction

selectAllDashboardComponents

public List<IDashboardComponent> selectAllDashboardComponents()
Finds all DashboardComponent

Specified by:
selectAllDashboardComponents in interface IDashboardDAO
Returns:
all DashboardComponent

selectMaxOrder

public int selectMaxOrder()
Returns the max order value, for all columns

Specified by:
selectMaxOrder in interface IDashboardDAO
Returns:
the max order

selectMaxOrder

public int selectMaxOrder(int nColumn)
Returns the max order value, for the given column

Specified by:
selectMaxOrder in interface IDashboardDAO
Parameters:
nColumn - the column
Returns:
the max order

selectDashboardComponents

public List<IDashboardComponent> selectDashboardComponents(DashboardFilter filter)
Finds all dashboard components matching filter

Specified by:
selectDashboardComponents in interface IDashboardDAO
Parameters:
filter - the filter
Returns:
all dashboard components matching filter

store

public void store(IDashboardComponent dashboardComponent)
Update the dashboardComponent in the table

Specified by:
store in interface IDashboardDAO
Parameters:
dashboardComponent - instance of the IDashboardComponent object to update

selectColumns

public List<Integer> selectColumns()
Returns the columns list

Specified by:
selectColumns in interface IDashboardDAO
Returns:
the columns list


Copyright © 2014 Mairie de Paris. All Rights Reserved.