Classes | Enumerations | Functions

stactiverecord Namespace Reference

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)
Wherestartswith (std::string value)
Whereendswith (std::string value)
Wherecontains (std::string value)
Wheregreaterthan (int value)
Wheregreaterthan (DateTime value)
Wherelessthan (int value)
Wherelessthan (DateTime value)
Wherebetween (int value, int valuetwo)
Wherebetween (DateTime value, DateTime valuetwo)
Whereequals (int value)
Whereequals (DateTime value)
Whereequals (std::string value)
Whereequals (bool value)
Whereequals (const char *value)
Wherein (std::vector< int > values)
Whereisnull ()
Wherenstartswith (std::string value)
Wherenendswith (std::string value)
Wherencontains (std::string value)
Wherengreaterthan (int value)
Wherengreaterthan (DateTime value)
Wherenlessthan (int value)
Wherenlessthan (DateTime value)
Wherenbetween (int value, int valuetwo)
Wherenbetween (DateTime value, DateTime valuetwo)
Wherenequals (int value)
Wherenequals (DateTime value)
Wherenequals (std::string value)
Wherenequals (bool value)
Wherenequals (const char *value)
Wherenin (std::vector< int > values)
Wherenisnull ()
template<class T >
Wherehasobject (Record< T > &r)

Detailed Description

The project's namespace.


Enumeration Type Documentation

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.


Function Documentation

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

 All Classes Namespaces Functions Enumerations