Class ParticipantDAO
java.lang.Object
org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<ParticipantEntity,ParticipantId>
org.exoplatform.webconferencing.dao.ParticipantDAO
- All Implemented Interfaces:
org.exoplatform.commons.api.persistence.GenericDAO<ParticipantEntity,ParticipantId>
public class ParticipantDAO
extends org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<ParticipantEntity,ParticipantId>
Created by The eXo Platform SAS.
- Version:
- $Id: ParticipantDAO.java 00000 Dec 22, 2017 pnedonosko $
- Author:
- Peter Nedonosko
-
Field Summary
Fields inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
modelClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear the storage.intdeleteCallParts(String callId) Deprecated.findCallParts(String callId) Find call participants.intupdateParticipantStateByCallId(String state, String callId) Update Participant state by call idMethods inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
count, create, createAll, delete, deleteAll, deleteAll, find, findAll, getEntityManager, getHibernateDialect, isMSSQLDialect, isOrcaleDialect, update, updateAll
-
Constructor Details
-
ParticipantDAO
public ParticipantDAO()Instantiates a new participant DAO.
-
-
Method Details
-
findCallParts
public List<ParticipantEntity> findCallParts(String callId) throws jakarta.persistence.PersistenceException, IllegalStateException, IllegalArgumentException Find call participants.- Parameters:
callId- the call id- Returns:
- the list
- Throws:
jakarta.persistence.PersistenceException- the persistence exceptionIllegalStateException- the illegal state exceptionIllegalArgumentException- the illegal argument exception
-
deleteCallParts
@Deprecated public int deleteCallParts(String callId) throws jakarta.persistence.PersistenceException, IllegalStateException, IllegalArgumentException Deprecated.Delete call participants.- Parameters:
callId- the call id- Returns:
- the int
- Throws:
jakarta.persistence.PersistenceException- the persistence exceptionIllegalStateException- the illegal state exceptionIllegalArgumentException- the illegal argument exception
-
updateParticipantStateByCallId
Update Participant state by call id- Parameters:
state-- Returns:
- Number of updated participants
-
clear
public void clear()Clear the storage.
-