mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-10-14 04:13:15 -04:00
Added serverDatabase library
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
// ======================================================================
|
||||
//
|
||||
// TaskSetBiography.cpp
|
||||
// copyright (c) 2001 Sony Online Entertainment
|
||||
//
|
||||
// ======================================================================
|
||||
|
||||
#include "serverDatabase/FirstServerDatabase.h"
|
||||
#include "serverDatabase/TaskSetBiography.h"
|
||||
|
||||
#include "serverDatabase/SetBiographyQuery.h"
|
||||
#include "sharedDatabaseInterface/DbSession.h"
|
||||
|
||||
// ======================================================================
|
||||
|
||||
TaskSetBiography::TaskSetBiography(const NetworkId &owner, const Unicode::String &bio) :
|
||||
m_owner(owner),
|
||||
m_bio(new Unicode::String(bio))
|
||||
{
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
TaskSetBiography::~TaskSetBiography()
|
||||
{
|
||||
delete m_bio;
|
||||
m_bio=NULL;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
bool TaskSetBiography::process(DB::Session *session)
|
||||
{
|
||||
NOT_NULL(m_bio);
|
||||
DBQuery::SetBiographyQuery qry(m_owner, *m_bio);
|
||||
bool rval = session->exec(&qry);
|
||||
qry.done();
|
||||
return rval;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
void TaskSetBiography::onComplete()
|
||||
{
|
||||
}
|
||||
|
||||
// ======================================================================
|
||||
Reference in New Issue
Block a user