Wt  3.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Classes | Enumerations | Functions | Variables
Wt::Dbo Namespace Reference

Namespace for the Database Objects (Wt::Dbo). More...

Classes

class  Call
 A database call. More...
class  collection
 An STL container for iterating query results. More...
class  Exception
 Exception base class for Wt::Dbo. More...
class  StaleObjectException
 Exception thrown when Wt::Dbo detects a concurrent modification More...
class  ObjectNotFoundException
 Exception thrown when trying to load a non-existing object. More...
class  NoUniqueResultException
 Exception thrown when a query unexpectedly finds a non-unique result. More...
class  ForeignKeyConstraint
 Type that indicates one or more foreign key constraints. More...
class  FixedSqlConnectionPool
 A connection pool of fixed size. More...
class  dbo_default_traits
 Default traits for a class mapped with Wt::Dbo. More...
class  dbo_traits
 Traits for a class mapped with Wt::Dbo. More...
class  Dbo
 A base class for database objects. More...
class  ptr
 A smart pointer for database objects. More...
struct  ptr_tuple
 A utility class for defining a tuple of database objects. More...
class  DirectBinding
class  DynamicBinding
class  Query
 A database query. More...
class  QueryModel
 A Wt MVC Model to view/edit query results. More...
class  Session
 A database session. More...
class  SqlConnection
 Abstract base class for an SQL connection. More...
class  SqlConnectionPool
 Abstract base class for a SQL connection pool. More...
class  SqlStatement
 Abstract base class for a prepared SQL statement. More...
class  sql_value_traits
 Traits class for value types. More...
class  FieldInfo
 Description of a field. More...
class  query_result_traits
 Traits class for result types. More...
class  Transaction
 A database transaction. More...

Enumerations

enum  RelationType { ManyToOne, ManyToMany }
 Type of an SQL relation. More...
enum  SqlDateTimeType { SqlDate, SqlDateTime, SqlTime }
 Enum that defines a date time type. More...

Functions

ForeignKeyConstraint operator| (ForeignKeyConstraint lhs, ForeignKeyConstraint rhs)
 Combines two constraints.
template<class Action , typename V >
void id (Action &action, V &value, const std::string &name="id", int size=-1)
 Maps a natural primary key (id) field.
template<class Action , class C >
void id (Action &action, ptr< C > &value, const std::string &name, ForeignKeyConstraint constraints, int size=-1)
 Maps a natural primary key (id) field that is a foreign key.
template<class Action , typename V >
void field (Action &action, V &value, const std::string &name, int size=-1)
 Maps a database object field.
template<class Action , class C >
void belongsTo (Action &action, ptr< C > &value, const std::string &name=std::string(), int size=-1)
 Maps the "One"-side of a ManyToOne relation.
template<class Action , class C >
void belongsTo (Action &action, ptr< C > &value, const std::string &name, ForeignKeyConstraint constraints, int size=-1)
 Maps the "One"-side of a ManyToOne relation.
template<class Action , class C >
void belongsTo (Action &action, ptr< C > &value, ForeignKeyConstraint constraints, int size=-1)
 Maps the "One"-side of a ManyToOne relation.
template<class Action , class C >
void hasMany (Action &action, collection< ptr< C > > &value, RelationType type, const std::string &joinName=std::string())
 Maps the "Many"-side of a ManyToOne or ManyToMany relation.
template<class Action , class C >
void hasMany (Action &action, collection< ptr< C > > &value, RelationType type, const std::string &joinName, const std::string &joinId, ForeignKeyConstraint constraints=NotNull)
 Maps the "Many"-side of a ManyToMany relation.

Variables

const ForeignKeyConstraint NotNull
 A constraint that prevents a null ptr.
const ForeignKeyConstraint OnUpdateCascade
 A constraint that cascades updates.
const ForeignKeyConstraint OnUpdateSetNull
 A constraint that cascades updates.
const ForeignKeyConstraint OnDeleteCascade
 A constraint that cascades deletes.
const ForeignKeyConstraint OnDeleteSetNull
 A constraint that cascades deletes.

Detailed Description

Namespace for the Database Objects (Wt::Dbo).


Enumeration Type Documentation

Enum that defines a date time type.

Enumerator:
SqlDate 

Date only.

SqlDateTime 

Date and time.

SqlTime 

Time duration.


Generated on Sun May 27 2012 for the C++ Web Toolkit (Wt) by doxygen 1.8.1