2022-07-04 22:17:38 +08:00
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD>γ̱<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӿ<EFBFBD>
|
|
|
|
|
*/
|
2022-07-03 18:22:02 +08:00
|
|
|
|
#ifndef COURSE_DAO_H
|
|
|
|
|
#define COURSE_DAO_H
|
|
|
|
|
|
|
|
|
|
#import "c:\\Program Files\\Common Files\\System\\ado\\msado15.dll" no_namespace rename("EOF", "EndOfFile")
|
|
|
|
|
|
|
|
|
|
#include<iostream>
|
|
|
|
|
#include<vector>
|
2022-07-06 15:40:27 +08:00
|
|
|
|
#include"Course.h"
|
2022-07-06 16:42:53 +08:00
|
|
|
|
#include"BaseDAO.h"
|
2022-07-03 18:22:02 +08:00
|
|
|
|
|
2022-07-04 22:17:38 +08:00
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӿγ<EFBFBD>
|
|
|
|
|
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* @param course <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӵĿγ̶<EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
2022-07-03 18:22:02 +08:00
|
|
|
|
void addCourse(_ConnectionPtr connection, Course course);
|
2022-07-04 22:17:38 +08:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* ɾ<EFBFBD><EFBFBD><EFBFBD>γ<EFBFBD>
|
|
|
|
|
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* @param id <EFBFBD>γ̺<EFBFBD>
|
|
|
|
|
*/
|
2022-07-03 18:22:02 +08:00
|
|
|
|
void deleteCourse(_ConnectionPtr connection, string id);
|
2022-07-04 22:17:38 +08:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD>Ŀγ<EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* @param id <EFBFBD>γ̺<EFBFBD>
|
|
|
|
|
* @param name <EFBFBD>γ<EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
2022-07-03 18:22:02 +08:00
|
|
|
|
void updateCourseName(_ConnectionPtr connection, string id, string name);
|
2022-07-04 22:17:38 +08:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD><EFBFBD><EFBFBD>ݿγ̺Ż<EFBFBD>ȡ<EFBFBD>γ̶<EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* @param id <EFBFBD>γ̺<EFBFBD>
|
|
|
|
|
* @return Course* course<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ָ<EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
2022-07-04 00:31:52 +08:00
|
|
|
|
Course* getCourseById(_ConnectionPtr connection, string id);
|
2022-07-04 22:17:38 +08:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD><EFBFBD><EFBFBD>ݿγ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȡ<EFBFBD>γ̶<EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* @param name <EFBFBD>γ<EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* @return Course* course<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ָ<EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
2022-07-04 00:31:52 +08:00
|
|
|
|
Course* getCourseByName(_ConnectionPtr connection, string name);
|
2022-07-04 22:17:38 +08:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD><EFBFBD>ȡ<EFBFBD><EFBFBD><EFBFBD>пγ̶<EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* @return vector<Course>* <EFBFBD><EFBFBD>Course<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ΪԪ<EFBFBD>ص<EFBFBD>vector<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ָ<EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
2022-07-04 00:31:52 +08:00
|
|
|
|
std::vector<Course>* getAllCourse(_ConnectionPtr connection);
|
2022-07-03 18:22:02 +08:00
|
|
|
|
|
|
|
|
|
#endif // !COURSE_DAO_H
|