Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

rdbModel Namespace Reference


Classes

class  rdbModel::Assertion
class  rdbModel::Assertion::Operator
class  rdbModel::Builder
class  rdbModel::ColCompare
 Function object used to sort columns by column name. More...
class  rdbModel::Column
class  rdbModel::Connection
class  rdbModel::Datatype
class  rdbModel::Enum
class  rdbModel::FieldVal
class  rdbModel::FieldValCompare
 Function object used to sort FieldValPar objects by column name. More...
class  rdbModel::Index
class  rdbModel::InsertNew
class  rdbModel::InterRow
class  rdbModel::Manager
class  rdbModel::MysqlConnection
class  rdbModel::MysqlResults
class  rdbModel::Query
class  rdbModel::Rdb
class  rdbModel::RdbException
class  rdbModel::ResultHandle
class  rdbModel::Row
class  rdbModel::Set
class  rdbModel::Supersede
class  rdbModel::Table
class  rdbModel::Visitor
class  rdbModel::XercesBuilder

Typedefs

typedef std::vector< std::string > StringVector

Enumerations

enum  FIELDTYPE {
  FIELDTYPElit = 0, FIELDTYPEold, FIELDTYPEtoBe, FIELDTYPEask,
  FIELDTYPElitDef, FIELDTYPEoldDef, FIELDTYPEtoBeDef
}
enum  FIELDTYPE {
  FIELDTYPElit = 0, FIELDTYPEold, FIELDTYPEtoBe, FIELDTYPEask,
  FIELDTYPElitDef, FIELDTYPEoldDef, FIELDTYPEtoBeDef
}
enum  MATCH { MATCHequivalent, MATCHcompatible, MATCHfail, MATCHnoConnection }
enum  MATCH { MATCHequivalent, MATCHcompatible, MATCHfail, MATCHnoConnection }
enum  OPTYPE {
  OPTYPEundefined = 0, OPTYPEor = 1, OPTYPEand, OPTYPEnot,
  OPTYPEexists, OPTYPEisNull, OPTYPEisEmpty, OPTYPEequal,
  OPTYPEnotEqual, OPTYPElessThan, OPTYPEgreaterThan, OPTYPElessOrEqual,
  OPTYPEgreaterOrEqual, OPTYPElast
}
enum  OPTYPE {
  OPTYPEundefined = 0, OPTYPEor = 1, OPTYPEand, OPTYPEnot,
  OPTYPEexists, OPTYPEisNull, OPTYPEisEmpty, OPTYPEequal,
  OPTYPEnotEqual, OPTYPElessThan, OPTYPEgreaterThan, OPTYPElessOrEqual,
  OPTYPEgreaterOrEqual, OPTYPElast
}

Variables

std::string opSymbols [OPTYPElast]


Typedef Documentation

typedef std::vector< std::string > rdbModel::StringVector
 

Class to handle connection to an SQL database, or something very like it. It should be able to

  • initiate connection
  • make queries, including making returned data from queries available
  • issue SQL statements such as INSERT and UPDATE which have no returned data other than status
  • close down connection. Someday it might also have a method to create a database

Maybe make it pure virtual? And make a MySQL implementation derived from it.

Initial design will just use host, password, userid passed in. Will be up to caller to insure that the userid has the right privilages for the operations caller intends to do.


Enumeration Type Documentation

enum FIELDTYPE
 

Enumeration values:
FIELDTYPElit 
FIELDTYPEold 
FIELDTYPEtoBe 
FIELDTYPEask 
FIELDTYPElitDef 
FIELDTYPEoldDef 
FIELDTYPEtoBeDef 
00021                  {
00022     FIELDTYPElit = 0,  // literal value
00023     FIELDTYPEold,      // col name, refers to (value of) col in existing row
00024     FIELDTYPEtoBe,     // col name, refers to (value of) col in proposed row
00025     FIELDTYPEask,       // supply value at the time of the operation
00026     FIELDTYPElitDef,   // literal but may be overridden
00027     FIELDTYPEoldDef,   // comes from existing row, may be overridden
00028     FIELDTYPEtoBeDef  // comes from proposed row, may be overridden
00029   };

enum FIELDTYPE
 

