Package de.xima.fc.dao.impl
Class AppointmentDao
- java.lang.Object
-
- de.xima.cmn.dao.AbstractDao<T,Long,IEntityContext>
-
- de.xima.fc.dao.impl.GenericDao<Appointment>
-
- de.xima.fc.dao.impl.AppointmentDao
-
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<Appointment,Long,IEntityContext>
,IAppointmentDao
,IGenericDao<Appointment>
public class AppointmentDao extends GenericDao<Appointment> implements IAppointmentDao
Implementation of theIAppointmentDao
for reading and writingAppointment
entities.- Since:
- 6.5.0
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description AppointmentDao()
Creates a new, default appointment DAO.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
countBy(IEntityContext ec, IAppointmentQueryParams params)
Returns the number of all appointments that match the given query params.List<Appointment>
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.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.protected IFCDaoActionHook<Appointment>
getPostActionHook()
-
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
-
-
-
-
Method Detail
-
countBy
public int countBy(IEntityContext ec, IAppointmentQueryParams params)
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
public List<Appointment> getAllBy(IEntityContext ec, IAppointmentQueryParams params)
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
public Appointment getByUUID(IEntityContext ec, String uuid)
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
public Appointment getByUUID(IEntityContext ec, UUID uuid)
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
protected IFCDaoActionHook<Appointment> getPostActionHook()
- Overrides:
getPostActionHook
in classGenericDao<Appointment>
-
-