GemStone::GemFire::Cache::Generic::IPdxWriter Interface Reference

Inherited by GemStone::GemFire::Cache::Generic::Internal::PdxLocalWriter.


Detailed Description

A IPdxWriter will be passed to IPdxSerializable.toData when it is serializing the domain class. The domain class needs to serialize member fields using this interface. This interface is implemented by Native Client.

Public Member Functions

IPdxWriterMarkIdentityField (String^ fieldName)
IPdxWriterWriteArrayOfByteArrays (String^ fieldName, array< array< Byte >^>^byteArrays)
IPdxWriterWriteBoolean (String^ fieldName, Boolean value)
IPdxWriterWriteBooleanArray (String^ fieldName, array< bool >^boolArray)
IPdxWriterWriteByte (String^ fieldName, SByte value)
IPdxWriterWriteByteArray (String^ fieldName, array< Byte >^byteArray)
IPdxWriterWriteChar (String^ fieldName, Char value)
IPdxWriterWriteCharArray (String^ fieldName, array< Char >^charArray)
IPdxWriterWriteDate (String^ fieldName, System::DateTime date)
IPdxWriterWriteDouble (String^ fieldName, double value)
IPdxWriterWriteDoubleArray (String^ fieldName, array< double >^doubleArray)
IPdxWriterWriteField (String^ fieldName, Object^ fieldValue, Type^ type)
IPdxWriterWriteFloat (String^ fieldName, float value)
IPdxWriterWriteFloatArray (String^ fieldName, array< float >^floatArray)
IPdxWriterWriteInt (String^ fieldName, Int32 value)
IPdxWriterWriteIntArray (String^ fieldName, array< System::Int32 >^intArray)
IPdxWriterWriteLong (String^ fieldName, Int64 value)
IPdxWriterWriteLongArray (String^ fieldName, array< Int64 >^longArray)
IPdxWriterWriteObject (String^ fieldName, Object^ obj)
IPdxWriterWriteObjectArray (String^ fieldName, List< Object^ >^objectArray)
IPdxWriterWriteShort (String^ fieldName, Int16 value)
IPdxWriterWriteShortArray (String^ fieldName, array< System::Int16 >^shortArray)
IPdxWriterWriteString (String^ fieldName, String^ value)
IPdxWriterWriteStringArray (String^ fieldName, array< String^ >^stringArray)
IPdxWriterWriteUnreadFields (IPdxUnreadFields^ unread)

Member Function Documentation

IPdxWriter ^ GemStone::GemFire::Cache::Generic::IPdxWriter::MarkIdentityField ( String^   fieldName  ) 

Indicate that the given field name should be included in hashCode and equals checks of this object on a server that is using CacheFactory#setPdxReadSerialized(boolean) or when a client executes a query on a server.

The fields that are marked as identity fields are used to generate the hashCode and equals methods of PdxInstance. Because of this, the identity fields should themselves either be primatives, or implement hashCode and equals.

If no fields are set as identity fields, then all fields will be used in hashCode and equals checks.

The identity fields should make marked after they are written using a write* method.

Parameters:
fieldName the name of the field that should be used in the as part of the identity.
Returns:
this PdxWriter

IPdxWriter ^ GemStone::GemFire::Cache::Generic::IPdxWriter::WriteArrayOfByteArrays ( String^   fieldName,
array< array< Byte >^>^  byteArrays 
)

Write an collection to the IPdxWriter.

Parameters:
fieldName The name of the field associated with the value.
byteArrays The byteArrays to write.

IPdxWriter ^ GemStone::GemFire::Cache::Generic::IPdxWriter::WriteBoolean ( String^   fieldName,
Boolean  value 
)

Write a boolean value to the IPdxWriter.

Parameters:
fieldName The name of the field associated with the value.
value The boolean value to write.

IPdxWriter ^ GemStone::GemFire::Cache::Generic::IPdxWriter::WriteBooleanArray ( String^   fieldName,
array< bool >^  boolArray 
)

Write an collection to the IPdxWriter.

Parameters:
fieldName The name of the field associated with the value.
boolArray The boolArray to write.

IPdxWriter ^ GemStone::GemFire::Cache::Generic::IPdxWriter::WriteByte ( String^   fieldName,
SByte  value 
)

Write a byte to the IPdxWriter.

Parameters:
fieldName The name of the field associated with the value.
value The byte to write.

IPdxWriter ^ GemStone::GemFire::Cache::Generic::IPdxWriter::WriteByteArray ( String^   fieldName,
array< Byte >^  byteArray 
)

Write an collection to the IPdxWriter.

Parameters:
fieldName The name of the field associated with the value.
byteArray The byteArray to write.

IPdxWriter ^ GemStone::GemFire::Cache::Generic::IPdxWriter::WriteChar ( String^   fieldName,
Char  value 
)

Write a char value to the IPdxWriter.

Parameters:
fieldName The name of the field associated with the value.
value The char value to write.

IPdxWriter ^ GemStone::GemFire::Cache::Generic::IPdxWriter::WriteCharArray ( String^   fieldName,
array< Char >^  charArray 
)

Write an collection to the IPdxWriter.

