FDO .NET API Reference | Feature Data Objects |
00001 /* 00002 * Copyright (C) 2004-2006 Autodesk, Inc. 00003 * 00004 * This library is free software; you can redistribute it and/or 00005 * modify it under the terms of version 2.1 of the GNU Lesser 00006 * General Public License as published by the Free Software Foundation. 00007 * 00008 * This library is distributed in the hope that it will be useful, 00009 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 * Lesser General Public License for more details. 00012 * 00013 * You should have received a copy of the GNU Lesser General Public 00014 * License along with this library; if not, write to the Free Software 00015 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00016 * 00017 */ 00018 00019 #pragma once 00020 00021 #include "FDO\Schema\mgClassDefinition.h" 00022 00023 class FdoUniqueConstraint; 00024 00025 BEGIN_NAMESPACE_OSGEO_FDO_SCHEMA 00026 00027 /// \ingroup (OSGeoFDOSchema) 00028 /// \brief 00029 /// UniqueConstraint can be used to specify that a property or list of properties taken together 00030 /// have unique values for all objects of that class in a datastore. A unique constraint that is based on a list 00031 /// of two or more properties is called a composite unique constraint. 00032 /// This constraint type applies to all data property types except for Boolean, BLOB, and CLOB. A Boolean property 00033 /// can be included if it’s part of a composite unique constraint. 00034 public __gc class UniqueConstraint : public NAMESPACE_OSGEO_RUNTIME::Disposable 00035 { 00036 /// \cond DOXYGEN-IGNORE 00037 protected: 00038 System::Void ReleaseUnmanagedObject(); 00039 /// \endcond 00040 00041 public private: 00042 UniqueConstraint(System::IntPtr unmanaged, System::Boolean autoDelete); 00043 00044 inline FdoUniqueConstraint* GetImpObj(); 00045 00046 public: 00047 /// \brief 00048 /// Constructs an empty instance of an UniqueConstraint. 00049 /// 00050 /// \return 00051 /// Returns an UniqueConstraint. 00052 /// 00053 UniqueConstraint( ); 00054 00055 /// \brief 00056 /// Returns the list of properties that define the unique constraint. The caller can modify the list by adding or removing properties 00057 /// 00058 /// \return 00059 /// Returns the collection that holds the properties that defines the constraint. 00060 /// 00061 __property NAMESPACE_OSGEO_FDO_SCHEMA::DataPropertyDefinitionCollection* get_Properties(); 00062 00063 }; 00064 00065 END_NAMESPACE_OSGEO_FDO_SCHEMA 00066 00067
Comments or suggestions? Send us feedback. |