fr.paris.lutece.plugins.crm.business.demand
Class DemandHome

java.lang.Object
  extended by fr.paris.lutece.plugins.crm.business.demand.DemandHome

public final class DemandHome
extends Object

DemandHome


Method Summary
static int countByFilter(DemandFilter dFilter)
          Count results by filter
static int create(Demand demand)
          Insert a new record in the table.
static List<Demand> findAll()
          Find all demands
static List<Demand> findByFilter(DemandFilter dFilter)
          Find by filter
static List<Demand> findByFilter(DemandFilter dFilter, IPaginationProperties paginationProperties)
          Find by filter with pagination properties
static Demand findByPrimaryKey(int nIdDemand)
          Load the data from the table
static void remove(int nIdDemand)
          Delete a record from the table
static void update(Demand demand)
          Update the record in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static int create(Demand demand)
Insert a new record in the table.

Parameters:
demand - instance of the Demand object to insert
Returns:
the newly created demand id

update

public static void update(Demand demand)
Update the record in the table

Parameters:
demand - the reference of the Demand

remove

public static void remove(int nIdDemand)
Delete a record from the table

Parameters:
nIdDemand - int identifier of the demand to delete

findByPrimaryKey

public static Demand findByPrimaryKey(int nIdDemand)
Load the data from the table

Parameters:
nIdDemand - The identifier of the demand
Returns:
The instance of the Demand

findAll

public static List<Demand> findAll()
Find all demands

Returns:
a list of Demand

findByFilter

public static List<Demand> findByFilter(DemandFilter dFilter)
Find by filter

Parameters:
dFilter - the filter
Returns:
a list of Demand

findByFilter

public static List<Demand> findByFilter(DemandFilter dFilter,
                                        IPaginationProperties paginationProperties)
Find by filter with pagination properties

Parameters:
dFilter - the filter
paginationProperties - the pagination properties
Returns:
a list of Demand

countByFilter

public static int countByFilter(DemandFilter dFilter)
Count results by filter

Parameters:
dFilter - the filter
Returns:
the number of results


Copyright © 2013 Mairie de Paris. All Rights Reserved.