Package org.exoplatform.agenda.dao
Class CalendarDAO
- java.lang.Object
-
- org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<CalendarEntity,Long>
-
- org.exoplatform.agenda.dao.CalendarDAO
-
- All Implemented Interfaces:
org.exoplatform.commons.api.persistence.GenericDAO<CalendarEntity,Long>
public class CalendarDAO extends org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<CalendarEntity,Long>
-
-
Constructor Summary
Constructors Constructor Description CalendarDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcountCalendarsByOwnerIds(Long... ownerIds)CalendarEntitycreate(CalendarEntity entity)voidcreateAll(List<CalendarEntity> entities)voiddelete(CalendarEntity entity)voiddeleteAll()voiddeleteAll(List<CalendarEntity> entities)List<Long>getCalendarIdsByOwnerIds(int offset, int limit, Long... ownerIds)CalendarEntityupdate(CalendarEntity entity)voidupdateAll(List<CalendarEntity> entities)
-
-
-
Method Detail
-
delete
public void delete(CalendarEntity entity)
- Specified by:
deletein interfaceorg.exoplatform.commons.api.persistence.GenericDAO<CalendarEntity,Long>- Overrides:
deletein classorg.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<CalendarEntity,Long>
-
create
public CalendarEntity create(CalendarEntity entity)
- Specified by:
createin interfaceorg.exoplatform.commons.api.persistence.GenericDAO<CalendarEntity,Long>- Overrides:
createin classorg.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<CalendarEntity,Long>
-
update
public CalendarEntity update(CalendarEntity entity)
- Specified by:
updatein interfaceorg.exoplatform.commons.api.persistence.GenericDAO<CalendarEntity,Long>- Overrides:
updatein classorg.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<CalendarEntity,Long>
-
getCalendarIdsByOwnerIds
public List<Long> getCalendarIdsByOwnerIds(int offset, int limit, Long... ownerIds)
-
countCalendarsByOwnerIds
public int countCalendarsByOwnerIds(Long... ownerIds)
-
deleteAll
public void deleteAll()
- Specified by:
deleteAllin interfaceorg.exoplatform.commons.api.persistence.GenericDAO<CalendarEntity,Long>- Overrides:
deleteAllin classorg.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<CalendarEntity,Long>
-
deleteAll
public void deleteAll(List<CalendarEntity> entities)
- Specified by:
deleteAllin interfaceorg.exoplatform.commons.api.persistence.GenericDAO<CalendarEntity,Long>- Overrides:
deleteAllin classorg.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<CalendarEntity,Long>
-
createAll
public void createAll(List<CalendarEntity> entities)
- Specified by:
createAllin interfaceorg.exoplatform.commons.api.persistence.GenericDAO<CalendarEntity,Long>- Overrides:
createAllin classorg.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<CalendarEntity,Long>
-
updateAll
public void updateAll(List<CalendarEntity> entities)
- Specified by:
updateAllin interfaceorg.exoplatform.commons.api.persistence.GenericDAO<CalendarEntity,Long>- Overrides:
updateAllin classorg.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<CalendarEntity,Long>
-
-