Class DashboardDAO
- java.lang.Object
-
- fr.paris.lutece.portal.business.dashboard.DashboardDAO
-
- All Implemented Interfaces:
IDashboardDAO
public class DashboardDAO extends Object implements IDashboardDAO
DashboardDAO
-
-
Constructor Summary
Constructors Constructor Description DashboardDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(String strBeanName)Delete a record from the tablevoiddeleteAll()Delete all record from the tablevoidinsert(IDashboardComponent dashboardComponent)Insert a new record in the table.IDashboardComponentload(String strClassName)Load the data of the IndexerAction from the tableList<IDashboardComponent>selectAllDashboardComponents()Finds all DashboardComponentList<Integer>selectColumns()Returns the columns listList<IDashboardComponent>selectDashboardComponents(DashboardFilter filter)Finds all dashboard components matching filterintselectMaxOrder()Returns the max order value, for all columnsintselectMaxOrder(int nColumn)Returns the max order value, for the given columnvoidstore(IDashboardComponent dashboardComponent)Update the dashboardComponent in the table
-
-
-
Method Detail
-
delete
public void delete(String strBeanName)
Delete a record from the table- Specified by:
deletein interfaceIDashboardDAO- Parameters:
strBeanName- The identifier of the dashboard
-
deleteAll
public void deleteAll()
Delete all record from the table- Specified by:
deleteAllin interfaceIDashboardDAO
-
insert
public void insert(IDashboardComponent dashboardComponent)
Insert a new record in the table.- Specified by:
insertin interfaceIDashboardDAO- 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:
loadin interfaceIDashboardDAO- Parameters:
strClassName- The identifier of the action- Returns:
- the instance of the IndexerAction
-
selectAllDashboardComponents
public List<IDashboardComponent> selectAllDashboardComponents()
Finds all DashboardComponent- Specified by:
selectAllDashboardComponentsin interfaceIDashboardDAO- Returns:
- all DashboardComponent
-
selectMaxOrder
public int selectMaxOrder()
Returns the max order value, for all columns- Specified by:
selectMaxOrderin interfaceIDashboardDAO- Returns:
- the max order
-
selectMaxOrder
public int selectMaxOrder(int nColumn)
Returns the max order value, for the given column- Specified by:
selectMaxOrderin interfaceIDashboardDAO- Parameters:
nColumn- the column- Returns:
- the max order
-
selectDashboardComponents
public List<IDashboardComponent> selectDashboardComponents(DashboardFilter filter)
Finds all dashboard components matching filter- Specified by:
selectDashboardComponentsin interfaceIDashboardDAO- Parameters:
filter- the filter- Returns:
- all dashboard components matching filter
-
store
public void store(IDashboardComponent dashboardComponent)
Update the dashboardComponent in the table- Specified by:
storein interfaceIDashboardDAO- Parameters:
dashboardComponent- instance of the IDashboardComponent object to update
-
selectColumns
public List<Integer> selectColumns()
Returns the columns list- Specified by:
selectColumnsin interfaceIDashboardDAO- Returns:
- the columns list
-
-