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 java.lang.Object implements fr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAOThis 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(java.lang.String strDemandId, java.lang.String strDemandTypeId, java.lang.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)java.util.List<java.lang.String>loadAllIds()java.util.Collection<fr.paris.lutece.plugins.grubusiness.business.demand.Demand>loadByCustomerId(java.lang.String strCustomerId)fr.paris.lutece.plugins.grubusiness.business.demand.DemandloadByDemandId(java.lang.String strDemandId)fr.paris.lutece.plugins.grubusiness.business.demand.DemandloadByDemandIdAndTypeIdAndCustomerId(java.lang.String strDemandId, java.lang.String strDemandTypeId, java.lang.String strCustomerId)java.util.Collection<fr.paris.lutece.plugins.grubusiness.business.demand.Demand>loadByFilter(fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter filter)java.util.List<fr.paris.lutece.plugins.grubusiness.business.demand.Demand>loadByIds(java.util.List<java.lang.Integer> listIds)java.util.Collection<fr.paris.lutece.plugins.grubusiness.business.demand.Demand>loadByReference(java.lang.String strReference)java.util.List<java.lang.Integer>loadIdsByCustomerIdAndIdDemandType(java.lang.String strCustomerId, java.lang.String strNotificationType, java.lang.String strIdDemandType)java.util.List<java.lang.Integer>loadIdsByCustomerIdAndIdDemandType(java.lang.String strCustomerId, java.lang.String strNotificationType, java.lang.String strIdDemandType, java.lang.String strDirectionDateOrderBy)java.util.List<java.lang.Integer>loadIdsByFilter(fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter filter)java.util.List<java.lang.Integer>loadIdsByStatus(java.lang.String strCustomerId, java.util.List<java.lang.String> listStatus, java.lang.String strNotificationType, java.lang.String strIdDemandType)voidreassignDemands(java.lang.String strOldCustomerId, java.lang.String strNewCustomerId)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 java.util.Collection<fr.paris.lutece.plugins.grubusiness.business.demand.Demand> loadByCustomerId(java.lang.String strCustomerId)
- Specified by:
loadByCustomerIdin interfacefr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
-
loadByIds
public java.util.List<fr.paris.lutece.plugins.grubusiness.business.demand.Demand> loadByIds(java.util.List<java.lang.Integer> listIds)
- Specified by:
loadByIdsin interfacefr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
-
loadByReference
public java.util.Collection<fr.paris.lutece.plugins.grubusiness.business.demand.Demand> loadByReference(java.lang.String strReference)
- Specified by:
loadByReferencein interfacefr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
-
loadByFilter
public java.util.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 java.util.List<java.lang.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
-
reassignDemands
public void reassignDemands(java.lang.String strOldCustomerId, java.lang.String strNewCustomerId)- Specified by:
reassignDemandsin interfacefr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
-
delete
public void delete(java.lang.String strDemandId, java.lang.String strDemandTypeId, java.lang.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 java.util.List<java.lang.String> loadAllIds()
- Specified by:
loadAllIdsin interfacefr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
-
loadByDemandId
public fr.paris.lutece.plugins.grubusiness.business.demand.Demand loadByDemandId(java.lang.String strDemandId)
- Specified by:
loadByDemandIdin interfacefr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
-
loadByDemandIdAndTypeIdAndCustomerId
public fr.paris.lutece.plugins.grubusiness.business.demand.Demand loadByDemandIdAndTypeIdAndCustomerId(java.lang.String strDemandId, java.lang.String strDemandTypeId, java.lang.String strCustomerId)- Specified by:
loadByDemandIdAndTypeIdAndCustomerIdin interfacefr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
-
loadIdsByCustomerIdAndIdDemandType
public java.util.List<java.lang.Integer> loadIdsByCustomerIdAndIdDemandType(java.lang.String strCustomerId, java.lang.String strNotificationType, java.lang.String strIdDemandType)- Specified by:
loadIdsByCustomerIdAndIdDemandTypein interfacefr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
-
loadIdsByCustomerIdAndIdDemandType
public java.util.List<java.lang.Integer> loadIdsByCustomerIdAndIdDemandType(java.lang.String strCustomerId, java.lang.String strNotificationType, java.lang.String strIdDemandType, java.lang.String strDirectionDateOrderBy)- Specified by:
loadIdsByCustomerIdAndIdDemandTypein interfacefr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
-
loadIdsByStatus
public java.util.List<java.lang.Integer> loadIdsByStatus(java.lang.String strCustomerId, java.util.List<java.lang.String> listStatus, java.lang.String strNotificationType, java.lang.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
-
-