Rosetta 3.4
Public Member Functions | Protected Member Functions | Protected Attributes
protocols::wum::DatabaseEntryWorkUnit Class Reference

#include <DatabaseEntryWorkUnit.hh>

Inheritance diagram for protocols::wum::DatabaseEntryWorkUnit:
Inheritance graph
[legend]
Collaboration diagram for protocols::wum::DatabaseEntryWorkUnit:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DatabaseEntryWorkUnit (utility::sql_database::sessionOP db_session)
 DatabaseEntryWorkUnit (std::map< std::string, std::string > row_map)
virtual ~DatabaseEntryWorkUnit ()
virtual
protocols::wum::WorkUnitBaseOP 
clone () const
std::string result_query_string ()
 Accessor for database query string.

Protected Member Functions

virtual void serialize ()
 Serialize the row_map_.
virtual void deserialize ()
 Deserialize the row_map_.

Protected Attributes

utility::sql_database::sessionOP db_session_
 The database connection.
std::map< std::string,
std::string > 
row_map_
 map that represents a database row - keys are columns, values are values
std::string result_query_string_
 A string that stores the database query you want to run when finished with the work unit.

Constructor & Destructor Documentation

protocols::wum::DatabaseEntryWorkUnit::DatabaseEntryWorkUnit ( utility::sql_database::sessionOP  db_session)

Referenced by clone().

protocols::wum::DatabaseEntryWorkUnit::DatabaseEntryWorkUnit ( std::map< std::string, std::string >  row_map)
virtual protocols::wum::DatabaseEntryWorkUnit::~DatabaseEntryWorkUnit ( ) [inline, virtual]

Member Function Documentation

virtual protocols::wum::WorkUnitBaseOP protocols::wum::DatabaseEntryWorkUnit::clone ( ) const [inline, virtual]

Reimplemented from protocols::wum::WorkUnitBase.

References DatabaseEntryWorkUnit().

void protocols::wum::DatabaseEntryWorkUnit::deserialize ( ) [protected, virtual]
std::string protocols::wum::DatabaseEntryWorkUnit::result_query_string ( ) [inline]

Accessor for database query string.

References result_query_string_.

Referenced by protocols::wum::DatabaseQueryWorkUnitManager< T >::process_inbound_wus().

void protocols::wum::DatabaseEntryWorkUnit::serialize ( ) [protected, virtual]

Member Data Documentation

utility::sql_database::sessionOP protocols::wum::DatabaseEntryWorkUnit::db_session_ [protected]

The database connection.

A string that stores the database query you want to run when finished with the work unit.

Referenced by deserialize(), result_query_string(), and serialize().

std::map<std::string,std::string> protocols::wum::DatabaseEntryWorkUnit::row_map_ [protected]

map that represents a database row - keys are columns, values are values

Referenced by deserialize(), and serialize().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines