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 newSchedulein the database.voiddeleteSchedule(String scheduleNameOrId) findScheduleByNameOrId(String scheduleNameOrId) Finds theSchedulewith the supplied name or id.default SchedulegetScheduleByNameOrId(String scheduleNameOrId) Gets theSchedulewith 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 newSchedulein the database.- Parameters:
schedule- the schedule- Returns:
- the
Scheduleas created
-
findScheduleByNameOrId
Finds theSchedulewith the supplied name or id. -
getScheduleByNameOrId
Gets theSchedulewith the supplied name or id.- Parameters:
scheduleNameOrId-scheduleNameOrId- the schedule name and id- Returns:
- the
Schedule, never null - Throws:
ScheduleNotFoundException
-
getSchedules
-
getSchedules
-
updateSchedule
-
deleteSchedule
-