public class AppointmentTemplateDao extends MandantDependentBaseDao<AppointmentTemplate> implements IAppointmentTemplateDao
IAppointmentTemplateDao for reading and writing AppointmentTemplate entities.| Constructor and Description |
|---|
AppointmentTemplateDao()
Creates a new, default appointment template DAO.
|
| Modifier and Type | Method and Description |
|---|---|
String |
findUniqueName(IEntityContext ec,
Mandant client,
String candidate)
Returns a name that is not taken by another
AppointmentTemplate in the given client. |
String |
findUniqueName(IEntityContext ec,
Mandant client,
String candidate,
AppointmentTemplate exclude)
Returns a name that is not taken by another
AppointmentTemplate in the given client. |
List<AppointmentTemplate> |
getAllByClient(IEntityContext ec,
Mandant client)
Finds all available appointment templates of the given client.
|
List<AppointmentSlot> |
getAllSlotsOfTemplates(IEntityContext ec,
List<AppointmentTemplate> templates,
boolean merge)
Finds all available appointment slots of the given templates.
|
AppointmentTemplate |
getByUUID(IEntityContext ec,
Mandant client,
String uuid)
Returns the template with the given UUID
|
AppointmentTemplate |
getByUUID(IEntityContext ec,
Mandant client,
UUID uuid)
Returns the template with the given UUID
|
protected IFCDaoActionHook<AppointmentTemplate> |
getPostActionHook() |
boolean |
isNameExisiting(IEntityContext ec,
Mandant client,
String name)
Returns whether or not the given entity name exists within the given client
|
getEntityRefs, getPreActionHook, readall, bulkDelete, bulkUpdate, cb, checkLockingVersion, cq, create, create, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getTransactionHandler, notifyListener, notifyListener, read, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, update, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEntityRefs, readall, bulkDelete, bulkUpdate, checkLockingVersion, create, create, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getTransactionHandler, read, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, update, updatepublic AppointmentTemplateDao()
public List<AppointmentTemplate> getAllByClient(IEntityContext ec, Mandant client)
IAppointmentTemplateDaogetAllByClient in interface IAppointmentTemplateDaoec - IEntityContext to usepublic AppointmentTemplate getByUUID(IEntityContext ec, Mandant client, String uuid)
IAppointmentTemplateDaogetByUUID in interface IAppointmentTemplateDaoec - IEntityContext to useclient - The client for which to find the template. Please note that different clients may have templates with
the same UUID.uuid - String UUID of the templatepublic AppointmentTemplate getByUUID(IEntityContext ec, Mandant client, UUID uuid)
IAppointmentTemplateDaogetByUUID in interface IAppointmentTemplateDaoec - IEntityContext to useclient - The client for which to find the template. Please note that different clients may have templates with
the same UUID.uuid - UUID UUID of the templatepublic String findUniqueName(IEntityContext ec, Mandant client, String candidate)
IAppointmentTemplateDaoAppointmentTemplate in the given client. An index will be added
to the candidate if necessary.findUniqueName in interface IAppointmentTemplateDaoec - IEntityContext to be usedclient - Mandant for which a unique template name should be generatedcandidate - String appointment template name candidate to be made uniquepublic String findUniqueName(IEntityContext ec, Mandant client, String candidate, AppointmentTemplate exclude)
IAppointmentTemplateDaoAppointmentTemplate in the given client. An index will be added
to the candidate if necessary.findUniqueName in interface IAppointmentTemplateDaoec - IEntityContext to be usedclient - Mandant for which a unique template name should be generatedcandidate - String appointment template name candidate to be made uniqueexclude - AppointmentTemplate entity to exclude from search for unique namepublic boolean isNameExisiting(IEntityContext ec, Mandant client, String name)
IAppointmentTemplateDaoisNameExisiting in interface IAppointmentTemplateDaoec - IEntityContext to be usedclient - Mandant for which to check uniquenessname - String name to checkprotected IFCDaoActionHook<AppointmentTemplate> getPostActionHook()
getPostActionHook in class GenericDao<AppointmentTemplate>public List<AppointmentSlot> getAllSlotsOfTemplates(IEntityContext ec, List<AppointmentTemplate> templates, boolean merge)
IAppointmentTemplateDaogetAllSlotsOfTemplates in interface IAppointmentTemplateDaoec - IEntityContext to usetemplates - Templates to use.merge - Whether to merge overlapping slots.Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.