sdRelationshipBase Class Reference

Inheritance diagram for sdRelationshipBase:

sdBase sdRelationship sdRelationshipSet


Public Methods

virtual ~sdRelationshipBase ()
unsigned int getId () const
const std::string & getName () const
const std::string & getDescription () const
sdRelationshipSubType getSubType () const
sdRelationshipOrderingType getOrderType () const
sdRelationshipAssociationType getAssociationType () const
sdRelationshipMultiplicityType getMultiplicityType () const
sdRelationshipContainerType getContainerType () const
ActionConstIter begin () const
ActionConstIter end () const

Public Types

typedef std::vector< sdRelationshipActionTypeActions
typedef Actions::const_iterator ActionConstIter

Detailed Description

The sdRelationshipBase class is the base class for representing of different types of relationships in the schema definition.


Member Typedef Documentation

typedef Actions::const_iterator sdRelationshipBase::ActionConstIter
 

typedef std::vector<sdRelationshipActionType> sdRelationshipBase::Actions
 


Constructor & Destructor Documentation

sdRelationshipBase::~sdRelationshipBase   [virtual]
 

This is the sdRelationshipBase destructor.


Member Function Documentation

ActionConstIter sdRelationshipBase::begin   const
 

This function returns a constant iterator that points to the first action of this relationship.

ActionConstIter sdRelationshipBase::end   const
 

This function returns a constant iterator that points to the last action of this relationship.

sdRelationshipAssociationType sdRelationshipBase::getAssociationType   const
 

This function returns the associationType of this sdRelationshipBase object. The associationType relates to how the objects are related. For example, a relationship might exist between two peers, or between an owning object and owned object.

sdRelationshipContainerType sdRelationshipBase::getContainerType   const
 

This function returns the containerType of this sdRelationshipBase object. The containerType defines how the related objects can be returned. For example, as a collection, an array, or a single object.

const std::string & sdRelationshipBase::getDescription   const
 

This function returns the description of this sdRelationshipBase object.

unsigned int sdRelationshipBase::getId   const
 

This function returns the ID of this sdRelationshipBase object.

sdRelationshipMultiplicityType sdRelationshipBase::getMultiplicityType   const
 

This function returns the multiplicityType of this sdRelationshipBase object. The multiplicityType relates to the number of 'to' objects in a relationship. For example, a relationship might be a one-to-one relationship, or a one-to-many relationship.

const std::string * sdRelationshipBase::getName   const
 

This function returns the name of this sdRelationshipBase object.

sdRelationshipOrderingType sdRelationshipBase::getOrderType   const
 

This function returns the orderType of this sdRelationshipBase object. The orderType relates to the ordering for the 'to' objects that would be returned on this relationship. For example, the ordering might be unordered or strictly ordered.

sdRelationshipSubType sdRelationshipBase::getSubType   const
 

This function returns the subType of this sdRelationshipBase object. The subType relates to the object or objects that are allowed for the 'to' part of the relationship. For example, there might be only a single object for the 'to' part of the relationship, or a set of valid objects might be allowed.


The documentation for this class was generated from the following files:

Return to top of page