public final class SectorDAO extends Object implements ISectorDAO
Constructor and Description |
---|
SectorDAO() |
Modifier and Type | Method and Description |
---|---|
void |
delete(Sector sector,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
insert(Sector sector,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
Sector |
load(int nIdFIeld,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of Sector from the table
|
Collection<Sector> |
selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of sectors
|
int |
selectIdByOrder(int nOrder,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns identifier in a distinct order
|
fr.paris.lutece.util.ReferenceList |
selectLocaleReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin,
Locale locale)
selects the reference list with the i18n string at the top (for front)
|
int |
selectMaxOrder(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the maximum order of sectors
|
int |
selectOrderById(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the order
|
fr.paris.lutece.util.ReferenceList |
selectReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a referenceList of sectors
|
void |
store(Sector sector,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
void |
storeOrder(int nNewOrder,
int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the order of a sector
|
public void insert(Sector sector, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface ISectorDAO
sector
- The Sector objectplugin
- The pluginpublic Sector load(int nIdFIeld, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface ISectorDAO
nIdFIeld
- The identifier of Sectorplugin
- The pluginpublic void delete(Sector sector, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface ISectorDAO
sector
- The sector objectplugin
- The pluginpublic void store(Sector sector, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface ISectorDAO
sector
- The reference of sectorplugin
- The pluginpublic Collection<Sector> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAll
in interface ISectorDAO
plugin
- The pluginpublic fr.paris.lutece.util.ReferenceList selectReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectReferenceList
in interface ISectorDAO
plugin
- The Plugin objectpublic fr.paris.lutece.util.ReferenceList selectLocaleReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin, Locale locale)
selectLocaleReferenceList
in interface ISectorDAO
plugin
- The pluginlocale
- The localepublic void storeOrder(int nNewOrder, int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
storeOrder
in interface ISectorDAO
nNewOrder
- The order of a sectornId
- The id of the sector to updateplugin
- The pluginpublic int selectIdByOrder(int nOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectIdByOrder
in interface ISectorDAO
nOrder
- The order numberplugin
- The pluginpublic int selectOrderById(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectOrderById
in interface ISectorDAO
nId
- the idplugin
- the pluginpublic int selectMaxOrder(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectMaxOrder
in interface ISectorDAO
plugin
- The pluginCopyright © 2019 City of Paris. All rights reserved.