Class DemandHome
- java.lang.Object
-
- fr.paris.lutece.plugins.crm.business.demand.DemandHome
-
public final class DemandHome extends Object
DemandHome
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intcountByFilter(DemandFilter dFilter)Count results by filterstatic intcreate(Demand demand)Insert a new record in the table.static List<Demand>findAll()Find all demandsstatic List<Demand>findByFilter(DemandFilter dFilter)Find by filterstatic List<Demand>findByFilter(DemandFilter dFilter, IPaginationProperties paginationProperties)Find by filter with pagination propertiesstatic DemandfindByPrimaryKey(int nIdDemand)Load the data from the tablestatic DemandfindByRemoteKey(String strRemoteId, int nIdDemandType)Load the data from the tablestatic voidremove(int nIdDemand)Delete a record from the tablestatic voidupdate(Demand demand)Update the record in the table
-
-
-
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
-
findByRemoteKey
public static Demand findByRemoteKey(String strRemoteId, int nIdDemandType)
Load the data from the table- Parameters:
nIdDemand- The identifier of the demand- Returns:
- The instance of the 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 filterpaginationProperties- 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
-
-