@Repository @Transactional public class AppointmentDao extends Object
| コンストラクタと説明 |
|---|
AppointmentDao() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
delete(Appointment a,
Long userId) |
int |
deletebyCalendar(Long calId)
Bulk Deletes the Appointments related the the calId.
|
List<Appointment> |
get() |
Appointment |
get(Long id) |
Appointment |
getAny(Long id) |
List<Appointment> |
getbyCalendar(Long calId)
Returns the Appointments related to the Calendar ID specified.
|
Appointment |
getByRoom(Long roomId) |
Appointment |
getByRoom(Long userId,
Long roomId) |
List<String> |
getHrefsbyCalendar(Long calId)
Returns the Appointment HREF's belonging to the Calendar Id specified.
|
List<Appointment> |
getInRange(Calendar start,
Calendar end) |
List<Appointment> |
getInRange(Long userId,
Date start,
Date end) |
Appointment |
getNext(Long userId,
Date start) |
List<Appointment> |
searchByTitle(Long userId,
String title) |
Appointment |
update(Appointment a,
Long userId) |
Appointment |
update(Appointment a,
Long userId,
boolean sendmails) |
public Appointment get(Long id)
public Appointment getAny(Long id)
public List<Appointment> get()
public Appointment update(Appointment a, Long userId)
public Appointment update(Appointment a, Long userId, boolean sendmails)
public void delete(Appointment a, Long userId)
public List<Appointment> getInRange(Long userId, Date start, Date end)
public List<Appointment> getInRange(Calendar start, Calendar end)
public Appointment getNext(Long userId, Date start)
public List<Appointment> searchByTitle(Long userId, String title)
public Appointment getByRoom(Long userId, Long roomId)
public Appointment getByRoom(Long roomId)
public List<String> getHrefsbyCalendar(Long calId)
calId - Calendar to which the Appointments are related to.List of Appointment HREF'spublic List<Appointment> getbyCalendar(Long calId)
calId - Calendar ID of the calendar, to which the appointment is associatedList of Appointmentpublic int deletebyCalendar(Long calId)
em.flush() and em.clear()calId - Calendar Id of the Calendar Id to which the Appointments belong to.-1 if the there was an error executing the query,
otherwise returns the number of updated rows.Query#executeUpdate()Copyright © 2012–2017 Apache Software Foundation. All rights reserved.