SAS/CourseDAO.h

59 lines
1.2 KiB
C
Raw Permalink Normal View History

/*
* <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>
#include"Course.h"
#include"BaseDAO.h"
2022-07-03 18:22:02 +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);
/*
* ɾ<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);
/*
* <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);
/*
* <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);
/*
* <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);
/*
* <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