fr.paris.lutece.plugins.crm.business.demand
Interface IDemandDAO

All Known Implementing Classes:
DemandDAO

public interface IDemandDAO

IDemandDAO


Method Summary
 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
 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
 

Method Detail

newPrimaryKey

int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generate a new primary key

Parameters:
plugin - the Plugin
Returns:
a new primary key

insert

int insert(Demand demand,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Parameters:
demand - instance
plugin - the Plugin
Returns:
the newly created demand id

store

void store(Demand demand,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Parameters:
demand - the reference of the object
plugin - the Plugin

delete

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

Parameters:
nIdDemand - int identifier of the demand to delete
plugin - the Plugin

load

Demand load(int nIdDemand,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table

Parameters:
nIdDemand - The identifier of the demand
plugin - the Plugin
Returns:
The instance of the object

selectAll

List<Demand> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all demands

Parameters:
plugin - Plugin
Returns:
a list of Demand

selectByFilter

List<Demand> selectByFilter(DemandFilter dFilter,
                            IPaginationProperties paginationProperties,
                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find by filter

Parameters:
dFilter - the filter
paginationProperties - the pagination properties (can be null)
plugin - Plugin
Returns:
a list of Demand

countByFilter

int countByFilter(DemandFilter dFilter,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Count results by filter

Parameters:
dFilter - the filter
plugin - Plugin
Returns:
the number of result


Copyright © 2013 Mairie de Paris. All Rights Reserved.