Enumeration values:
FIELDTYPElit 
FIELDTYPEold 
FIELDTYPEtoBe 
FIELDTYPEask 
FIELDTYPElitDef 
FIELDTYPEoldDef 
FIELDTYPEtoBeDef 
00021                  {
00022     FIELDTYPElit = 0,  // literal value
00023     FIELDTYPEold,      // col name, refers to (value of) col in existing row
00024     FIELDTYPEtoBe,     // col name, refers to (value of) col in proposed row
00025     FIELDTYPEask,       // supply value at the time of the operation
00026     FIELDTYPElitDef,   // literal but may be overridden
00027     FIELDTYPEoldDef,   // comes from existing row, may be overridden
00028     FIELDTYPEtoBeDef  // comes from proposed row, may be overridden
00029   };

enum MATCH
 

The following are used as return codes from the function schemaMatch. which checks for compatibility between the schema definition embodied in an Rdb object and the one at the other end of a Connection.

  • MATCHequivalent means that every comparison attempted has succeeded
  • MATCHcompatible means that everything required by the local schema exists in the remote db, but not necessarily the other way around. selects, inserts and updates attempted via the Connection should work.
  • MATCHfail means the remote db is missing something described locally, or types are incompatible for corresponding objects.
Enumeration values:
MATCHequivalent 
MATCHcompatible 
MATCHfail 
MATCHnoConnection 
00025               {
00026     MATCHequivalent,
00027     MATCHcompatible,
00028     MATCHfail,
00029     MATCHnoConnection
00030   };

enum MATCH
 

The following are used as return codes from the function schemaMatch. which checks for compatibility between the schema definition embodied in an Rdb object and the one at the other end of a Connection.

  • MATCHequivalent means that every comparison attempted has succeeded
  • MATCHcompatible means that everything required by the local schema exists in the remote db, but not necessarily the other way around. selects, inserts and updates attempted via the Connection should work.
  • MATCHfail means the remote db is missing something described locally, or types are incompatible for corresponding objects.
Enumeration values:
MATCHequivalent 
MATCHcompatible 
MATCHfail 
MATCHnoConnection 
00025               {
00026     MATCHequivalent,
00027     MATCHcompatible,
00028     MATCHfail,
00029     MATCHnoConnection
00030   };

enum OPTYPE
 

Enumeration values:
OPTYPEundefined 
OPTYPEor 
OPTYPEand 
OPTYPEnot 
OPTYPEexists 
OPTYPEisNull 
OPTYPEisEmpty 
OPTYPEequal 
OPTYPEnotEqual 
OPTYPElessThan 
OPTYPEgreaterThan 
OPTYPElessOrEqual 
OPTYPEgreaterOrEqual 
OPTYPElast 
00014                 {
00015       OPTYPEundefined = 0,
00016       OPTYPEor = 1,
00017       OPTYPEand,
00018       OPTYPEnot,
00019       OPTYPEexists,
00020       OPTYPEisNull,
00021       OPTYPEisEmpty,
00022       OPTYPEequal,           // first of 2-operand compare ops
00023       OPTYPEnotEqual,
00024       OPTYPElessThan,
00025       OPTYPEgreaterThan,
00026       OPTYPElessOrEqual,
00027       OPTYPEgreaterOrEqual,
00028       OPTYPElast
00029     };

enum OPTYPE
 

Enumeration values:
OPTYPEundefined 
OPTYPEor 
OPTYPEand 
OPTYPEnot 
OPTYPEexists 
OPTYPEisNull 
OPTYPEisEmpty 
OPTYPEequal 
OPTYPEnotEqual 
OPTYPElessThan 
OPTYPEgreaterThan 
OPTYPElessOrEqual 
OPTYPEgreaterOrEqual 
OPTYPElast 
00014                 {
00015       OPTYPEundefined = 0,
00016       OPTYPEor = 1,
00017       OPTYPEand,
00018       OPTYPEnot,
00019       OPTYPEexists,
00020       OPTYPEisNull,
00021       OPTYPEisEmpty,
00022       OPTYPEequal,           // first of 2-operand compare ops
00023       OPTYPEnotEqual,
00024       OPTYPElessThan,
00025       OPTYPEgreaterThan,
00026       OPTYPElessOrEqual,
00027       OPTYPEgreaterOrEqual,
00028       OPTYPElast
00029     };


Variable Documentation

std::string rdbModel::opSymbols[OPTYPElast]
 


Generated on Wed Feb 2 19:21:50 2011 for BOSS6.5.5 by  doxygen 1.3.9.1