FieldImpl Class Reference

This class represents a generated (concrete version of a) FieldDef. More...

#include <FieldImpl.h>

Inheritance diagram for FieldImpl:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 FieldImpl (TableImplPtr table, cstring name, bool text, cstring defaultvalue)
 Constructs a new field belonging to the specified table with the specified name, default value and 'textness'.
 FieldImpl (TableImplPtr table, cstring name, bool text, bool lookup)
 Constructs a new field belonging to the specified table with the specified name 'textness' and lookup possibility.
 ~FieldImpl ()
 Destructor, a noop.
TableImplPtr getTable () const
 Returns the table this field belongs to.
const std::string & getDefaultValue () const
 Returns the default value for this field.
bool isLookup () const
 Whether this field is 'guaranteed' to be unique.
virtual FieldValuePtr newValue ()
 Returns a new FieldValue for this field.
virtual bool isKey () const
 Returns wether this field is a key.
virtual bool isPrimaryKey () const
 Returns wether this field is a primary key.


Detailed Description

This class represents a generated (concrete version of a) FieldDef.

This class should not be instantiated manually. Instead, the generated ones contained in TableImpls should be used.

See also:
FieldDef

TableImpls

Field

Definition at line 42 of file FieldImpl.h.


Constructor & Destructor Documentation

FieldImpl::FieldImpl ( TableImplPtr  table,
cstring  name,
bool  text,
cstring  defaultvalue 
)

Constructs a new field belonging to the specified table with the specified name, default value and 'textness'.

FieldImpl::FieldImpl ( TableImplPtr  table,
cstring  name,
bool  text,
bool  lookup 
)

Constructs a new field belonging to the specified table with the specified name 'textness' and lookup possibility.

FieldImpl::~FieldImpl (  ) 

Destructor, a noop.


Member Function Documentation

TableImplPtr FieldImpl::getTable (  )  const [inline]

Returns the table this field belongs to.

Definition at line 56 of file FieldImpl.h.

const std::string& FieldImpl::getDefaultValue (  )  const [inline]

Returns the default value for this field.

Definition at line 59 of file FieldImpl.h.

bool FieldImpl::isLookup (  )  const [inline]

Whether this field is 'guaranteed' to be unique.

Definition at line 62 of file FieldImpl.h.

virtual FieldValuePtr FieldImpl::newValue (  )  [virtual]

Returns a new FieldValue for this field.

Reimplemented in KeyImpl.

virtual bool FieldImpl::isKey (  )  const [inline, virtual]

Returns wether this field is a key.

Reimplemented from Field.

Reimplemented in KeyImpl.

Definition at line 70 of file FieldImpl.h.

virtual bool FieldImpl::isPrimaryKey (  )  const [inline, virtual]

Returns wether this field is a primary key.

Reimplemented in KeyImpl.

Definition at line 73 of file FieldImpl.h.


Generated for UnsignedByte by  doxygen 1.5.3
SourceForge.net Logo