FDO .NET API Reference Feature Data Objects

mgITransactionImp.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\Connections\mgITransaction.h"
00022 
00023 #include <Fdo\Connections\ITransaction.h>
00024 
00025 BEGIN_NAMESPACE_OSGEO_FDO_CONNECTIONS
00026 
00027 /// \ingroup (OSGeoFDOConnections)
00028 /// \brief
00029 /// The ITransaction interface represents a transaction to be performed in a DataStore, and is implemented
00030 /// by feature providers that support transactions.
00031 private __gc class ITransactionImp : public NAMESPACE_OSGEO_RUNTIME::Disposable, public NAMESPACE_OSGEO_FDO_CONNECTIONS::ITransaction
00032 {
00033 public:
00034     /// \brief
00035     ///  Gets the IConnection object associated with the transaction.
00036     /// 
00037     /// \return
00038     /// Returns IConnection object
00039     /// 
00040     __property NAMESPACE_OSGEO_FDO_CONNECTIONS::IConnection* get_Connection();
00041 
00042     /// \brief
00043     ///  Commits the transaction.
00044     /// 
00045     /// \return
00046     /// Returns nothing
00047     /// 
00048     System::Void Commit();
00049 
00050     /// \brief
00051     ///  Rolls back a transaction from a pending state.
00052     /// 
00053     /// \return
00054     /// Returns nothing
00055     /// 
00056     System::Void Rollback();
00057 
00058 public private:
00059     ITransactionImp(System::IntPtr unmanaged, System::Boolean autoDelete);
00060 
00061     inline FdoITransaction* GetImpObj();
00062 
00063 /// \cond DOXYGEN-IGNORE
00064 protected:
00065     System::Void ReleaseUnmanagedObject();
00066 /// \endcond
00067 };
00068 
00069 END_NAMESPACE_OSGEO_FDO_CONNECTIONS
00070 
00071 

Comments or suggestions? Send us feedback.