FDO .NET API Reference Feature Data Objects

mgISQLCommandImp.h

Go to the documentation of this file.
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\mgICommandImp.h"
00022 #include "FDO\Commands\SQL\mgISQLCommand.h"
00023 
00024 class FdoISQLCommand;
00025 
00026 BEGIN_NAMESPACE_OSGEO_FDO_COMMANDS_SQL
00027 public __gc __interface ISQLDataReader;
00028 
00029 /// \ingroup (OSGeoFDOCommandsSQL)
00030 /// \brief
00031 /// The ISQLCommandImp class is a concrete implementation of ISQLCommand.
00032 /// The ISQLCommand interface defines the SQL command, which supports the
00033 /// execution of a SQL statement against an underlying RDBMS. Two execute
00034 /// methods are provided to distinguish between statements that return table data
00035 /// versus those that execute non query type operations.
00036 private __gc class ISQLCommandImp : public NAMESPACE_OSGEO_FDO_COMMANDS::ICommandImp, 
00037                                     public NAMESPACE_OSGEO_FDO_COMMANDS_SQL::ISQLCommand
00038 {
00039 public:
00040     /// \brief
00041     /// Gets the SQL statement to be executed as a string.
00042     /// 
00043     /// \return
00044     /// Returns the SQL statement.
00045     /// 
00046     __property System::String* get_SQLStatement();
00047 
00048     /// \brief
00049     /// Sets the SQL statement to be executed as a string.
00050     /// 
00051     /// \param value 
00052     /// Input the SQL statement.
00053     /// 
00054     /// \return
00055     /// Returns nothing
00056     /// 
00057     __property System::Void set_SQLStatement(System::String* value);
00058 
00059     /// \brief
00060     /// Executes the SQL statement against the connection object and returns
00061     /// the number of rows affected.
00062     /// 
00063     /// \return
00064     /// Returns the number of rows affected.
00065     /// 
00066     System::Int32 ExecuteNonQuery();
00067 
00068     /// \brief
00069     /// Executes the SQL statement against the connection object and returns
00070     /// an ISQLDataReader.
00071     /// 
00072     /// \return
00073     /// Returns the data reader.
00074     /// 
00075     NAMESPACE_OSGEO_FDO_COMMANDS_SQL::ISQLDataReader* ExecuteReader();
00076 
00077 public private:
00078     ISQLCommandImp(System::IntPtr unmanaged, System::Boolean autoDelete) : NAMESPACE_OSGEO_FDO_COMMANDS::ICommandImp(unmanaged, autoDelete)
00079     {
00080 
00081     }
00082 
00083     inline FdoISQLCommand* GetImpObj();
00084 };
00085 
00086 END_NAMESPACE_OSGEO_FDO_COMMANDS_SQL
00087 
00088 

Comments or suggestions? Send us feedback.