Class DemandDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.notificationstore.business.DemandDAO
-
- All Implemented Interfaces:
fr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
public final class DemandDAO extends Object implements fr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
This class provides Data Access methods for Demand objects stored in SQL database
-
-
Constructor Summary
Constructors Constructor Description DemandDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(String strDemandId, String strDemandTypeId, String strCustomerId)voiddeleteByUid(int nUid)fr.paris.lutece.plugins.grubusiness.business.demand.Demandinsert(fr.paris.lutece.plugins.grubusiness.business.demand.Demand demand)fr.paris.lutece.plugins.grubusiness.business.demand.Demandload(int nId)List<String>loadAllIds()Collection<fr.paris.lutece.plugins.grubusiness.business.demand.Demand>loadByCustomerId(String strCustomerId)fr.paris.lutece.plugins.grubusiness.business.demand.DemandloadByDemandId(String strDemandId)fr.paris.lutece.plugins.grubusiness.business.demand.DemandloadByDemandIdAndTypeIdAndCustomerId(String strDemandId, String strDemandTypeId, String strCustomerId)Collection<fr.paris.lutece.plugins.grubusiness.business.demand.Demand>loadByFilter(fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter filter)List<fr.paris.lutece.plugins.grubusiness.business.demand.Demand>loadByIds(List<Integer> listIds)Collection<fr.paris.lutece.plugins.grubusiness.business.demand.Demand>loadByReference(String strReference)List<Integer>loadIdsByCustomerIdAndIdDemandType(String strCustomerId, String strNotificationType, String strIdDemandType)List<Integer>loadIdsByFilter(fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter filter)List<Integer>loadIdsByStatus(String strCustomerId, List<String> listStatus, String strNotificationType, String strIdDemandType)fr.paris.lutece.plugins.grubusiness.business.demand.Demandstore(fr.paris.lutece.plugins.grubusiness.business.demand.Demand demand)voidupdateDemandsStatusId(int nNewStatusId, int nTemporaryStatusId)
-
-
-
Method Detail
-
load
public fr.paris.lutece.plugins.grubusiness.business.demand.Demand load(int nId)
- Specified by:
loadin interfacefr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
-
loadByCustomerId
public Collection<fr.paris.lutece.plugins.grubusiness.business.demand.Demand> loadByCustomerId(String strCustomerId)
- Specified by:
loadByCustomerIdin interfacefr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
-
loadByIds
public List<fr.paris.lutece.plugins.grubusiness.business.demand.Demand> loadByIds(List<Integer> listIds)
- Specified by:
loadByIdsin interfacefr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
-
loadByReference
public Collection<fr.paris.lutece.plugins.grubusiness.business.demand.Demand> loadByReference(String strReference)
- Specified by:
loadByReferencein interfacefr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
-
loadByFilter
public Collection<fr.paris.lutece.plugins.grubusiness.business.demand.Demand> loadByFilter(fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter filter)
- Specified by:
loadByFilterin interfacefr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
-
loadIdsByFilter
public List<Integer> loadIdsByFilter(fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter filter)
- Specified by:
loadIdsByFilterin interfacefr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
-
insert
public fr.paris.lutece.plugins.grubusiness.business.demand.Demand insert(fr.paris.lutece.plugins.grubusiness.business.demand.Demand demand)
- Specified by:
insertin interfacefr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
-
store
public fr.paris.lutece.plugins.grubusiness.business.demand.Demand store(fr.paris.lutece.plugins.grubusiness.business.demand.Demand demand)
- Specified by:
storein interfacefr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
-
delete
public void delete(String strDemandId, String strDemandTypeId, String strCustomerId)
- Specified by:
deletein interfacefr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
-
deleteByUid
public void deleteByUid(int nUid)
- Specified by:
deleteByUidin interfacefr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
-
loadAllIds
public List<String> loadAllIds()
- Specified by:
loadAllIdsin interfacefr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
-
loadByDemandId
public fr.paris.lutece.plugins.grubusiness.business.demand.Demand loadByDemandId(String strDemandId)
- Specified by:
loadByDemandIdin interfacefr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
-
loadByDemandIdAndTypeIdAndCustomerId
public fr.paris.lutece.plugins.grubusiness.business.demand.Demand loadByDemandIdAndTypeIdAndCustomerId(String strDemandId, String strDemandTypeId, String strCustomerId)
- Specified by:
loadByDemandIdAndTypeIdAndCustomerIdin interfacefr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
-
loadIdsByCustomerIdAndIdDemandType
public List<Integer> loadIdsByCustomerIdAndIdDemandType(String strCustomerId, String strNotificationType, String strIdDemandType)
- Specified by:
loadIdsByCustomerIdAndIdDemandTypein interfacefr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
-
loadIdsByStatus
public List<Integer> loadIdsByStatus(String strCustomerId, List<String> listStatus, String strNotificationType, String strIdDemandType)
- Specified by:
loadIdsByStatusin interfacefr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
-
updateDemandsStatusId
public void updateDemandsStatusId(int nNewStatusId, int nTemporaryStatusId)- Specified by:
updateDemandsStatusIdin interfacefr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
-
-