The project's namespace. More...
Classes | |
class | CUDPropertyRegister |
An observer of sorts - keeps track of changes to extending classes. More... | |
class | DateTime |
class | Sar_Exception |
class | Sar_DBException |
Database exception - can be thrown by any Sar_Dbi implementors. More... | |
class | Sar_NoSuchObjectException |
Exception thrown if object is created with a non existant id. More... | |
class | Sar_NoSuchPropertyException |
Exception thrown if get is called for a property that doesn't exist. More... | |
class | Sar_InvalidConfigurationException |
Exception thrown if invalid Sar_Dbi configuration is given. More... | |
class | Sar_RecordNotFoundException |
Exception thrown if a record can not be found. More... | |
class | Sar_AssertionFailedException |
Exception thrown in testing if an assertion fails. More... | |
class | Sar_InvalidClassnameException |
Exception thrown if an invalid classname is used. More... | |
class | Sar_ColumnNotFoundException |
Exception thrown from a db class if a column is asked for but doesn't exist. More... | |
class | Sar_InvalidDateException |
class | Q |
A query object that supports boolean operations. More... | |
class | Record |
class | KVT |
class | Row |
class | Sar_Dbi |
class | SarVector |
class | SarMap |
class | ObjGroup |
struct | mapStrCmp |
class | Where |
Enumerations | |
enum | coltype { NONE, INTEGER, STRING, RECORD, DATETIME, ALL } |
enum | wheretype { STARTSWITH, ENDSWITH, CONTAINS, GREATERTHAN, LESSTHAN, BETWEEN, EQUALS, OBJECTRELATION, IN, ISNULL } |
Functions | |
void | check_classname (std::string classname) |
void | coltype_to_name (coltype ct, std::string &name) |
void | int_to_string (int i, std::string &s) |
int | string_to_int (std::string s) |
void | debug (std::string s) |
std::vector< std::string > | explode (std::string s, std::string e) |
void | join (std::vector< std::string > v, std::string joiner, std::string &result) |
Where * | startswith (std::string value) |
Where * | endswith (std::string value) |
Where * | contains (std::string value) |
Where * | greaterthan (int value) |
Where * | greaterthan (DateTime value) |
Where * | lessthan (int value) |
Where * | lessthan (DateTime value) |
Where * | between (int value, int valuetwo) |
Where * | between (DateTime value, DateTime valuetwo) |
Where * | equals (int value) |
Where * | equals (DateTime value) |
Where * | equals (std::string value) |
Where * | equals (bool value) |
Where * | equals (const char *value) |
Where * | in (std::vector< int > values) |
Where * | isnull () |
Where * | nstartswith (std::string value) |
Where * | nendswith (std::string value) |
Where * | ncontains (std::string value) |
Where * | ngreaterthan (int value) |
Where * | ngreaterthan (DateTime value) |
Where * | nlessthan (int value) |
Where * | nlessthan (DateTime value) |
Where * | nbetween (int value, int valuetwo) |
Where * | nbetween (DateTime value, DateTime valuetwo) |
Where * | nequals (int value) |
Where * | nequals (DateTime value) |
Where * | nequals (std::string value) |
Where * | nequals (bool value) |
Where * | nequals (const char *value) |
Where * | nin (std::vector< int > values) |
Where * | nisnull () |
template<class T > | |
Where * | hasobject (Record< T > &r) |
The project's namespace.
The possible valid column types. Note that a change here means editing coltype_to_name in utils too.
The possible specific types/relationships a Where class can represent.
void stactiverecord::check_classname | ( | std::string | classname ) |
Determind if classname is valid - throws exception if not
void stactiverecord::coltype_to_name | ( | coltype | ct, |
std::string & | name | ||
) |
convert column type to string
void stactiverecord::debug | ( | std::string | s ) |
print debugging information if DEBUG is defined
std::vector< std::string > stactiverecord::explode | ( | std::string | s, |
std::string | e | ||
) |
Split a string s into parts by value e
void stactiverecord::int_to_string | ( | int | i, |
std::string & | s | ||
) |
convert integer to string
int stactiverecord::string_to_int | ( | std::string | s ) |
Better be sure s is really a string - used for postgres int column retrieval