public final class DemandHome extends Object
Modifier and Type | Method and Description |
---|---|
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 Demand |
findByRemoteKey(String strRemoteId,
int nIdDemandType)
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
|
public static int create(Demand demand)
demand
- instance of the Demand object to insertpublic static void update(Demand demand)
demand
- the reference of the Demandpublic static void remove(int nIdDemand)
nIdDemand
- int identifier of the demand to deletepublic static Demand findByPrimaryKey(int nIdDemand)
nIdDemand
- The identifier of the demandpublic static Demand findByRemoteKey(String strRemoteId, int nIdDemandType)
nIdDemand
- The identifier of the demandpublic static List<Demand> findByFilter(DemandFilter dFilter)
dFilter
- the filterDemand
public static List<Demand> findByFilter(DemandFilter dFilter, IPaginationProperties paginationProperties)
dFilter
- the filterpaginationProperties
- the pagination propertiesDemand
public static int countByFilter(DemandFilter dFilter)
dFilter
- the filterCopyright © 2019 City of Paris. All rights reserved.