BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
rdbModel Namespace Reference

Classes

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

Typedefs

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

Enumerations

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

Variables

std::string opSymbols [OPTYPElast]

Typedef Documentation

◆ StringVector

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.

Definition at line 47 of file Calibration/rdbModel/include/rdbModel/Db/Connection.h.

Enumeration Type Documentation

◆ FIELDTYPE [1/3]

Enumerator
FIELDTYPElit 
FIELDTYPEold 
FIELDTYPEtoBe 
FIELDTYPEask 
FIELDTYPElitDef 
FIELDTYPEoldDef 
FIELDTYPEtoBeDef 
FIELDTYPElit 
FIELDTYPEold 
FIELDTYPEtoBe 
FIELDTYPEask 
FIELDTYPElitDef 
FIELDTYPEoldDef 
FIELDTYPEtoBeDef 
FIELDTYPElit 
FIELDTYPEold 
FIELDTYPEtoBe 
FIELDTYPEask 
FIELDTYPElitDef 
FIELDTYPEoldDef 
FIELDTYPEtoBeDef 

Definition at line 22 of file Calibration/rdbModel/include/rdbModel/Rdb.h.

22 {
23 FIELDTYPElit = 0, // literal value
24 FIELDTYPEold, // col name, refers to (value of) col in existing row
25 FIELDTYPEtoBe, // col name, refers to (value of) col in proposed row
26 FIELDTYPEask, // supply value at the time of the operation
27 FIELDTYPElitDef, // literal but may be overridden
28 FIELDTYPEoldDef, // comes from existing row, may be overridden
29 FIELDTYPEtoBeDef // comes from proposed row, may be overridden
30 };

◆ FIELDTYPE [2/3]

Enumerator
FIELDTYPElit 
FIELDTYPEold 
FIELDTYPEtoBe 
FIELDTYPEask 
FIELDTYPElitDef 
FIELDTYPEoldDef 
FIELDTYPEtoBeDef 
FIELDTYPElit 
FIELDTYPEold 
FIELDTYPEtoBe 
FIELDTYPEask 
FIELDTYPElitDef 
FIELDTYPEoldDef 
FIELDTYPEtoBeDef 
FIELDTYPElit 
FIELDTYPEold 
FIELDTYPEtoBe 
FIELDTYPEask 
FIELDTYPElitDef 
FIELDTYPEoldDef 
FIELDTYPEtoBeDef 

Definition at line 22 of file InstallArea/x86_64-el9-gcc13-dbg/include/rdbModel/Rdb.h.

22 {
23 FIELDTYPElit = 0, // literal value
24 FIELDTYPEold, // col name, refers to (value of) col in existing row
25 FIELDTYPEtoBe, // col name, refers to (value of) col in proposed row
26 FIELDTYPEask, // supply value at the time of the operation
27 FIELDTYPElitDef, // literal but may be overridden
28 FIELDTYPEoldDef, // comes from existing row, may be overridden
29 FIELDTYPEtoBeDef // comes from proposed row, may be overridden
30 };

◆ FIELDTYPE [3/3]

Enumerator
FIELDTYPElit 
FIELDTYPEold 
FIELDTYPEtoBe 
FIELDTYPEask 
FIELDTYPElitDef 
FIELDTYPEoldDef 
FIELDTYPEtoBeDef 
FIELDTYPElit 
FIELDTYPEold 
FIELDTYPEtoBe 
FIELDTYPEask 
FIELDTYPElitDef 
FIELDTYPEoldDef 
FIELDTYPEtoBeDef 
FIELDTYPElit 
FIELDTYPEold 
FIELDTYPEtoBe 
FIELDTYPEask 
FIELDTYPElitDef 
FIELDTYPEoldDef 
FIELDTYPEtoBeDef 

Definition at line 22 of file InstallArea/x86_64-el9-gcc13-opt/include/rdbModel/Rdb.h.

22 {
23 FIELDTYPElit = 0, // literal value
24 FIELDTYPEold, // col name, refers to (value of) col in existing row
25 FIELDTYPEtoBe, // col name, refers to (value of) col in proposed row
26 FIELDTYPEask, // supply value at the time of the operation
27 FIELDTYPElitDef, // literal but may be overridden
28 FIELDTYPEoldDef, // comes from existing row, may be overridden
29 FIELDTYPEtoBeDef // comes from proposed row, may be overridden
30 };

◆ MATCH [1/3]

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.
Enumerator
MATCHequivalent 
MATCHcompatible 
MATCHfail 
MATCHnoConnection 
MATCHequivalent 
MATCHcompatible 
MATCHfail 
MATCHnoConnection 
MATCHequivalent 
MATCHcompatible 
MATCHfail 
MATCHnoConnection 

Definition at line 25 of file Calibration/rdbModel/include/rdbModel/Db/Connection.h.

◆ MATCH [2/3]

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.
Enumerator
MATCHequivalent 
MATCHcompatible 
MATCHfail 
MATCHnoConnection 
MATCHequivalent 
MATCHcompatible 
MATCHfail 
MATCHnoConnection 
MATCHequivalent 
MATCHcompatible 
MATCHfail 
MATCHnoConnection 

