public class DemandDAO extends Object implements IDemandDAO
Constructor and Description |
---|
DemandDAO() |
Modifier and Type | Method and Description |
---|---|
int |
countByFilter(DemandFilter dFilter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Count results by filter
|
void |
delete(int nIdDemand,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
int |
insert(Demand demand,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
Demand |
load(int nIdDemand,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
Demand |
loadByRemoteKey(String strRemoteId,
int nIdDemandType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load demand by Remote Id and id demand
|
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generate a new primary key
|
List<Demand> |
selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all demands
|
List<Demand> |
selectByFilter(DemandFilter dFilter,
IPaginationProperties paginationProperties,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find by filter
|
void |
store(Demand demand,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
newPrimaryKey
in interface IDemandDAO
plugin
- the Plugin
public int insert(Demand demand, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface IDemandDAO
demand
- instanceplugin
- the Pluginpublic Demand load(int nIdDemand, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface IDemandDAO
nIdDemand
- The identifier of the demandplugin
- the Pluginpublic Demand loadByRemoteKey(String strRemoteId, int nIdDemandType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadByRemoteKey
in interface IDemandDAO
strRemoteId
- the remote IdnIdDemandType
- the Id demand typeplugin
- the pluginpublic void store(Demand demand, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface IDemandDAO
demand
- the reference of the objectplugin
- the Pluginpublic void delete(int nIdDemand, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface IDemandDAO
nIdDemand
- int identifier of the demand to deleteplugin
- the Pluginpublic List<Demand> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAll
in interface IDemandDAO
plugin
- Plugin
Demand
public List<Demand> selectByFilter(DemandFilter dFilter, IPaginationProperties paginationProperties, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectByFilter
in interface IDemandDAO
dFilter
- the filterpaginationProperties
- the pagination properties (can be null)plugin
- Plugin
Demand
public int countByFilter(DemandFilter dFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
countByFilter
in interface IDemandDAO
dFilter
- the filterplugin
- Plugin
Copyright © 2019 City of Paris. All rights reserved.