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
-
Method Summary
Modifier and TypeMethodDescriptionlong
count()
Count the number of instances ofIDataProviderDao
long
Count the number of instances ofIDataProviderDao
void
delete
(Appointment a, Long userId) Delete an instance ofIDataProviderDao
int
deletebyCalendar
(Long calId) Bulk Deletes the Appointments related the the calId.get()
get
(long start, long count) Get a list of instances ofIDataProviderDao
Get an instance of anIDataProviderDao
get
(String search, long start, long count, org.apache.wicket.extensions.markup.html.repeater.util.SortParam<String> order) Get a list of instances ofIDataProviderDao
getbyCalendar
(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 ofIDataProviderDao
update
(Appointment a, Long userId, boolean sendmails) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.openmeetings.db.dao.IDataProviderDao
get
-
Constructor Details
-
AppointmentDao
public AppointmentDao()
-
-
Method Details
-
get
Description copied from interface:IDataProviderDao
Get an instance of anIDataProviderDao
- Specified by:
get
in interfaceIDataProviderDao<Appointment>
- Parameters:
id
- - id of instance to retrieve- Returns:
- instance with the id gived
-
getAny
-
get
-
update
Description copied from interface:IDataProviderDao
Update an instance ofIDataProviderDao
- Specified by:
update
in interfaceIDataProviderDao<Appointment>
- Parameters:
a
- - entity to be updateduserId
- - user performed update- Returns:
- - updated entity
-
update
-
delete
Description copied from interface:IDataProviderDao
Delete an instance ofIDataProviderDao
- Specified by:
delete
in 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:
List
of 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:
List
ofAppointment
-
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
-1
if the there was an error executing the query, otherwise returns the number of updated rows. as described hereQuery.executeUpdate()
-
get
Description copied from interface:IDataProviderDao
Get a list of instances ofIDataProviderDao
- Specified by:
get
in 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:IDataProviderDao
Get a list of instances ofIDataProviderDao
- Specified by:
get
in 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:IDataProviderDao
Count the number of instances ofIDataProviderDao
- Specified by:
count
in interfaceIDataProviderDao<Appointment>
- Returns:
- count of instances
-
count
Description copied from interface:IDataProviderDao
Count the number of instances ofIDataProviderDao
- Specified by:
count
in interfaceIDataProviderDao<Appointment>
- Parameters:
search
- - string search criteria to filter entities- Returns:
- count of instances satisfying given search criteria
-