GemStone::GemFire::Cache::Generic::IPdxSerializable Interface Reference

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


Detailed Description

When a domain class implements PdxSerializable it marks itself as a PDX. The implementation of toData provides the serialization code and fromData provides the deserialization code. These methods also define each field name and field type of the PDX. Domain classes should serialize and de-serialize all its member fields in same order in toData and fromData method. A domain class which implements this interface should register delgate Serializable.RegisterPdxType to create new instance of type for de-serilization.

Public Member Functions

void FromData (IPdxReader^ reader)
void ToData (IPdxWriter^ writer)

Member Function Documentation

void GemStone::GemFire::Cache::Generic::IPdxSerializable::FromData ( IPdxReader^   reader  ) 

Deserialize this object.

Parameters:
reader the IPdxReader stream to use for reading the object data

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

void GemStone::GemFire::Cache::Generic::IPdxSerializable::ToData ( IPdxWriter^   writer  ) 

Serializes this object in gemfire PDX format.

Parameters:
writer the IPdxWriter object to use for serializing the object

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


GemFire C++ Cache .NET API Documentation