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 Summary
Constructors -
Method Summary
Modifier 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.openmeetings.db.dao.IDataProviderDao
get
-
Constructor Details
-
AppointmentDao
public AppointmentDao()
-
-
Method Details
-
get
Description copied from interface:IDataProviderDaoGet an instance of anIDataProviderDao- Specified by:
getin interfaceIDataProviderDao<Appointment>- Parameters:
id- - id of instance to retrieve- Returns:
- instance with the id gived
-
getAny
-
get
-
update
Description copied from interface:IDataProviderDaoUpdate an instance ofIDataProviderDao- Specified by:
updatein interfaceIDataProviderDao<Appointment>- Parameters:
a- - entity to be updateduserId- - user performed update- Returns:
- - updated entity
-
update
-
delete
Description copied from interface:IDataProviderDaoDelete an instance ofIDataProviderDao- Specified by:
deletein interfaceIDataProviderDao<Appointment>- Parameters:
a- - entity to be deleteduserId- - user performed delete
-
getInRange
-
getInRange
-
getNext
-
searchByTitle
-
getByRoom
-
getByRoom
-
getHrefsbyCalendar
Returns 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
-
getbyCalendar
Returns the Appointments related to the Calendar ID specified.- Parameters:
calId- Calendar ID of the calendar, to which the appointment is associated- Returns:
ListofAppointment
-
deletebyCalendar
Bulk 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()
-
get
Description copied from interface:IDataProviderDaoGet a list of instances ofIDataProviderDao- Specified by:
getin interfaceIDataProviderDao<Appointment>- Parameters:
start- - the start to range to retrievecount- - maximum instance count to retrieve- Returns:
- list of instances in the range specified
-
get
public 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 interfaceIDataProviderDao<Appointment>- Parameters:
search- - string search criteria to filter entitiesstart- - the start to range to retrievecount- - maximum instance count to retrieveorder- - column and sort order- Returns:
- list of instances in the range specified
-
count
public long count()Description copied from interface:IDataProviderDaoCount the number of instances ofIDataProviderDao- Specified by:
countin interfaceIDataProviderDao<Appointment>- Returns:
- count of instances
-
count
Description copied from interface:IDataProviderDaoCount the number of instances ofIDataProviderDao- Specified by:
countin interfaceIDataProviderDao<Appointment>- Parameters:
search- - string search criteria to filter entities- Returns:
- count of instances satisfying given search criteria
-