| 41 | * Update the following existing MapGuide Feature Service APIs to utilize the new FDO APIs: |
| 42 | |
| 43 | {{{ |
| 44 | DescribeSchema |
| 45 | GetSchemas |
| 46 | GetClasses |
| 47 | }}} |
| 48 | |
| 49 | * Add the following new MapGuide Feature Service APIs: |
| 50 | |
| 51 | {{{ |
| 52 | |
| 53 | /////////////////////////////////////////////////////////////////////////// |
| 54 | /// \brief |
| 55 | /// Gets the definitions of one or more schemas contained in the |
| 56 | /// feature source for particular classes. If the specified schema name or |
| 57 | /// a class name does not exist, this method will throw an exception. |
| 58 | /// See \link Feature_Schema_Module Feature Schema \endlink. |
| 59 | /// |
| 60 | /// <!-- Syntax in .Net, Java, and PHP --> |
| 61 | /// \htmlinclude DotNetSyntaxTop.html |
| 62 | /// virtual MgFeatureSchemaCollection DescribeSchema(MgResourceIdentifier resource, string schemaName, MgStringCollection classNames); |
| 63 | /// \htmlinclude SyntaxBottom.html |
| 64 | /// \htmlinclude JavaSyntaxTop.html |
| 65 | /// virtual MgFeatureSchemaCollection DescribeSchema(MgResourceIdentifier resource, String schemaName, MgStringCollection classNames); |
| 66 | /// \htmlinclude SyntaxBottom.html |
| 67 | /// \htmlinclude PHPSyntaxTop.html |
| 68 | /// virtual MgFeatureSchemaCollection DescribeSchema(MgResourceIdentifier resource, string schemaName, MgStringCollection classNames); |
| 69 | /// \htmlinclude SyntaxBottom.html |
| 70 | /// |
| 71 | /// \param resource (MgResourceIdentifier) |
| 72 | /// A resource identifier for the feature source. |
| 73 | /// \param schemaName (String/string) |
| 74 | /// The name of the schema definition to retrieve. If this string is empty, |
| 75 | /// execution of the command will describe requested classes using the |
| 76 | /// qualified class name. If the class name is not qualified, the requested |
| 77 | /// class from all schemas will be described. |
| 78 | /// \param classNames (MgStringCollection) |
| 79 | /// A collection of strings identifying the feature classes for which to |
| 80 | /// retrieve schema information. If this collection is null or empty, |
| 81 | /// execution of the command will describe all classes. |
| 82 | /// If the class name is not qualified, and the schema name is not specified, |
| 83 | /// the requested class from all schemas will be described. |
| 84 | /// The class names specified serve only as a hint. Use of the hint |
| 85 | /// during command execution is provider dependent. Providers that |
| 86 | /// will not use the hint will describe the schema for all classes. |
| 87 | /// |
| 88 | /// \return |
| 89 | /// Returns the schema collection representing the schema containing |
| 90 | /// the class collection for the specified classes. |
| 91 | /// |
| 92 | /// \exception MgFeatureServiceException |
| 93 | /// \exception MgInvalidArgumentException |
| 94 | /// \exception MgFdoException |
| 95 | /// |
| 96 | /// \note |
| 97 | /// Please refer to Overview section of this document or Fdo |
| 98 | /// provider documents for details on connection properties, |
| 99 | /// schema and classes. |
| 100 | /// |
| 101 | virtual MgFeatureSchemaCollection* DescribeSchema(MgResourceIdentifier* resource, |
| 102 | CREFSTRING schemaName, MgStringCollection* classNames); |
| 103 | |
| 104 | /////////////////////////////////////////////////////////////////////////// |
| 105 | /// \brief |
| 106 | /// Gets the definitions in XML format of one or more schemas contained in the |
| 107 | /// feature source for particular classes. If the specified schema name or |
| 108 | /// a class name does not exist, this method will throw an exception. |
| 109 | /// See \link Feature_Schema_Module Feature Schema \endlink. |
| 110 | /// |
| 111 | /// \remarks |
| 112 | /// The XML representation of the schema definitions conforms to |
| 113 | /// FDO XML schema, which are based on OGC GML schema. How to |
| 114 | /// specify a schema definition in XML is discussed in the |
| 115 | /// Autodesk FDO API Developer's Guide. |
| 116 | /// |
| 117 | /// <!-- Syntax in .Net, Java, and PHP --> |
| 118 | /// \htmlinclude DotNetSyntaxTop.html |
| 119 | /// virtual string DescribeSchemaAsXml(MgResourceIdentifier resource, string schemaName, MgStringCollection classNames); |
| 120 | /// \htmlinclude SyntaxBottom.html |
| 121 | /// \htmlinclude JavaSyntaxTop.html |
| 122 | /// virtual String DescribeSchemaAsXml(MgResourceIdentifier resource, String schemaName, MgStringCollection classNames); |
| 123 | /// \htmlinclude SyntaxBottom.html |
| 124 | /// \htmlinclude PHPSyntaxTop.html |
| 125 | /// virtual string DescribeSchemaAsXml(MgResourceIdentifier resource, string schemaName, MgStringCollection classNames); |
| 126 | /// \htmlinclude SyntaxBottom.html |
| 127 | /// |
| 128 | /// \param resource (MgResourceIdentifier) |
| 129 | /// A resource identifier for the feature source. |
| 130 | /// \param schemaName (String/string) |
| 131 | /// The name of the schema definition to retrieve. If this string is empty, |
| 132 | /// execution of the command will describe requested classes using the |
| 133 | /// qualified class name. If the class name is not qualified, the requested |
| 134 | /// class from all schemas will be described. |
| 135 | /// \param classNames (MgStringCollection) |
| 136 | /// A collection of strings identifying the feature classes for which to |
| 137 | /// retrieve schema information. If this collection is null or empty, |
| 138 | /// execution of the command will describe all classes. |
| 139 | /// If the class name is not qualified, and the schema name is not specified, |
| 140 | /// the requested class from all schemas will be described. |
| 141 | /// The class names specified serve only as a hint. Use of the hint |
| 142 | /// during command execution is provider dependent. Providers that |
| 143 | /// will not use the hint will describe the schema for all classes. |
| 144 | /// |
| 145 | /// \return |
| 146 | /// Returns a string containing the FDO schema in XML format. |
| 147 | /// |
| 148 | /// \exception MgFeatureServiceException |
| 149 | /// \exception MgInvalidArgumentException |
| 150 | /// \exception MgFdoException |
| 151 | /// |
| 152 | virtual STRING DescribeSchemaAsXml(MgResourceIdentifier* resource, |
| 153 | CREFSTRING schemaName, MgStringCollection* classNames); |
| 154 | |
| 155 | }}} |
| 156 | |