Module org.apache.openmeetings.db
Class AppointmentDao
java.lang.Object
org.apache.openmeetings.db.dao.calendar.AppointmentDao
- All Implemented Interfaces:
- IDataProviderDao<Appointment>
@Repository
@Transactional
public class AppointmentDao
extends Object
implements IDataProviderDao<Appointment>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionlongcount()Count the number of instances ofIDataProviderDaolongCount the number of instances ofIDataProviderDaovoiddelete(Appointment a, Long userId) Delete an instance ofIDataProviderDaointdeletebyCalendar(Long calId) Bulk Deletes the Appointments related the the calId.get()get(long start, long count) Get a list of instances ofIDataProviderDaoGet an instance of anIDataProviderDaoget(String search, long start, long count, org.apache.wicket.extensions.markup.html.repeater.util.SortParam<String> order) Get a list of instances ofIDataProviderDaogetbyCalendar(Long calId) Returns the Appointments related to the Calendar ID specified.getHrefsbyCalendar(Long calId) Returns the Appointment HREF's belonging to the Calendar Id specified.getInRange(Long userId, Date start, Date end) getInRange(Calendar start, Calendar end) searchByTitle(Long userId, String title) update(Appointment a, Long userId) Update an instance ofIDataProviderDaoupdate(Appointment a, Long userId, boolean sendmails) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.openmeetings.db.dao.IDataProviderDaoget
- 
Constructor Details- 
AppointmentDaopublic AppointmentDao()
 
- 
- 
Method Details- 
getDescription copied from interface:IDataProviderDaoGet an instance of anIDataProviderDao- Specified by:
- getin interface- IDataProviderDao<Appointment>
- Parameters:
- id- - id of instance to retrieve
- Returns:
- instance with the id gived
 
- 
getAny
- 
get
- 
updateDescription copied from interface:IDataProviderDaoUpdate an instance ofIDataProviderDao- Specified by:
- updatein interface- IDataProviderDao<Appointment>
- Parameters:
- a- - entity to be updated
- userId- - user performed update
- Returns:
- - updated entity
 
- 
update
- 
deleteDescription copied from interface:IDataProviderDaoDelete an instance ofIDataProviderDao- Specified by:
- deletein interface- IDataProviderDao<Appointment>
- Parameters:
- a- - entity to be deleted
- userId- - user performed delete
 
- 
getInRange
- 
getInRange
- 
getNext
- 
searchByTitle
- 
getByRoom
- 
getByRoom
- 
getHrefsbyCalendarReturns the Appointment HREF's belonging to the Calendar Id specified.- Parameters:
- calId- Calendar to which the Appointments are related to.
- Returns:
- Listof Appointment HREF's
 
- 
getbyCalendarReturns the Appointments related to the Calendar ID specified.- Parameters:
- calId- Calendar ID of the calendar, to which the appointment is associated
- Returns:
- Listof- Appointment
 
- 
deletebyCalendarBulk Deletes the Appointments related the the calId. Note: Does not automatically, commit, but gets cascaded in the function which calls it. If there is a need to commit during this function, useem.flush()andem.clear()- Parameters:
- calId- Calendar Id of the Calendar Id to which the Appointments belong to.
- Returns:
- Returns -1if the there was an error executing the query, otherwise returns the number of updated rows. as described hereQuery.executeUpdate()
 
- 
getDescription copied from interface:IDataProviderDaoGet a list of instances ofIDataProviderDao- Specified by:
- getin interface- IDataProviderDao<Appointment>
- Parameters:
- start- - the start to range to retrieve
- count- - maximum instance count to retrieve
- Returns:
- list of instances in the range specified
 
- 
getpublic List<Appointment> get(String search, long start, long count, org.apache.wicket.extensions.markup.html.repeater.util.SortParam<String> order) Description copied from interface:IDataProviderDaoGet a list of instances ofIDataProviderDao- Specified by:
- getin interface- IDataProviderDao<Appointment>
- Parameters:
- search- - string search criteria to filter entities
- start- - the start to range to retrieve
- count- - maximum instance count to retrieve
- order- - column and sort order
- Returns:
- list of instances in the range specified
 
- 
countpublic long count()Description copied from interface:IDataProviderDaoCount the number of instances ofIDataProviderDao- Specified by:
- countin interface- IDataProviderDao<Appointment>
- Returns:
- count of instances
 
- 
countDescription copied from interface:IDataProviderDaoCount the number of instances ofIDataProviderDao- Specified by:
- countin interface- IDataProviderDao<Appointment>
- Parameters:
- search- - string search criteria to filter entities
- Returns:
- count of instances satisfying given search criteria
 
 
-