hblastrecorddetdao.h 610 B

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