treqs::ReadingDAO Class Reference

Managing Reading object updates to database. More...

#include <ReadingDAO.h>

Collaboration diagram for treqs::ReadingDAO:
Collaboration graph
[legend]

List of all members.

Public Member Functions

bool first_update (std::string n, FileStatus fs, time_t t, std::string m, long qid, std::string tape, int pos, int cos, unsigned long long int size)
bool update (std::string n, FileStatus fs, time_t t, int tries, std::string m, int e, long qid, std::string tape, int pos)

Static Public Member Functions

static ReadingDAOgetInstance ()

Private Member Functions

 ReadingDAO ()
virtual ~ReadingDAO ()

Static Private Attributes

static LoggerPtr logger
static ReadingDAO_singleton = 0

Detailed Description

Managing Reading object updates to database.


Constructor & Destructor Documentation

treqs::ReadingDAO::ReadingDAO (  )  [private]

Here is the caller graph for this function:

treqs::ReadingDAO::~ReadingDAO (  )  [private, virtual]

Member Function Documentation

bool treqs::ReadingDAO::first_update ( std::string  n,
FileStatus  fs,
time_t  t,
std::string  m,
long  qid,
std::string  tape,
int  pos,
int  cos,
unsigned long long int  size 
)

Updates the status of a set of file requests in the jobs table according to the filename This function is specifically used for inserting metadata also

Parameters:
n the name of the file updated
fs the new status to update
t the time stamp of the state change
m the message to put
qid the identifier of the queue
tape the tape where the file is stored
pos the position on the tape
cos the Class of Service
size the file size in bytes
Returns:
true if one or more rows are updated

Here is the call graph for this function:

Here is the caller graph for this function:

ReadingDAO * treqs::ReadingDAO::getInstance (  )  [static]

Here is the call graph for this function:

Here is the caller graph for this function:

bool treqs::ReadingDAO::update ( std::string  n,
FileStatus  fs,
time_t  t,
int  tries,
std::string  m,
int  e,
long  qid,
std::string  tape,
int  pos 
)

Updates the status of a set of file requests in the jobs table according to the filename

Parameters:
n the name of the file updated
fs the new status to update
t the time stamp of the state change
tries the number of tries for this file
m the message to put
e the error code
qid the queue id
tape the tape where the file is stored
pos the position on the tape
Returns:
true if one or more rows are updated

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

ReadingDAO * treqs::ReadingDAO::_singleton = 0 [static, private]
LoggerPtr treqs::ReadingDAO::logger [static, private]

The documentation for this class was generated from the following files:

Generated on 4 Mar 2010 for TReqS by  doxygen 1.6.1