FDO .NET API Reference Feature Data Objects

mgILongTransactionReader.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 BEGIN_NAMESPACE_OSGEO_FDO_COMMANDS_LONGTRANSACTION
00022 
00023 /// \ingroup (OSGeoFDOCommandsLongTransaction)
00024 /// \interface OSGeo::FDO::Commands::LongTransaction::ILongTransactionReader
00025 /// \brief
00026 /// The ILongTransactionReader interface provides forward only,
00027 /// read-only functionality for enumerating long transactions.  A reference
00028 /// to an ILongTransactionReader is returned from the GetLongTransactions
00029 /// command. The initial position of the ILongTransactionReader is prior
00030 /// to the first item. Thus, you must call ReadNext to begin accessing any
00031 /// data.
00032 public __gc __interface ILongTransactionReader : public System::IDisposable
00033 {
00034 public:
00035     /// \brief
00036     /// Retrieves the name of the long transaction currently being
00037     /// read.
00038     /// 
00039     /// \return
00040     /// Returns the name of the long transaction.
00041     /// 
00042     System::String* GetName();
00043 
00044     /// \brief
00045     /// Retrieves the description of the long transaction currently
00046     /// being read.
00047     /// 
00048     /// \return
00049     /// Returns the description of the long transaction.
00050     /// 
00051     System::String* GetDescription();
00052 
00053     /// \brief
00054     /// Provides access to the direct descendent long transactions 
00055     /// for the long transaction being currently read. The caller can use the
00056     /// returned reader to get to the next level of descendents if required.
00057     /// The returned reader is empty if there are no descendents for the long
00058     /// transction.
00059     /// 
00060     /// \return
00061     /// Returns a long transaction reader with the direct descendents
00062     /// for the long transaction currently being read.
00063     /// 
00064     NAMESPACE_OSGEO_FDO_COMMANDS_LONGTRANSACTION::ILongTransactionReader* GetChildren();
00065 
00066     /// \brief
00067     /// Provides access to the direct ascendant long transactions for
00068     /// the long transaction being currently read. The caller can use the 
00069     /// returned reader to get to the next level of ascendants if required.
00070     /// The returned reader is empty if there are no ascendants for the long
00071     /// transaction
00072     /// 
00073     /// \return
00074     /// Returns a long transaction reader with the direct ascendants 
00075     /// for the long transaction currently being read.
00076     /// 
00077     NAMESPACE_OSGEO_FDO_COMMANDS_LONGTRANSACTION::ILongTransactionReader* GetParents();
00078 
00079     /// \brief
00080     /// Retrieves the owner of the long transaction currently being
00081     /// read.
00082     /// 
00083     /// \return
00084     /// Returns the owner name.
00085     /// 
00086     System::String* GetOwner();
00087 
00088     /// \brief
00089     /// Retrieves the creation date of the long transaction currently
00090     /// being read.
00091     /// 
00092     /// \return
00093     /// Returns the date when the long transaction was created.
00094     /// 
00095     System::DateTime GetCreationDate();
00096 
00097     /// \brief
00098     /// Returns true if the long transaction currently being read is
00099     /// the active long transaction.
00100     /// 
00101     /// \return
00102     /// Returns true if the long transaction is active.
00103     /// 
00104     System::Boolean IsActive();
00105 
00106     /// \brief
00107     /// Returns true if the long transaction currently being read is
00108     /// frozen.
00109     /// 
00110     /// \return
00111     /// Returns true if the long transaction is frozen.
00112     /// 
00113     System::Boolean IsFrozen();
00114 
00115     /// \brief
00116     /// Advances the reader to the next item. The default position of
00117     /// the reader is prior to the first item. Thus, you must call ReadNext
00118     /// to begin accessing any data.
00119     /// 
00120     /// \return
00121     /// Returns true if there is a next item.
00122     /// 
00123     System::Boolean ReadNext();
00124 
00125     /// \brief
00126     /// Closes the ILongTransactionReader object, freeing any
00127     /// resources it may be holding.
00128     /// 
00129     /// \return
00130     /// Returns nothing
00131     /// 
00132     System::Void Close();
00133 };
00134 
00135 END_NAMESPACE_OSGEO_FDO_COMMANDS_LONGTRANSACTION
00136 
00137 

Comments or suggestions? Send us feedback.