Interface ConvertedSectionCollection
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<ConvertedSection,
,org.bson.types.ObjectId> org.springframework.data.repository.ListCrudRepository<ConvertedSection,
,org.bson.types.ObjectId> org.springframework.data.repository.ListPagingAndSortingRepository<ConvertedSection,
,org.bson.types.ObjectId> org.springframework.data.mongodb.repository.MongoRepository<ConvertedSection,
,org.bson.types.ObjectId> org.springframework.data.repository.PagingAndSortingRepository<ConvertedSection,
,org.bson.types.ObjectId> org.springframework.data.repository.query.QueryByExampleExecutor<ConvertedSection>
,org.springframework.data.repository.Repository<ConvertedSection,
org.bson.types.ObjectId>
@Repository
public interface ConvertedSectionCollection
extends org.springframework.data.mongodb.repository.MongoRepository<ConvertedSection,org.bson.types.ObjectId>
-
Method Summary
Modifier and TypeMethodDescriptionfindByQuarterRangeAndBuildingCode
(String startQuarter, String endQuarter, String buildingCode) findByQuarterRangeAndCourseId
(String startQuarter, String endQuarter, String courseId) findByQuarterRangeAndInstructor
(String startQuarter, String endQuarter, String instructor, String functionCode) findOneByQuarterAndEnrollCode
(String quarter, String enrollCode) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save
Methods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAll
Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAll
Methods inherited from interface org.springframework.data.mongodb.repository.MongoRepository
findAll, findAll, insert, insert
Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAll
Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findOneByQuarterAndEnrollCode
@Query("{\'courseInfo.quarter\': ?0, \'section.enrollCode\': ?1}") Optional<ConvertedSection> findOneByQuarterAndEnrollCode(String quarter, String enrollCode) -
findByQuarterRangeAndCourseId
@Query("{\'courseInfo.quarter\': { $gte: ?0, $lte: ?1 }, \'courseInfo.courseId\': { $regex: ?2 } }") List<ConvertedSection> findByQuarterRangeAndCourseId(String startQuarter, String endQuarter, String courseId) -
findByQuarterRangeAndInstructor
@Query("{\'courseInfo.quarter\': {$gte: ?0, $lte: ?1}, \'section.instructors\': { \'$elemMatch\': { \'instructor\': { $regex: ?2 }, \'functionCode\': { $regex: ?3 }}}}") List<ConvertedSection> findByQuarterRangeAndInstructor(String startQuarter, String endQuarter, String instructor, String functionCode) -
findByQuarterRangeAndBuildingCode
@Query("{\'courseInfo.quarter\': { $gte: ?0, $lte: ?1 }, \'section.timeLocations.building\': { $regex: ?2, $options: \'i\' } }") List<ConvertedSection> findByQuarterRangeAndBuildingCode(String startQuarter, String endQuarter, String buildingCode)
-