public class DemandService extends Object
Constructor and Description |
---|
DemandService(IDemandDAO demandDAO,
INotificationDAO notificationDAO)
Constructor
|
DemandService(IDemandDAO demandDAO,
INotificationDAO notificationDAO,
INotificationEventDAO notificationEventDAO)
Constructor
|
DemandService(IDemandDAO demandDAO,
INotificationDAO notificationDAO,
List<IDemandListener> listDemandListener,
List<INotificationListener> listNotificationListener)
Constructor
|
DemandService(IDemandDAO demandDAO,
INotificationDAO notificationDAO,
List<IDemandListener> listDemandListener,
List<INotificationListener> listNotificationListener,
INotificationEventDAO notificationEventDAO)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Demand |
create(Demand demand)
Creates a demand
|
Notification |
create(Notification notification)
Creates a notification
|
NotificationEvent |
create(NotificationEvent notificationEvent)
Creates a notification event
|
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 DemandService(IDemandDAO demandDAO, INotificationDAO notificationDAO, INotificationEventDAO notificationEventDAO)
demandDAO
- the DAO for the demandsnotificationDAO
- the DAO for the notificationspublic DemandService(IDemandDAO demandDAO, INotificationDAO notificationDAO, List<IDemandListener> listDemandListener, List<INotificationListener> listNotificationListener)
demandDAO
- the DAO for the demandsnotificationDAO
- the DAO for the notificationslistDemandListener
- list of IDemandListenerlistNotificationListener
- list of INotificationListenerpublic DemandService(IDemandDAO demandDAO, INotificationDAO notificationDAO, List<IDemandListener> listDemandListener, List<INotificationListener> listNotificationListener, INotificationEventDAO notificationEventDAO)
demandDAO
- the DAO for the demandsnotificationDAO
- the DAO for the notificationslistDemandListener
- list of IDemandListenerlistNotificationListener
- list of INotificationListenerpublic 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 NotificationEvent create(NotificationEvent notificationEvent)
notificationEvent
- public Demand update(Demand demand)
demand
- the demand to updateCopyright © 2021 City of Paris. All rights reserved.