GemStone::GemFire::Cache::Generic::IWritablePdxInstance Interface Reference

Inherited by GemStone::GemFire::Cache::Generic::Internal::PdxInstanceImpl [private].


Detailed Description

WritablePdxInstance is a IPdxInstance that also supports field modification using the SetFieldmethod. To get a WritablePdxInstance call IPdxInstance.CreateWriter.

Public Member Functions

void SetField (String^ fieldName, Object^ value)

Member Function Documentation

void GemStone::GemFire::Cache::Generic::IWritablePdxInstance::SetField ( String^   fieldName,
Object^   value 
)

Set the existing named field to the given value. The setField method has copy-on-write semantics. So for the modifications to be stored in the cache the WritablePdxInstance must be put into a region after setField has been called one or more times.

param name="fieldName"> name of the field whose value will be set

param name="value"> value that will be assigned to the field

exception cref="IllegalStateException"/> if the named field does not exist or if the type of the value is not compatible with the field

Implemented in GemStone::GemFire::Cache::Generic::Internal::PdxInstanceImpl.


GemFire C++ Cache .NET API Documentation