Definition at line 25 of file InstallArea/x86_64-el9-gcc13-dbg/include/rdbModel/Db/Connection.h.

◆ MATCH [3/3]

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.
Enumerator
MATCHequivalent 
MATCHcompatible 
MATCHfail 
MATCHnoConnection 
MATCHequivalent 
MATCHcompatible 
MATCHfail 
MATCHnoConnection 
MATCHequivalent 
MATCHcompatible 
MATCHfail 
MATCHnoConnection 

Definition at line 25 of file InstallArea/x86_64-el9-gcc13-opt/include/rdbModel/Db/Connection.h.

◆ OPTYPE [1/3]

Enumerator
OPTYPEundefined 
OPTYPEor 
OPTYPEand 
OPTYPEnot 
OPTYPEexists 
OPTYPEisNull 
OPTYPEisEmpty 
OPTYPEequal 
OPTYPEnotEqual 
OPTYPElessThan 
OPTYPEgreaterThan 
OPTYPElessOrEqual 
OPTYPEgreaterOrEqual 
OPTYPElast 
OPTYPEundefined 
OPTYPEor 
OPTYPEand 
OPTYPEnot 
OPTYPEexists 
OPTYPEisNull 
OPTYPEisEmpty 
OPTYPEequal 
OPTYPEnotEqual 
OPTYPElessThan 
OPTYPEgreaterThan 
OPTYPElessOrEqual 
OPTYPEgreaterOrEqual 
OPTYPElast 
OPTYPEundefined 
OPTYPEor 
OPTYPEand 
OPTYPEnot 
OPTYPEexists 
OPTYPEisNull 
OPTYPEisEmpty 
OPTYPEequal 
OPTYPEnotEqual 
OPTYPElessThan 
OPTYPEgreaterThan 
OPTYPElessOrEqual 
OPTYPEgreaterOrEqual 
OPTYPElast 

Definition at line 15 of file Calibration/rdbModel/include/rdbModel/Tables/Assertion.h.

15 {
17 OPTYPEor = 1,
23 OPTYPEequal, // first of 2-operand compare ops
30 };

◆ OPTYPE [2/3]

Enumerator
OPTYPEundefined 
OPTYPEor 
OPTYPEand 
OPTYPEnot 
OPTYPEexists 
OPTYPEisNull 
OPTYPEisEmpty 
OPTYPEequal 
OPTYPEnotEqual 
OPTYPElessThan 
OPTYPEgreaterThan 
OPTYPElessOrEqual 
OPTYPEgreaterOrEqual 
OPTYPElast 
OPTYPEundefined 
OPTYPEor 
OPTYPEand 
OPTYPEnot 
OPTYPEexists 
OPTYPEisNull 
OPTYPEisEmpty 
OPTYPEequal 
OPTYPEnotEqual 
OPTYPElessThan 
OPTYPEgreaterThan 
OPTYPElessOrEqual 
OPTYPEgreaterOrEqual 
OPTYPElast 
OPTYPEundefined 
OPTYPEor 
OPTYPEand 
OPTYPEnot 
OPTYPEexists 
OPTYPEisNull 
OPTYPEisEmpty 
OPTYPEequal 
OPTYPEnotEqual 
OPTYPElessThan 
OPTYPEgreaterThan 
OPTYPElessOrEqual 
OPTYPEgreaterOrEqual 
OPTYPElast 

Definition at line 15 of file InstallArea/x86_64-el9-gcc13-dbg/include/rdbModel/Tables/Assertion.h.

15 {
17 OPTYPEor = 1,
23 OPTYPEequal, // first of 2-operand compare ops
30 };

◆ OPTYPE [3/3]

Enumerator
OPTYPEundefined 
OPTYPEor 
OPTYPEand 
OPTYPEnot 
OPTYPEexists 
OPTYPEisNull 
OPTYPEisEmpty 
OPTYPEequal 
OPTYPEnotEqual 
OPTYPElessThan 
OPTYPEgreaterThan 
OPTYPElessOrEqual 
OPTYPEgreaterOrEqual 
OPTYPElast 
OPTYPEundefined 
OPTYPEor 
OPTYPEand 
OPTYPEnot 
OPTYPEexists 
OPTYPEisNull 
OPTYPEisEmpty 
OPTYPEequal 
OPTYPEnotEqual 
OPTYPElessThan 
OPTYPEgreaterThan 
OPTYPElessOrEqual 
OPTYPEgreaterOrEqual 
OPTYPElast 
OPTYPEundefined 
OPTYPEor 
OPTYPEand 
OPTYPEnot 
OPTYPEexists 
OPTYPEisNull 
OPTYPEisEmpty 
OPTYPEequal 
OPTYPEnotEqual 
OPTYPElessThan 
OPTYPEgreaterThan 
OPTYPElessOrEqual 
OPTYPEgreaterOrEqual 
OPTYPElast 

Definition at line 15 of file InstallArea/x86_64-el9-gcc13-opt/include/rdbModel/Tables/Assertion.h.

15 {
17 OPTYPEor = 1,
23 OPTYPEequal, // first of 2-operand compare ops
30 };

Variable Documentation

◆ opSymbols

std::string rdbModel::opSymbols[OPTYPElast]

Definition at line 473 of file MysqlConnection.cxx.