blob: abc82db60050f737d47b494d22bc39664048d33b [file] [log] [blame]
/*=========================================================================
* Copyright (c) 2002-2014 Pivotal Software, Inc. All Rights Reserved.
* This product is protected by U.S. and international copyright
* and intellectual property laws. Pivotal products are covered by
* more patents listed at http://www.pivotal.io/patents.
*=========================================================================
*/
#ifdef CSTX_COMMENTED
#pragma once
#include "gf_defs.hpp"
#include "EntryEventM.hpp"
#include "cppcache/TransactionEvent.hpp"
#include "impl/NativeWrapper.hpp"
#include "TransactionIdM.hpp"
using namespace System;
namespace GemStone
{
namespace GemFire
{
namespace Cache
{
ref class Cache;
/// <summary>
/// This class encapsulates events that occur for an transaction in a cache.
/// </summary>
public ref class TransactionEvent sealed
: public Internal::SBWrap<gemfire::TransactionEvent>
{
public:
/// <summary>
/// Gets the transaction id for this transaction.
/// </summary>
property GemStone::GemFire::Cache::TransactionId^ TransactionId
{
GemStone::GemFire::Cache::TransactionId^ get( );
}
/// <summary>
/// Returns an ordered list of every event for this transaction.
/// The event order is consistent with the order in which the operations were
/// performed during the transaction.
/// </summary>
property array<EntryEvent^>^ Events
{
array<EntryEvent^>^ get( );
}
/// <summary>
/// Gets the Cache for this transaction event
/// </summary>
property GemStone::GemFire::Cache::Cache^ Cache
{
GemStone::GemFire::Cache::Cache^ get( );
}
internal:
/// <summary>
/// Internal constructor to wrap a native object pointer
/// </summary>
/// <param name="nativeptr">The native object pointer</param>
inline TransactionEvent( const gemfire::TransactionEvent* nativeptr )
: SBWrap( const_cast<gemfire::TransactionEvent*>( nativeptr )) { }
};
}
}
}
#endif