wiki:FDORfc5

Version 2 (modified by barbarazoladek, 17 years ago) ( diff )

--

FDO RFC 5 - FdoClassDefinition Change

This page contains a request for comments document (RFC) for the FDO Open Source project. More FDO RFCs can be found on the RFCs page.

Status

RFC Template Version(1.0)
Submission DateJul 11, 2007
Last ModifiedBarbara Zoladek Timestamp
AuthorBarbara Zoladek
RFC Statusdraft
Implementation Status under development
Proposed Milestone3.3
Assigned PSC guide(s)Greg Boone
Voting HistoryTBD
Mateusz
Frank
Orest
Greg

Overview

The purpose of this RFC is to add to FdoClassDefinition the methods for setting and getting a flag indicating if the class definition is based on a view.

Motivation

The top level requirements is to distinguish table and view based classes. However, there is no difference in functionality or behaviour between table and view based classes, for the schema designers it is important to know a type of the underlying datastore object.

Proposed Solution

class FdoClassDefinition : public FdoSchemaElement
{
...
private:
...
   FdoBoolean	m_isViewBased;

public:
    /// \brief
    /// Gets the value of mIsViewBased. It is true if a class is based on view; otherwise is false.
    /// 
    /// \return
    /// Returns bool
    /// 
	FDO_API bool GetIsViewBased();

    /// \brief
    /// Sets the value of mIsViewBased. It is true if a class is based on view; otherwise is false.
    /// 
    /// \return
    /// Returns nothing
    /// 
	FDO_API void SetIsViewBased( bool value );
}

Implications

This change will not cause any side-effects, nor will cause any compatibility problems.

Test Plan

FDO test will be expanded for testing these methods.

Funding/Resources

Autodesk to provide resources / funding to update FDO core.

Note: See TracWiki for help on using the wiki.