SAS/StudentDAO.h

67 lines
1.5 KiB
C
Raw Permalink Normal View History

/*
* ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӿ<EFBFBD>
*/
2022-07-03 18:22:02 +08:00
#ifndef STUDENT_DAO_H
#define STUDENT_DAO_H
#import "c:\\Program Files\\Common Files\\System\\ado\\msado15.dll" no_namespace rename("EOF", "EndOfFile")
#include<iostream>
#include<vector>
#include"Student.h"
#include"BaseDAO.h"
2022-07-03 18:22:02 +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 student <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӵ<EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*/
2022-07-03 18:22:02 +08:00
void addStudent(_ConnectionPtr connection, Student student);
/*
* ɾ<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 deleteStudent(_ConnectionPtr connection, string id);
/*
* <EFBFBD>޸<EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD>
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* @param id ѧ<EFBFBD><EFBFBD>
* @param stuClass <EFBFBD>°
*/
2022-07-03 18:22:02 +08:00
void updateStudentClass(_ConnectionPtr connection, string id, string stuClass);
/*
* <EFBFBD>޸<EFBFBD>ѧ<EFBFBD><EFBFBD>״̬
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* @param id ѧ<EFBFBD><EFBFBD>
* @param status ѧ<EFBFBD><EFBFBD>״̬<EFBFBD><EFBFBD><EFBFBD>ڶ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD>
*/
2022-07-03 18:22:02 +08:00
void updateStudentStatus(_ConnectionPtr connection, string id, string status);
/*
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD>Ż<EFBFBD>ȡѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* @param id ѧ<EFBFBD><EFBFBD>
* @return Student* student<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ָ<EFBFBD><EFBFBD>
*/
2022-07-04 00:31:52 +08:00
Student* getStudentById(_ConnectionPtr connection, string id);
/*
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><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 vector<Student>* <EFBFBD><EFBFBD>Student<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ΪԪ<EFBFBD>ص<EFBFBD>vector<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ָ<EFBFBD><EFBFBD>
*/
2022-07-04 00:31:52 +08:00
std::vector<Student>* getStudentByName(_ConnectionPtr connection, string name);
/*
* <EFBFBD><EFBFBD>ȡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD>
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* @return vector<Student>* <EFBFBD><EFBFBD>Student<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ΪԪ<EFBFBD>ص<EFBFBD>vector<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ָ<EFBFBD><EFBFBD>
*/
2022-07-04 00:31:52 +08:00
std::vector<Student>* getAllStudent(_ConnectionPtr connection);
2022-07-03 18:22:02 +08:00
#endif // !STUDENT_DAO_H