Skip to content
Snippets Groups Projects

Renaming Refactor

30 files
+ 418
417
Compare changes
  • Side-by-side
  • Inline

Files

@@ -184,7 +184,7 @@ public class CourseEditionRepository {
* @param courseId the id of the course to look for
* @return whether a course with the given id exists
*/
public boolean isCourse(final int courseId) {
public boolean exists(final int courseId) {
final Object[] arguments = {courseId };
final int[] argumentTypes = {Types.INTEGER };
return jdbcDaoImpl.count(GET_COURSE_ID, arguments, argumentTypes) > 0;
@@ -196,7 +196,7 @@ public class CourseEditionRepository {
* @param courseCode the course code to look for
* @return whether there is a course with the given course code
*/
public boolean isCourse(final String courseCode) {
public boolean exists(final String courseCode) {
final Object[] arguments = {courseCode };
final int[] argumentTypes = {Types.VARCHAR };
return jdbcDaoImpl.count(GET_COURSE_CODE, arguments, argumentTypes) > 0;
Loading