public final class DbDemandHome extends Object
| Modifier and Type | Method and Description |
|---|---|
static DbDemand |
create(DbDemand demand)
Create an instance of the demand class
|
static List<DbDemand> |
findByCustomer(String strCustomerId)
Select all demands for a given customer
|
static DbDemand |
findByIdAndType(String strDemandId,
String strDemandTypeId)
Find a demand by its ID and Type
|
static DbDemand |
findByPrimaryKey(int nKey)
Returns an instance of a demand whose identifier is specified in parameter
|
static List<DbDemand> |
getDemandsList()
Load the data of all the demand objects and returns them in form of a collection
|
static List<Integer> |
getIdDemandsList()
Load the id of all the demand objects and returns them in form of a collection
|
static void |
remove(int nKey)
Remove the demand whose identifier is specified in parameter
|
static DbDemand |
update(DbDemand demand)
Update of the demand which is specified in parameter
|
public static DbDemand create(DbDemand demand)
demand - The instance of the DbDemand which contains the informations to storepublic static DbDemand update(DbDemand demand)
demand - The instance of the DbDemand which contains the data to storepublic static void remove(int nKey)
nKey - The demand Idpublic static DbDemand findByPrimaryKey(int nKey)
nKey - The demand primary keypublic static DbDemand findByIdAndType(String strDemandId, String strDemandTypeId)
strDemandId - The demand IDstrDemandTypeId - The demand Typepublic static List<DbDemand> findByCustomer(String strCustomerId)
strCustomerId - The customer IDpublic static List<DbDemand> getDemandsList()
Copyright © 2016 City of Paris. All rights reserved.