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 newSchedulein the database.voiddeleteSchedule(String scheduleNameOrId) findMongoScheduleByNameOrId(String scheduleNameOrId) findScheduleByNameOrId(String scheduleNameOrId) Finds theSchedulewith the supplied name or id.dev.morphia.Datastoredev.morphia.query.Query<MongoSchedule> getScheduleQuery(String scheduleNameOrId) getSchedules(int offset, int count) getSchedules(int offset, int count, String search) voidsetBooleanQueryParser(BooleanQueryParser booleanQueryParser) voidsetDatastore(dev.morphia.Datastore datastore) voidsetDozerMapper(MapperRegistry dozerMapperRegistry) voidsetMapper(MapperRegistry mapperRegistry) voidsetMongoDBUtils(MongoDBUtils mongoDBUtils) voidsetValidationHelper(ValidationHelper validationHelper) updateSchedule(Schedule updatedSchedule) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.getelements.elements.sdk.dao.ScheduleDao
getScheduleByNameOrId
-
Constructor Details
-
MongoScheduleDao
public MongoScheduleDao()
-
-
Method Details
-
create
Description copied from interface:ScheduleDaoCreates a newSchedulein the database.- Specified by:
createin interfaceScheduleDao- Parameters:
schedule- the schedule- Returns:
- the
Scheduleas created
-
findScheduleByNameOrId
Description copied from interface:ScheduleDaoFinds theSchedulewith the supplied name or id.- Specified by:
findScheduleByNameOrIdin interfaceScheduleDao- Parameters:
scheduleNameOrId- the schedule name and id- Returns:
- an
Optional<Schedule>
-
findMongoScheduleByNameOrId
-
getScheduleQuery
-
getSchedules
- Specified by:
getSchedulesin interfaceScheduleDao
-
getSchedules
- Specified by:
getSchedulesin interfaceScheduleDao
-
updateSchedule
Description copied from interface:ScheduleDao- Specified by:
updateSchedulein interfaceScheduleDao- Parameters:
updatedSchedule- the updatedSchedule- Returns:
- the
Scheduleas updated
-
deleteSchedule
- Specified by:
deleteSchedulein 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
-