Interface IAppointmentDao

    • 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 IEffectiveAppointmentStatusProvidingList<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. When null 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. When null or empty, no restriction is applied.
        Returns:
        The appointment with the given UUID.