GemStone::GemFire::Cache::Generic::IPdxReader Interface Reference

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


Detailed Description

A IPdxReader will be passed to IPdxSerializable.fromData or during deserialization of a PDX. The domain class needs to deserialize field members using this interface. This interface is implemented by Native Client. Each readXXX call will return the field's value. If the serialized PDX does not contain the named field then a default value will be returned. Standard Java defaults are used. For Objects this is null and for primitives it is 0 or 0.0.

Public Member Functions

bool HasField (String^ fieldName)
bool IsIdentityField (String^ fieldName)
array< array< Byte >^>^ ReadArrayOfByteArrays (String^ fieldName)
Boolean ReadBoolean (String^ fieldName)
array< Boolean >^ ReadBooleanArray (String^ fieldName)
SByte ReadByte (String^ fieldName)
array< Byte >^ ReadByteArray (String^ fieldName)
Char ReadChar (String^ fieldName)
array< Char >^ ReadCharArray (String^ fieldName)
System::DateTime ReadDate (String^ fieldName)
double ReadDouble (String^ fieldName)
array< double >^ ReadDoubleArray (String^ fieldName)
Object^ ReadField (String^ fieldName, Type^ type)
float ReadFloat (String^ fieldName)
array< float >^ ReadFloatArray (String^ fieldName)
Int32 ReadInt (String^ fieldName)
array< System::Int32 >^ ReadIntArray (String^ fieldName)
Int64 ReadLong (String^ fieldName)
array< Int64 >^ ReadLongArray (String^ fieldName)
Object^ ReadObject (String^ fieldName)
List< Object^ >^ ReadObjectArray (String^ fieldName)
short ReadShort (String^ fieldName)
array< short >^ ReadShortArray (String^ fieldName)
String^ ReadString (String^ fieldName)
array< String^ >^ ReadStringArray (String^ fieldName)
IPdxUnreadFieldsReadUnreadFields ()

Member Function Documentation

bool GemStone::GemFire::Cache::Generic::IPdxReader::HasField ( String^   fieldName  ) 

Whether field is available or not.

Parameters:
fieldName The name of a member field.

bool GemStone::GemFire::Cache::Generic::IPdxReader::IsIdentityField ( String^   fieldName  ) 

Whether field is used as identity field or not.

Parameters:
fieldName The name of a member field.

array<array<Byte>^> ^ GemStone::GemFire::Cache::Generic::IPdxReader::ReadArrayOfByteArrays ( String^   fieldName  ) 

Read a two-dimenesional signed byte array from the data.

Parameters:
fieldName The name of a member field whose value to read.

Boolean GemStone::GemFire::Cache::Generic::IPdxReader::ReadBoolean ( String^   fieldName  ) 

Read a boolean value from the stream.

Parameters:
fieldName The name of a member field whose value to read.

array<Boolean> ^ GemStone::GemFire::Cache::Generic::IPdxReader::ReadBooleanArray ( String^   fieldName  ) 

Read a boolean array from the data.

Parameters:
fieldName The name of a member field whose value to read.

SByte GemStone::GemFire::Cache::Generic::IPdxReader::ReadByte ( String^   fieldName  ) 

Read a signed byte from the stream.

Parameters:
fieldName The name of a member field whose value to read.

array<Byte> ^ GemStone::GemFire::Cache::Generic::IPdxReader::ReadByteArray ( String^   fieldName  ) 

Read a signed byte array from the data.

Parameters:
fieldName The name of a member field whose value to read.

Char GemStone::GemFire::Cache::Generic::IPdxReader::ReadChar ( String^   fieldName  ) 

Read a char value from the stream.

Parameters:
fieldName The name of a member field whose value to read.

array<Char> ^ GemStone::GemFire::Cache::Generic::IPdxReader::ReadCharArray ( String^   fieldName  ) 

Read a char array from the data.

Parameters:
fieldName The name of a member field whose value to read.

System::DateTime GemStone::GemFire::Cache::Generic::IPdxReader::ReadDate ( String^   fieldName  ) 

Read a Date from the data.

Parameters:
fieldName The name of a member field whose value to read.

double GemStone::GemFire::Cache::Generic::IPdxReader::ReadDouble ( String^   fieldName  ) 

Read a double precision number from the stream.

Parameters:
fieldName The name of a member field whose value to read.

array<double> ^ GemStone::GemFire::Cache::Generic::IPdxReader::ReadDoubleArray ( String^   fieldName  ) 

Read a double array from the data.

Parameters:
fieldName The name of a member field whose value to read.

Object ^ GemStone::GemFire::Cache::Generic::IPdxReader::ReadField ( String^   fieldName,
Type^   type 
)

Reads the named field of Type "type" and returns its value.

Parameters:
fieldName The name of a member field.
type The type of a member field, which value needs to read.

float GemStone::GemFire::Cache::Generic::IPdxReader::ReadFloat ( String^   fieldName  ) 

Read a floating point number from the stream.

Parameters:
fieldName The name of a member field whose value to read.

array<float> ^ GemStone::GemFire::Cache::Generic::IPdxReader::ReadFloatArray ( String^   fieldName  ) 

Read a float from the data.

Parameters:
fieldName The name of a member field whose value to read.

Int32 GemStone::GemFire::Cache::Generic::IPdxReader::ReadInt ( String^   fieldName  ) 

Read a 32-bit integer from the stream.

Parameters:
fieldName The name of a member field whose value to read.

array<System::Int32> ^ GemStone::GemFire::Cache::Generic::IPdxReader::ReadIntArray ( String^   fieldName  ) 

Read a int array from the data.

Parameters:
fieldName The name of a member field whose value to read.

Int64 GemStone::GemFire::Cache::Generic::IPdxReader::ReadLong ( String^   fieldName  ) 

Read a 64-bit integer from the stream.

Parameters:
fieldName The name of a member field whose value to read.

array<Int64> ^ GemStone::GemFire::Cache::Generic::IPdxReader::ReadLongArray ( String^   fieldName  ) 

Read a long array from the data.

Parameters:
fieldName The name of a member field whose value to read.

Object ^ GemStone::GemFire::Cache::Generic::IPdxReader::ReadObject ( String^   fieldName  ) 

Read a serializable object from the data. Null objects are handled.

Parameters:
fieldName The name of a member field whose value to read.

List<Object^> ^ GemStone::GemFire::Cache::Generic::IPdxReader::ReadObjectArray ( String^   fieldName  ) 

Read a object array from the data.

Parameters:
fieldName The name of a member field whose value to read.

short GemStone::GemFire::Cache::Generic::IPdxReader::ReadShort ( String^   fieldName  ) 

Read a 16-bit integer from the stream.

Parameters:
fieldName The name of a member field whose value to read.

array<short> ^ GemStone::GemFire::Cache::Generic::IPdxReader::ReadShortArray ( String^   fieldName  ) 

Read a short from the data.

Parameters:
fieldName The name of a member field whose value to read.

String ^ GemStone::GemFire::Cache::Generic::IPdxReader::ReadString ( String^   fieldName  ) 

Read a string after java-modified UTF-8 decoding from the stream.

Parameters:
fieldName The name of a member field whose value to read.

array<String^> ^ GemStone::GemFire::Cache::Generic::IPdxReader::ReadStringArray ( String^   fieldName  ) 

Read a string array from the data.

Parameters:
fieldName The name of a member field whose value to read.

IPdxUnreadFields ^ GemStone::GemFire::Cache::Generic::IPdxReader::ReadUnreadFields (  ) 

To preserve unread data, which get added in new version of type.

<return>Unread data.</return>


GemFire C++ Cache .NET API Documentation