oasys::SQLQuery Class Reference

#include <SQLSerialize.h>

Inheritance diagram for oasys::SQLQuery:

oasys::SerializeAction oasys::Serialize oasys::SQLInsert oasys::SQLTableFormat oasys::SQLUpdate List of all members.

Detailed Description

SQLQuery implements common functionality used when building up a SQL query string.

Definition at line 38 of file SQLSerialize.h.

Public Member Functions

 SQLQuery (action_t type, const char *table_name, SQLImplementation *impl, const char *initial_query=0)
 Constructor.
const char * query ()
 Return the constructed query string.
StringBufferquerybuf ()
 Return a reference to the query buffer.

Protected Attributes

const char * table_name_
SQLImplementationsql_impl_
StringBuffer query_


Constructor & Destructor Documentation

oasys::SQLQuery::SQLQuery ( action_t  type,
const char *  table_name,
SQLImplementation impl,
const char *  initial_query = 0 
)

Constructor.

Definition at line 35 of file SQLSerialize.cc.


Member Function Documentation

const char* oasys::SQLQuery::query (  )  [inline]

Return the constructed query string.

Definition at line 49 of file SQLSerialize.h.

References oasys::StringBuffer::c_str(), and query_.

StringBuffer* oasys::SQLQuery::querybuf (  )  [inline]

Return a reference to the query buffer.

Definition at line 54 of file SQLSerialize.h.

References query_.


Member Data Documentation

const char* oasys::SQLQuery::table_name_ [protected]

Definition at line 57 of file SQLSerialize.h.

Referenced by oasys::SQLTableFormat::begin_action(), oasys::SQLUpdate::begin_action(), and oasys::SQLInsert::begin_action().

SQLImplementation* oasys::SQLQuery::sql_impl_ [protected]

Definition at line 58 of file SQLSerialize.h.

Referenced by oasys::SQLTableFormat::process(), oasys::SQLUpdate::process(), and oasys::SQLInsert::process().

StringBuffer oasys::SQLQuery::query_ [protected]

Definition at line 59 of file SQLSerialize.h.

Referenced by oasys::SQLTableFormat::append(), oasys::SQLTableFormat::begin_action(), oasys::SQLUpdate::begin_action(), oasys::SQLInsert::begin_action(), oasys::SQLTableFormat::end_action(), oasys::SQLUpdate::end_action(), oasys::SQLInsert::end_action(), oasys::SQLUpdate::process(), oasys::SQLInsert::process(), query(), and querybuf().


The documentation for this class was generated from the following files:
Generated on Thu Jun 7 12:54:35 2007 for DTN Reference Implementation by  doxygen 1.5.1