Package org.exoplatform.leadcapture.dao
Class LeadDAO
- java.lang.Object
-
- org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<LeadEntity,Long>
-
- org.exoplatform.leadcapture.dao.LeadDAO
-
- All Implemented Interfaces:
org.exoplatform.commons.api.persistence.GenericDAO<LeadEntity,Long>
public class LeadDAO extends org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<LeadEntity,Long>
-
-
Constructor Summary
Constructors Constructor Description LeadDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcountLeads(String search, String status, String owner, String captureMethod, String from, String to, String zone, int min, int max, Boolean notassigned)LeadEntitygetLeadByMail(String mail)LeadEntitygetLeadByTask(Long taskId)List<LeadEntity>getLeads(String search, String status, String owner, String captureMethod, String from, String to, String zone, int min, int max, Boolean notassigned, int offset, int limit, String sortBy, boolean sortDesc)List<LeadEntity>getLeadsByStatus(String status)
-
-
-
Method Detail
-
getLeads
public List<LeadEntity> getLeads(String search, String status, String owner, String captureMethod, String from, String to, String zone, int min, int max, Boolean notassigned, int offset, int limit, String sortBy, boolean sortDesc)
-
countLeads
public long countLeads(String search, String status, String owner, String captureMethod, String from, String to, String zone, int min, int max, Boolean notassigned)
-
getLeadByMail
public LeadEntity getLeadByMail(String mail)
-
getLeadsByStatus
public List<LeadEntity> getLeadsByStatus(String status)
-
getLeadByTask
public LeadEntity getLeadByTask(Long taskId)
-
-