FDO API Reference Feature Data Objects

FdoClassDefinition Class Reference

#include <ClassDefinition.h>

Inherits FdoSchemaElement.

Inherited by FdoClass, FdoFeatureClass, FdoNetworkClass, FdoNetworkLayerClass, and FdoTopology.

Inheritance diagram for FdoClassDefinition:

Inheritance graph
[legend]
List of all members.

Detailed Description

FdoClassDefinition is an abstract class that derives from FdoSchemaElement. FdoClassDefinition is a base class for all concrete class types (e.g., FdoClass, FdoFeatureClass) in the Schema package.

Definition at line 43 of file ClassDefinition.h.


Public Member Functions

virtual void _writeXml (FdoSchemaXmlContext *pContext)
 Serialize this class to XML.
void _writeXmlBaseProperties (FdoSchemaXmlContext *pContext)
 Just write base properties, don't wrap them.
FDO_API FdoClassDefinitionGetBaseClass ()
 Gets the base FdoClassDefinition this class is derived from.
FDO_API FdoReadOnlyDataPropertyDefinitionCollectionGetBaseIdentityProperties ()
 Returns an FdoReadOnlyDataPropertyDefinitionCollection containing the identity properties for the base class.
FDO_API FdoReadOnlyPropertyDefinitionCollectionGetBaseProperties ()
 Returns an FdoReadOnlyPropertyDefinitionCollection containing the properties defined by base classes or by the concrete class type, itself. This collection is only populated when the FdoClassDefinition is returned by the DescribeSchema command.
FDO_API FdoClassCapabilitiesGetCapabilities ()
 Gets the class-specific capabilities for this class.
virtual FDO_API FdoClassType GetClassType ()
 This is an abstract operation that must be implemented by derived classes to return the concrete class type.
FDO_API FdoDataPropertyDefinitionCollectionGetIdentityProperties ()
 Returns an FdoDataPropertyDefinitionCollection containing references to the data properties that can be used to uniquely identify instances of the class. The contained properties must already be defined in either the properties or baseProperties collection. If GetBaseClass() returns non null then this collection must be empty.
FDO_API bool GetIsAbstract ()
 Gets the abstraction state of the FdoClassDefinition. Classes marked as abstract cannot be created via FDO commands and cannot be used as properties of another class.
FDO_API bool GetIsComputed ()
 Gets the computed state of the FdoClassDefinition. Computed classes cannot be made persistent or added to FDO schema. The computed classes are used as a transient classes that can be returned by a feature or data reader. They describe the result of a select expression, select function and select distinct.
FDO_API FdoPropertyDefinitionCollectionGetProperties ()
 Returns an FdoPropertyCollection containing the FdoDataProperties, FdoClassProperties, and FdoGeometricProperties defined for this class.
virtual FDO_API FdoStringP GetQualifiedName ()
 Gets the fully qualified name of this class.
FDO_API FdoUniqueConstraintCollectionGetUniqueConstraints ()
 Gets a FdoUniqueConstraintCollection containing all unique constraints applied to properties of this class. The contained properties must already be defined in either the properties or baseProperties collections.
virtual void InitFromXml (FdoSchemaXmlContext *pContext, FdoXmlAttributeCollection *attrs)
 Initialize this property from its XML attributes.
virtual void InitFromXml (const FdoString *classTypeName, FdoSchemaXmlContext *pContext, FdoXmlAttributeCollection *attrs)
 Initialize the class from its XML attributes.
virtual void Set (FdoClassDefinition *pClass, FdoSchemaXmlContext *pContext)
 Update a class definition from the given definition.
FDO_API void SetBaseClass (FdoClassDefinition *value)
 Sets the base FdoClassDefinition this class is derived from.
FDO_API void SetBaseProperties (FdoPropertyDefinitionCollection *value)
 Sets the base properties of this class. All elements of the input collection must also be properties of the class.
FDO_API void SetCapabilities (FdoClassCapabilities *capabilities)
 Sets the class-specific capabilities for this class. This function must only be called by an FDO Provider. It would be typically called by the DescribeSchema command implementation.
FDO_API void SetIsAbstract (bool value)
 Sets the abstraction state of the FdoClassDefinition. Classes marked as abstract cannot be created via FDO commands and cannot be used as properties of another class.
FDO_API void SetIsComputed (bool value)
 Sets the computed state of the FdoClassDefinition. This is an internal method that can only be called by providers. Application should not use this method.
void writeXmlBaseProperties (FdoSchemaXmlContext *pContext)
 Wrap base properties in <BaseProperties> element.
virtual FdoBoolean XmlEndElement (FdoXmlSaxContext *context, FdoString *uri, FdoString *name, FdoString *qname)
 Element end.
virtual FdoXmlSaxHandlerXmlStartElement (FdoXmlSaxContext *context, FdoString *uri, FdoString *name, FdoString *qname, FdoXmlAttributeCollection *atts)

Protected Member Functions

virtual void _AcceptChanges ()
virtual void _BeginChangeProcessing ()
virtual void _EndChangeProcessing ()
virtual void _RejectChanges ()
virtual void _StartChanges ()
 FdoFeatureSchema::RejectChanges() support.
 FdoClassDefinition (FdoString *name, FdoString *description)
 FdoClassDefinition ()
 Constructs a default instance of a ClassDefinition.
virtual bool IsProperty (const FdoPropertyDefinition *property)
 Is this a property of this element?
virtual bool IsSubClass ()
 Does this class have a base class?
virtual void PropertyRemoved (const FdoPropertyDefinition *property)
 Notification method called whenever a property of this element is removed.
virtual ~FdoClassDefinition ()

Protected Attributes

FdoClassDefinitionm_baseClassCHANGED
FdoReadOnlyPropertyDefinitionCollectionm_basePropertiesCHANGED
bool m_isAbstractCHANGED
FdoUniqueConstraintCollectionm_uniqueConstraintsCHANGED

Friends

class FdoObjectPropertyDefinition
class FdoRelation
class FdoRelationEnd
class FdoSchemaCollection

The documentation for this class was generated from the following file:
Comments or suggestions? Send us feedback.