FDO API Reference | Feature Data Objects |
#include <ClassDefinition.h>
Inherits FdoSchemaElement.
Inherited by FdoClass, FdoFeatureClass, FdoNetworkClass, FdoNetworkLayerClass, and FdoTopology.
Inheritance diagram for FdoClassDefinition:
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. | |
virtual void | CheckReferences (FdoSchemaMergeContext *pContext) |
FDO_API FdoClassDefinition * | GetBaseClass () |
Gets the base FdoClassDefinition this class is derived from. | |
FDO_API FdoReadOnlyDataPropertyDefinitionCollection * | GetBaseIdentityProperties () |
Returns an FdoReadOnlyDataPropertyDefinitionCollection containing the identity properties for the base class. | |
FDO_API FdoReadOnlyPropertyDefinitionCollection * | GetBaseProperties () |
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 FdoClassCapabilities * | GetCapabilities () |
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 FdoDataPropertyDefinitionCollection * | GetIdentityProperties () |
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 FdoPropertyDefinitionCollection * | GetProperties () |
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 FdoUniqueConstraintCollection * | GetUniqueConstraints () |
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, FdoSchemaMergeContext *pContext) |
DOXYGEN-IGNORE | |
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 FdoXmlSaxHandler * | XmlStartElement (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 | |
FdoClassDefinition * | m_baseClassCHANGED |
FdoReadOnlyPropertyDefinitionCollection * | m_basePropertiesCHANGED |
bool | m_isAbstractCHANGED |
FdoUniqueConstraintCollection * | m_uniqueConstraintsCHANGED |
Friends | |
class | FdoObjectPropertyDefinition |
class | FdoRelation |
class | FdoRelationEnd |
class | FdoSchemaCollection |
|
Constructs a default instance of a ClassDefinition.
|
|
Constructs an instance of a ClassDefinition using the specified arguments. |
|
|
|
Reimplemented from FdoSchemaElement. Reimplemented in FdoFeatureClass, FdoNetworkClass, FdoNetworkFeatureClass, FdoNetworkLayerClass, FdoNetworkLinkFeatureClass, FdoNetworkNodeFeatureClass, and FdoTopology. |
|
Reimplemented from FdoSchemaElement. Reimplemented in FdoFeatureClass, FdoNetworkClass, FdoNetworkFeatureClass, FdoNetworkLayerClass, FdoNetworkLinkFeatureClass, FdoNetworkNodeFeatureClass, and FdoTopology. |
|
Reimplemented from FdoSchemaElement. Reimplemented in FdoFeatureClass, FdoNetworkClass, FdoNetworkFeatureClass, FdoNetworkLayerClass, FdoNetworkLinkFeatureClass, FdoNetworkNodeFeatureClass, and FdoTopology. |
|
Reimplemented from FdoSchemaElement. Reimplemented in FdoFeatureClass, FdoNetworkClass, FdoNetworkFeatureClass, FdoNetworkLayerClass, FdoNetworkLinkFeatureClass, FdoNetworkNodeFeatureClass, and FdoTopology. |
|
FdoFeatureSchema::RejectChanges() support.
Reimplemented from FdoSchemaElement. Reimplemented in FdoFeatureClass, FdoNetworkClass, FdoNetworkFeatureClass, FdoNetworkLayerClass, FdoNetworkLinkFeatureClass, FdoNetworkNodeFeatureClass, and FdoTopology. |
|
Serialize this class to XML.
Reimplemented from FdoSchemaElement. Reimplemented in FdoClass, FdoFeatureClass, FdoNetworkClass, FdoNetworkFeatureClass, FdoNetworkLayerClass, FdoNetworkLinkFeatureClass, and FdoNetworkNodeFeatureClass. |
|
Just write base properties, don't wrap them.
|
|
Reimplemented from FdoSchemaElement. Reimplemented in FdoFeatureClass, FdoNetworkClass, FdoNetworkFeatureClass, FdoNetworkLinkFeatureClass, and FdoNetworkNodeFeatureClass. |
|
Gets the base FdoClassDefinition this class is derived from.
|
|
Returns an FdoReadOnlyDataPropertyDefinitionCollection containing the identity properties for the base class.
|
|
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.
|
|
Gets the class-specific capabilities for this class.
|
|
This is an abstract operation that must be implemented by derived classes to return the concrete class type.
Reimplemented in FdoClass, FdoFeatureClass, FdoNetworkClass, FdoNetworkLayerClass, FdoNetworkLinkFeatureClass, and FdoNetworkNodeFeatureClass. |
|
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.
|
|
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.
|
|
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.
|
|
Returns an FdoPropertyCollection containing the FdoDataProperties, FdoClassProperties, and FdoGeometricProperties defined for this class.
|
|
Gets the fully qualified name of this class.
Reimplemented from FdoSchemaElement. |
|
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.
|
|
Initialize this property from its XML attributes.
Reimplemented from FdoSchemaElement. Reimplemented in FdoNetworkFeatureClass. |
|
Initialize the class from its XML attributes.
Reimplemented in FdoClass, FdoFeatureClass, FdoNetworkClass, FdoNetworkLayerClass, FdoNetworkLinkFeatureClass, and FdoNetworkNodeFeatureClass. |
|
Is this a property of this element?
Reimplemented from FdoSchemaElement. |
|
Does this class have a base class?
Reimplemented from FdoSchemaElement. |
|
Notification method called whenever a property of this element is removed.
Reimplemented from FdoSchemaElement. |
|
DOXYGEN-IGNORE
Reimplemented in FdoFeatureClass, FdoNetworkClass, FdoNetworkFeatureClass, FdoNetworkLayerClass, FdoNetworkLinkFeatureClass, and FdoNetworkNodeFeatureClass. |
|
Sets the base FdoClassDefinition this class is derived from.
|
|
Sets the base properties of this class. All elements of the input collection must also be properties of the class.
|
|
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.
|
|
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.
|
|
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.
|
|
Wrap base properties in <baseproperties> element. Serialize the base properties ( properties from base classes ) These functions are only called for classes that are represented in XML by a complexType restriction. |
|
Element end.
Reimplemented from FdoSchemaElement. Reimplemented in FdoNetworkFeatureClass, FdoNetworkLinkFeatureClass, and FdoNetworkNodeFeatureClass. |
|
Handle sub-elements such as properties Element start Reimplemented from FdoSchemaElement. Reimplemented in FdoNetworkFeatureClass, FdoNetworkLinkFeatureClass, and FdoNetworkNodeFeatureClass. |
|
Definition at line 48 of file ClassDefinition.h. |
|
Definition at line 47 of file ClassDefinition.h. |
|
Definition at line 46 of file ClassDefinition.h. |
|
Reimplemented from FdoSchemaElement. Reimplemented in FdoFeatureClass. Definition at line 45 of file ClassDefinition.h. |
|
Definition at line 316 of file ClassDefinition.h. |
|
Definition at line 317 of file ClassDefinition.h. |
|
Definition at line 315 of file ClassDefinition.h. |
|
Definition at line 318 of file ClassDefinition.h. |
Comments or suggestions? Send us feedback. |