Package de.xima.fc.dao.impl
Class AppointmentDao
java.lang.Object
de.xima.cmn.dao.AbstractDao<T,Long,IEntityContext>
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<Appointment,
,Long, IEntityContext> IAppointmentDao
,IGenericDao<Appointment>
Implementation of the
IAppointmentDao
for reading and writing Appointment
entities.- Since:
- 6.5.0
- Author:
- XIMA MEDIA GmbH
-
Field Summary
Fields inherited from class de.xima.cmn.dao.AbstractDao
entityClass, LOG
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
countBy
(IEntityContext ec, IAppointmentQueryParams params) Returns the number of all appointments that match the given query params.getAllBy
(IEntityContext ec, IAppointmentQueryParams params) Returns all appointments that match the given query params.<View extends IEffectiveAppointmentStatusProviding>
List<View>getAttributesBy
(IEntityContext ec, IAppointmentQueryParams params, Class<View> viewClass) Returns all appointments that match the given query params.getByUUID
(IEntityContext ec, String uuid) Finds the appointment with the given UUID.getByUUID
(IEntityContext ec, UUID uuid) Finds the appointment with the given UUID.protected IFCDaoActionHook<Appointment>
Methods inherited from class de.xima.fc.dao.impl.GenericDao
getEntityRefs, getPreActionHook, read
Methods inherited from class de.xima.cmn.dao.AbstractDao
all, bulkDelete, bulkUpdate, cb, checkLockingVersion, cq, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getSingleAttributes, getSingleAttributes, getTransactionHandler, notifyListener, notifyListener, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, update
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
count, findAll, findSingle, getEntityRefs, read
-
Constructor Details
-
AppointmentDao
public AppointmentDao()Creates a new, default appointment DAO.
-
-
Method Details
-
countBy
Description copied from interface:IAppointmentDao
Returns the number of all appointments that match the given query params.- Specified by:
countBy
in interfaceIAppointmentDao
- Parameters:
ec
- Current entity context for accessing the database.params
- Restrictions to apply to the appointments that are included in the count.- Returns:
- The number of appointments matching the query params.
-
getAllBy
Description copied from interface:IAppointmentDao
Returns all appointments that match the given query params.- Specified by:
getAllBy
in interfaceIAppointmentDao
- Parameters:
ec
- Current entity context for accessing the database.params
- Restrictions to apply to the appointments that are returned.- Returns:
- All appointments matching the given query params.
-
getAttributesBy
public <View extends IEffectiveAppointmentStatusProviding> List<View> getAttributesBy(IEntityContext ec, IAppointmentQueryParams params, Class<View> viewClass) Description copied from interface:IAppointmentDao
Returns all appointments that match the given query params.- Specified by:
getAttributesBy
in interfaceIAppointmentDao
- Type Parameters:
View
- Type of the view with the attributes.- Parameters:
ec
- Current entity context for accessing the database.params
- Restrictions to apply to the appointments that are returned.viewClass
- Type of the view with the attributes.- Returns:
- All views for the appointments matching the given query params.
-
getByUUID
Description copied from interface:IAppointmentDao
Finds the appointment with the given UUID.- Specified by:
getByUUID
in interfaceIAppointmentDao
- Parameters:
ec
- Current entity context for accessing the database.uuid
- UUID of an appointment. restriction is applied.- Returns:
- The appointment with the given UUID.
-
getByUUID
Description copied from interface:IAppointmentDao
Finds the appointment with the given UUID.- Specified by:
getByUUID
in interfaceIAppointmentDao
- Parameters:
ec
- Current entity context for accessing the database.uuid
- UUID of an appointment.- Returns:
- The appointment with the given UUID.
-
getPostActionHook
- Overrides:
getPostActionHook
in classGenericDao<Appointment>
-