public class DemandService extends Object
| Constructor and Description |
|---|
DemandService(IDemandDAO demandDAO,
INotificationDAO notificationDAO)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Demand |
create(Demand demand)
Creates a demand
|
Notification |
create(Notification notification)
Creates a notification
|
Collection<Demand> |
findAllDemands()
Finds all demands in the table
|
Collection<Demand> |
findByCustomerId(String strCustomerId)
Finds demands for the specified customer id
|
Demand |
findByPrimaryKey(String strDemandId,
String strDemandTypeId)
Finds a demand for the specified id and type id
|
Collection<Demand> |
findByReference(String strReference)
Finds demands for the specified reference
|
void |
remove(String strDemandId,
String strDemandTypeId)
Removes a demand with the specified id and type id
|
Demand |
update(Demand demand)
Updates a demand
|
public DemandService(IDemandDAO demandDAO, INotificationDAO notificationDAO)
demandDAO - the DAO for the demandsnotificationDAO - the DAO for the notificationspublic Collection<Demand> findByCustomerId(String strCustomerId)
strCustomerId - the customer idpublic Collection<Demand> findByReference(String strReference)
strReference - the referencepublic Collection<Demand> findAllDemands()
public Demand findByPrimaryKey(String strDemandId, String strDemandTypeId)
strDemandId - the demand idstrDemandTypeId - the demand type idnull otherwisepublic Demand create(Demand demand)
demand - the demand to createpublic Notification create(Notification notification)
notification - the notification to createpublic Demand update(Demand demand)
demand - the demand to updateCopyright © 2017 City of Paris. All rights reserved.