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\Commands\mgIFeatureCommand.h" 00022 00023 BEGIN_NAMESPACE_OSGEO_FDO_COMMANDS_LOCKING 00024 public __gc __interface ILockConflictReader; 00025 END_NAMESPACE_OSGEO_FDO_COMMANDS_LOCKING 00026 00027 BEGIN_NAMESPACE_OSGEO_FDO_COMMANDS_FEATURE 00028 00029 /// \ingroup (OSGeoFDOCommandsFeature) 00030 /// \interface OSGeo::FDO::Commands::Feature::IDelete 00031 /// \brief 00032 /// The IDelete interface defines the FDO Delete command, which deletes instances of 00033 /// a given class that match the specified criteria. Input to the delete command 00034 /// includes the name of the class, and filter criteria by which to identify the 00035 /// instances to be deleted. The filter may be specified either as text or as an 00036 /// expression tree (most likely produced by a query builder). The delete 00037 /// command can delete instances at global scope or instances/values nested 00038 /// within an object collection property. Instances at global scope are referred 00039 /// to simply by the class name. Instances at a nested scope (i.e. instances 00040 /// within a object collection property) are referred to by the containing class 00041 /// name, followed by a '.', followed by the object collection property name. 00042 public __gc __interface IDelete : public NAMESPACE_OSGEO_FDO_COMMANDS::IFeatureCommand 00043 { 00044 public: 00045 /// \brief 00046 /// Executes the delete command and returns the number of features 00047 /// deleted 00048 /// 00049 /// \return 00050 /// Returns the number of features deleted. 00051 /// 00052 System::Int32 Execute(); 00053 00054 /// \brief 00055 /// Deleting objects might result in lock conflicts if objects 00056 /// to be deleted are not exclusively locked for the user attempting to 00057 /// delete the object. A lock conflict report is generated. 00058 /// This function returns a lock conflict reader that provides 00059 /// access to the list of lock conflicts that occurred during the execution 00060 /// of the delete operation. 00061 /// 00062 /// \return 00063 /// Returns a lock conflict reader. 00064 /// 00065 __property NAMESPACE_OSGEO_FDO_COMMANDS_LOCKING::ILockConflictReader* get_LockConflicts(); 00066 }; 00067 00068 END_NAMESPACE_OSGEO_FDO_COMMANDS_FEATURE 00069 00070
Comments or suggestions? Send us feedback. |