#include <SQLSerialize.h>
Inheritance diagram for oasys::SQLUpdate:
Definition at line 102 of file SQLSerialize.h.
Public Member Functions | |
SQLUpdate (const char *table_name, SQLImplementation *impl) | |
Constructor. | |
virtual void | begin_action () |
Control the initialization done before executing an action. | |
virtual void | end_action () |
Control the cleanup after executing an action. | |
int | action (const SerializableObject *const_object) |
Since update doesn't modify the object, define a variant of action() that operates on a const SerializableObject. | |
void | process (const char *name, u_int32_t *i) |
Process function for a 4 byte integer. | |
void | process (const char *name, u_int16_t *i) |
Process function for a 2 byte integer. | |
void | process (const char *name, u_int8_t *i) |
Process function for a byte. | |
void | process (const char *name, int32_t *i) |
Adaptor functions for signed/unsigned compatibility. | |
void | process (const char *name, int16_t *i) |
Adaptor functions for signed/unsigned compatibility. | |
void | process (const char *name, int8_t *i) |
Adaptor functions for signed/unsigned compatibility. | |
void | process (const char *name, bool *b) |
Process function for a boolean. | |
void | process (const char *name, u_char *bp, size_t len) |
void | process (const char *name, u_char **bp, size_t *lenp, int flags) |
void | process (const char *name, std::string *s) |
Process function for a c++ string. |
oasys::SQLUpdate::SQLUpdate | ( | const char * | table_name, | |
SQLImplementation * | impl | |||
) |
void oasys::SQLUpdate::begin_action | ( | ) | [virtual] |
Control the initialization done before executing an action.
Reimplemented from oasys::SerializeAction.
Definition at line 183 of file SQLSerialize.cc.
References oasys::StringBuffer::appendf(), oasys::SQLQuery::query_, and oasys::SQLQuery::table_name_.
void oasys::SQLUpdate::end_action | ( | ) | [virtual] |
Control the cleanup after executing an action.
Reimplemented from oasys::SerializeAction.
Definition at line 189 of file SQLSerialize.cc.
References oasys::StringBuffer::data(), oasys::StringBuffer::length(), and oasys::SQLQuery::query_.
int oasys::SQLUpdate::action | ( | const SerializableObject * | const_object | ) | [inline] |
Since update doesn't modify the object, define a variant of action() that operates on a const SerializableObject.
Definition at line 116 of file SQLSerialize.h.
References oasys::SerializeAction::action().
void oasys::SQLUpdate::process | ( | const char * | name, | |
u_int32_t * | i | |||
) | [virtual] |
Process function for a 4 byte integer.
Implements oasys::SerializeAction.
Definition at line 197 of file SQLSerialize.cc.
References oasys::StringBuffer::appendf(), and oasys::SQLQuery::query_.
void oasys::SQLUpdate::process | ( | const char * | name, | |
u_int16_t * | i | |||
) | [virtual] |
Process function for a 2 byte integer.
Implements oasys::SerializeAction.
Definition at line 204 of file SQLSerialize.cc.
References oasys::StringBuffer::appendf(), and oasys::SQLQuery::query_.
void oasys::SQLUpdate::process | ( | const char * | name, | |
u_int8_t * | i | |||
) | [virtual] |
Process function for a byte.
Implements oasys::SerializeAction.
Definition at line 211 of file SQLSerialize.cc.
References oasys::StringBuffer::appendf(), and oasys::SQLQuery::query_.
void oasys::SQLUpdate::process | ( | const char * | name, | |
int32_t * | i | |||
) | [virtual] |
Adaptor functions for signed/unsigned compatibility.
Reimplemented from oasys::SerializeAction.
Definition at line 218 of file SQLSerialize.cc.
References oasys::StringBuffer::appendf(), and oasys::SQLQuery::query_.
void oasys::SQLUpdate::process | ( | const char * | name, | |
int16_t * | i | |||
) | [virtual] |
Adaptor functions for signed/unsigned compatibility.
Reimplemented from oasys::SerializeAction.
Definition at line 229 of file SQLSerialize.cc.
References oasys::StringBuffer::appendf(), and oasys::SQLQuery::query_.
void oasys::SQLUpdate::process | ( | const char * | name, | |
int8_t * | i | |||
) | [virtual] |
Adaptor functions for signed/unsigned compatibility.
Reimplemented from oasys::SerializeAction.
Definition at line 236 of file SQLSerialize.cc.
References oasys::StringBuffer::appendf(), and oasys::SQLQuery::query_.
void oasys::SQLUpdate::process | ( | const char * | name, | |
bool * | b | |||
) | [virtual] |
Process function for a boolean.
Implements oasys::SerializeAction.
Definition at line 243 of file SQLSerialize.cc.
References oasys::StringBuffer::appendf(), and oasys::SQLQuery::query_.
void oasys::SQLUpdate::process | ( | const char * | name, | |
u_char * | bp, | |||
size_t | len | |||
) |
Definition at line 262 of file SQLSerialize.cc.
References oasys::StringBuffer::appendf(), oasys::SQLImplementation::escape_binary(), oasys::SQLQuery::query_, and oasys::SQLQuery::sql_impl_.
void oasys::SQLUpdate::process | ( | const char * | name, | |
u_char ** | bp, | |||
size_t * | lenp, | |||
int | flags | |||
) |
void oasys::SQLUpdate::process | ( | const char * | name, | |
std::string * | s | |||
) | [virtual] |
Process function for a c++ string.
Implements oasys::SerializeAction.
Definition at line 255 of file SQLSerialize.cc.
References oasys::StringBuffer::appendf(), oasys::SQLImplementation::escape_string(), oasys::SQLQuery::query_, and oasys::SQLQuery::sql_impl_.