Parameters:
fieldName The name of the field associated with the value.
charArray The charArray to write.

IPdxWriter ^ GemStone::GemFire::Cache::Generic::IPdxWriter::WriteDate ( String^   fieldName,
System::DateTime  date 
)

Write an collection to the IPdxWriter.

Parameters:
fieldName The name of the field associated with the value.
date The date to write.

IPdxWriter ^ GemStone::GemFire::Cache::Generic::IPdxWriter::WriteDouble ( String^   fieldName,
double  value 
)

Write a double precision real number to the IPdxWriter.

Parameters:
fieldName The name of the field associated with the value.
value The double precision real number to write.

IPdxWriter ^ GemStone::GemFire::Cache::Generic::IPdxWriter::WriteDoubleArray ( String^   fieldName,
array< double >^  doubleArray 
)

Write an collection to the IPdxWriter.

Parameters:
fieldName The name of the field associated with the value.
doubleArray The doubleArray to write.

IPdxWriter ^ GemStone::GemFire::Cache::Generic::IPdxWriter::WriteField ( String^   fieldName,
Object^   fieldValue,
Type^   type 
)

Writes the named field with the given value and type to the serialized form. This method uses the fieldType to determine which WriteXXX method it should call. If it can not find a specific match to a writeXXX method it will call . this PdxWriter

IPdxWriter ^ GemStone::GemFire::Cache::Generic::IPdxWriter::WriteFloat ( String^   fieldName,
float  value 
)

Write a float to the IPdxWriter.

Parameters:
fieldName The name of the field associated with the value.
value The float value to write.

IPdxWriter ^ GemStone::GemFire::Cache::Generic::IPdxWriter::WriteFloatArray ( String^   fieldName,
array< float >^  floatArray 
)

Write an collection to the IPdxWriter.

Parameters:
fieldName The name of the field associated with the value.
floatArray The floatArray to write.

IPdxWriter ^ GemStone::GemFire::Cache::Generic::IPdxWriter::WriteInt ( String^   fieldName,
Int32  value 
)

Write a 32-bit integer to the IPdxWriter.

Parameters:
fieldName The name of the field associated with the value.
value The 32-bit integer to write.

IPdxWriter ^ GemStone::GemFire::Cache::Generic::IPdxWriter::WriteIntArray ( String^   fieldName,
array< System::Int32 >^  intArray 
)

Write an collection to the IPdxWriter.

Parameters:
fieldName The name of the field associated with the value.
intArray The intArray to write.

IPdxWriter ^ GemStone::GemFire::Cache::Generic::IPdxWriter::WriteLong ( String^   fieldName,
Int64  value 
)

Write a 64-bit integer to the IPdxWriter.

Parameters:
fieldName The name of the field associated with the value.
value The 64-bit integer to write.

IPdxWriter ^ GemStone::GemFire::Cache::Generic::IPdxWriter::WriteLongArray ( String^   fieldName,
array< Int64 >^  longArray 
)

Write an collection to the IPdxWriter.

Parameters:
fieldName The name of the field associated with the value.
longArray The longArray to write.

IPdxWriter ^ GemStone::GemFire::Cache::Generic::IPdxWriter::WriteObject ( String^   fieldName,
Object^   obj 
)

Write an Object object to the IPdxWriter.

Parameters:
fieldName The name of the field associated with the value.
obj The object to write.

IPdxWriter ^ GemStone::GemFire::Cache::Generic::IPdxWriter::WriteObjectArray ( String^   fieldName,
List< Object^ >^  objectArray 
)

Write an collection to the IPdxWriter.

Parameters:
fieldName The name of the field associated with the value.
objectArray The objectArray to write.

IPdxWriter ^ GemStone::GemFire::Cache::Generic::IPdxWriter::WriteShort ( String^   fieldName,
Int16  value 
)

Write a 16-bit integer to the IPdxWriter.

Parameters:
fieldName The name of the field associated with the value.
value The 16-bit integer to write.

IPdxWriter ^ GemStone::GemFire::Cache::Generic::IPdxWriter::WriteShortArray ( String^   fieldName,
array< System::Int16 >^  shortArray 
)

Write an collection to the IPdxWriter.

Parameters:
fieldName The name of the field associated with the value.
shortArray The shortArray to write.

IPdxWriter ^ GemStone::GemFire::Cache::Generic::IPdxWriter::WriteString ( String^   fieldName,
String^   value 
)

Write a string using java-modified UTF-8 encoding to IPdxWriter.

Parameters:
fieldName The name of the field associated with the value.
value The UTF encoded string to write.

IPdxWriter ^ GemStone::GemFire::Cache::Generic::IPdxWriter::WriteStringArray ( String^   fieldName,
array< String^ >^  stringArray 
)

Write an collection to the IPdxWriter.

Parameters:
fieldName The name of the field associated with the value.
stringArray The stringArray to write.

IPdxWriter ^ GemStone::GemFire::Cache::Generic::IPdxWriter::WriteUnreadFields ( IPdxUnreadFields^   unread  ) 

To append unread data with updated data.

Returns:
this PdxWriter


GemFire C++ Cache .NET API Documentation