Wt::Dbo::FieldInfo Class Reference
[Database Objects (Dbo)]

Description of a field. More...

#include <Wt/Dbo/SqlTraits>

List of all members.

Public Types

enum  Flags { Id = 0x1, Version = 0x2, Mutable = 0x4, NeedsQuotes = 0x8 }
 Flags. More...

Public Member Functions

 FieldInfo (const std::string &name, const std::type_info *type, int flags)
 Creates a field description.
void setQualifier (const std::string &qualifier)
 Sets a qualifier for the field.
const std::string & name () const
 Returns the field name.
const std::string & qualifier () const
 Returns the field qualifier.
const std::type_info * type () const
 Returns the field type.
bool isIdField () const
 Returns whether the field is an Id field.
bool isVersionField () const
 Returns whether the field is a Version field.
bool isMutable () const
 Returns whether the field is mutable.
bool needsQuotes () const
 Returns whether the field name needs to be quoted.


Detailed Description

Description of a field.

See also:
query_result_traits::getFields(), Query::fields()

Member Enumeration Documentation

Flags.

Enumerator:
Id  Field is an automatically generated id.
Version  Field is an optimistic concurrency version field.
Mutable  Field can be edited.
NeedsQuotes  Field name needs quotes when using in SQL.


Generated on Thu May 20 18:14:52 2010 for Wt by doxygen 1.5.6