hblastrecorddetdao.h 617 B

123456789101112131415161718192021222324
  1. #ifndef HBLASTRECORDDETDAO_H
  2. #define HBLASTRECORDDETDAO_H
  3. #include <QDebug>
  4. #include <QSqlDatabase>
  5. #include <QSqlError>
  6. #include <QSqlQuery>
  7. #include "HBlastRecordDet.h"
  8. class HBlastRecordDetDao {
  9. public:
  10. HBlastRecordDetDao(QSqlDatabase db);
  11. HBlastRecordDet getById(qint64 id);
  12. bool updateHBlastRecordDet(const HBlastRecordDet &recordDet);
  13. bool addHBlastRecordDet(const HBlastRecordDet &recordDet);
  14. private:
  15. QSqlDatabase database;
  16. // 将QSqlRecord转换为HProject对象
  17. // QSharedPointer<HProject> recordToProject(const QSqlRecord &record);
  18. };
  19. #endif // HBLASTRECORDDETDAO_H