Package dev.getelements.elements.sdk.dao
Interface ScheduleDao
- All Known Implementing Classes:
MongoScheduleDao
public interface ScheduleDao
Provides access to
Schedule
instances within the database.-
Method Summary
Modifier and TypeMethodDescriptionCreates a newSchedule
in the database.void
deleteSchedule
(String scheduleNameOrId) findScheduleByNameOrId
(String scheduleNameOrId) Finds theSchedule
with the supplied name or id.default Schedule
getScheduleByNameOrId
(String scheduleNameOrId) Gets theSchedule
with the supplied name or id.getSchedules
(int offset, int count) getSchedules
(int offset, int count, String search) updateSchedule
(Schedule updatedSchedule)
-
Method Details
-
create
Creates a newSchedule
in the database.- Parameters:
schedule
- the schedule- Returns:
- the
Schedule
as created
-
findScheduleByNameOrId
Finds theSchedule
with the supplied name or id. -
getScheduleByNameOrId
Gets theSchedule
with the supplied name or id.- Parameters:
scheduleNameOrId
-scheduleNameOrId
- the schedule name and id- Returns:
- the
Schedule
, never null - Throws:
ScheduleNotFoundException
-
getSchedules
-
getSchedules
-
updateSchedule
-
deleteSchedule
-