mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-09-30 15:13:12 -04:00
47 lines
1.2 KiB
C++
Executable File
47 lines
1.2 KiB
C++
Executable File
// ======================================================================
|
|
//
|
|
// TaskFixBadCells.h
|
|
// copyright (c) 2005 Sony Online Entertainment
|
|
//
|
|
// ======================================================================
|
|
|
|
#ifndef INCLUDED_TaskFixBadCells_H
|
|
#define INCLUDED_TaskFixBadCells_H
|
|
|
|
// ======================================================================
|
|
|
|
#include "sharedDatabaseInterface/DbQuery.h"
|
|
#include "sharedDatabaseInterface/DbTaskRequest.h"
|
|
|
|
// ======================================================================
|
|
|
|
/**
|
|
* Fixes cells that have the wrong load_with.
|
|
*/
|
|
class TaskFixBadCells : public DB::TaskRequest
|
|
{
|
|
public:
|
|
virtual bool process (DB::Session *session);
|
|
virtual void onComplete ();
|
|
|
|
private:
|
|
class FixBadCellsQuery : public DB::Query
|
|
{
|
|
public:
|
|
FixBadCellsQuery();
|
|
|
|
virtual void getSQL(std::string &sql);
|
|
virtual bool bindParameters();
|
|
virtual bool bindColumns();
|
|
virtual QueryMode getExecutionMode() const;
|
|
|
|
private:
|
|
FixBadCellsQuery(const FixBadCellsQuery&);
|
|
FixBadCellsQuery& operator=(const FixBadCellsQuery&);
|
|
};
|
|
};
|
|
|
|
// ======================================================================
|
|
|
|
#endif
|