Package de.xima.fc.dao.interfaces
Interface IAppointmentDao
-
- All Superinterfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<Appointment,Long,IEntityContext>
,IGenericDao<Appointment>
- All Known Implementing Classes:
AppointmentDao
public interface IAppointmentDao extends IGenericDao<Appointment>
DAO for reading and writingAppointment
entities.- Since:
- 6.5.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
countBy(IEntityContext ec, IAppointmentQueryParams queryParams)
Returns the number of all appointments that match the given query params.List<Appointment>
getAllBy(IEntityContext ec, IAppointmentQueryParams queryParams)
Returns all appointments that match the given query params.<View extends IEffectiveAppointmentStatusProviding>
List<View>getAttributesBy(IEntityContext ec, IAppointmentQueryParams queryParams, Class<View> viewType)
Returns all appointments that match the given query params.Appointment
getByUUID(IEntityContext ec, String uuid)
Finds the appointment with the given UUID.Appointment
getByUUID(IEntityContext ec, UUID uuid)
Finds the appointment with the given UUID.-
Methods inherited from interface de.xima.cmn.dao.interfaces.IAbstractDao
all, bulkDelete, bulkUpdate, checkLockingVersion, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getSingleAttributes, getSingleAttributes, getTransactionHandler, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, update
-
Methods inherited from interface de.xima.fc.dao.interfaces.IGenericDao
getEntityRefs, read
-
-
-
-
Method Detail
-
countBy
int countBy(IEntityContext ec, IAppointmentQueryParams queryParams)
Returns the number of all appointments that match the given query params.- Parameters:
ec
- Current entity context for accessing the database.queryParams
- Restrictions to apply to the appointments that are included in the count.- Returns:
- The number of appointments matching the query params.
-
getAllBy
List<Appointment> getAllBy(IEntityContext ec, IAppointmentQueryParams queryParams)
Returns all appointments that match the given query params.- Parameters:
ec
- Current entity context for accessing the database.queryParams
- Restrictions to apply to the appointments that are returned.- Returns:
- All appointments matching the given query params.
-
getAttributesBy
<View extends IEffectiveAppointmentStatusProviding> List<View> getAttributesBy(IEntityContext ec, IAppointmentQueryParams queryParams, Class<View> viewType)
Returns all appointments that match the given query params.- Type Parameters:
View
- Type of the view with the attributes.- Parameters:
ec
- Current entity context for accessing the database.queryParams
- Restrictions to apply to the appointments that are returned.viewType
- Type of the view with the attributes.- Returns:
- All views for the appointments matching the given query params.
-
getByUUID
Appointment getByUUID(IEntityContext ec, String uuid)
Finds the appointment with the given UUID.- Parameters:
ec
- Current entity context for accessing the database.uuid
- UUID of an appointment.status
- A list of status to which to restrict the returned appointments. Whennull
or empty, no restriction is applied.- Returns:
- The appointment with the given UUID.
-
getByUUID
Appointment getByUUID(IEntityContext ec, UUID uuid)
Finds the appointment with the given UUID.- Parameters:
ec
- Current entity context for accessing the database.uuid
- UUID of an appointment.status
- A list of status to which to restrict the returned appointments. Whennull
or empty, no restriction is applied.- Returns:
- The appointment with the given UUID.
-
-