Class MongoScheduleDao
java.lang.Object
dev.getelements.elements.dao.mongo.mission.MongoScheduleDao
- All Implemented Interfaces:
ScheduleDao
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a newSchedule
in the database.void
deleteSchedule
(String scheduleNameOrId) findMongoScheduleByNameOrId
(String scheduleNameOrId) findScheduleByNameOrId
(String scheduleNameOrId) Finds theSchedule
with the supplied name or id.dev.morphia.Datastore
dev.morphia.query.Query
<MongoSchedule> getScheduleQuery
(String scheduleNameOrId) getSchedules
(int offset, int count) getSchedules
(int offset, int count, String search) void
setBooleanQueryParser
(BooleanQueryParser booleanQueryParser) void
setDatastore
(dev.morphia.Datastore datastore) void
setDozerMapper
(MapperRegistry dozerMapperRegistry) void
setMapper
(MapperRegistry mapperRegistry) void
setMongoDBUtils
(MongoDBUtils mongoDBUtils) void
setValidationHelper
(ValidationHelper validationHelper) updateSchedule
(Schedule updatedSchedule) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.getelements.elements.sdk.dao.ScheduleDao
getScheduleByNameOrId
-
Constructor Details
-
MongoScheduleDao
public MongoScheduleDao()
-
-
Method Details
-
create
Description copied from interface:ScheduleDao
Creates a newSchedule
in the database.- Specified by:
create
in interfaceScheduleDao
- Parameters:
schedule
- the schedule- Returns:
- the
Schedule
as created
-
findScheduleByNameOrId
Description copied from interface:ScheduleDao
Finds theSchedule
with the supplied name or id.- Specified by:
findScheduleByNameOrId
in interfaceScheduleDao
- Parameters:
scheduleNameOrId
- the schedule name and id- Returns:
- an
Optional<Schedule>
-
findMongoScheduleByNameOrId
-
getScheduleQuery
-
getSchedules
- Specified by:
getSchedules
in interfaceScheduleDao
-
getSchedules
- Specified by:
getSchedules
in interfaceScheduleDao
-
updateSchedule
Description copied from interface:ScheduleDao
- Specified by:
updateSchedule
in interfaceScheduleDao
- Parameters:
updatedSchedule
- the updatedSchedule
- Returns:
- the
Schedule
as updated
-
deleteSchedule
- Specified by:
deleteSchedule
in interfaceScheduleDao
-
getValidationHelper
-
setValidationHelper
-
getDatastore
public dev.morphia.Datastore getDatastore() -
setDatastore
@Inject public void setDatastore(dev.morphia.Datastore datastore) -
getDozerMapper
-
setDozerMapper
-
getMongoDBUtils
-
setMongoDBUtils
-
getMapper
-
setMapper
-
getBooleanQueryParser
-
setBooleanQueryParser
-