VMware GemFire Native C++ Reference
9.1
|
WritablePdxInstance is a PdxInstance that also supports field modification using the setField method. More...
Inherits apache::geode::client::PdxInstance.
Public Member Functions | |
virtual int32_t | classId () const |
return the classId of the instance being serialized. More... | |
virtual WritablePdxInstancePtr | createWriter ()=0 |
Creates and returns a WritablePdxInstance whose initial values are those of this PdxInstance. More... | |
virtual int8_t | DSFID () const |
return the Data Serialization Fixed ID type. More... | |
virtual Serializable * | fromData (DataInput &input) |
deserialize this object, typical implementation should return the 'this' pointer. More... | |
virtual void | fromData (PdxReaderPtr input)=0 |
Deserialize this object. More... | |
virtual const char * | getClassName () const =0 |
Return the full name of the class that this pdx instance represents. More... | |
virtual void | getField (const char *fieldname, CacheablePtr &value) const =0 |
Reads the named field and set its value in CacheablePtr type out param. More... | |
virtual void | getField (const char *fieldname, bool &value) const =0 |
Reads the named field and set its value in bool type out param. More... | |
virtual void | getField (const char *fieldname, signed char &value) const =0 |
Reads the named field and set its value in signed char type out param. More... | |
virtual void | getField (const char *fieldname, unsigned char &value) const =0 |
Reads the named field and set its value in unsigned char type out param. More... | |
virtual void | getField (const char *fieldname, int16_t &value) const =0 |
Reads the named field and set its value in int16_t type out param. More... | |
virtual void | getField (const char *fieldname, int32_t &value) const =0 |
Reads the named field and set its value in int32_t type out param. More... | |
virtual void | getField (const char *fieldname, int64_t &value) const =0 |
Reads the named field and set its value in int64_t type out param. More... | |
virtual void | getField (const char *fieldname, float &value) const =0 |
Reads the named field and set its value in float type out param. More... | |
virtual void | getField (const char *fieldname, double &value) const =0 |
Reads the named field and set its value in double type out param. More... | |
virtual void | getField (const char *fieldName, wchar_t &value) const =0 |
Reads the named field and set its value in wchar_t type out param. More... | |
virtual void | getField (const char *fieldName, char &value) const =0 |
Reads the named field and set its value in char type out param. More... | |
virtual void | getField (const char *fieldname, bool **value, int32_t &length) const =0 |
Reads the named field and set its value in bool array type out param. More... | |
virtual void | getField (const char *fieldname, signed char **value, int32_t &length) const =0 |
Reads the named field and set its value in signed char array type out param. More... | |
virtual void | getField (const char *fieldname, unsigned char **value, int32_t &length) const =0 |
Reads the named field and set its value in unsigned char array type out param. More... | |
virtual void | getField (const char *fieldname, int16_t **value, int32_t &length) const =0 |
Reads the named field and set its value in int16_t array type out param. More... | |
virtual void | getField (const char *fieldname, int32_t **value, int32_t &length) const =0 |
Reads the named field and set its value in int32_t array type out param. More... | |
virtual void | getField (const char *fieldname, int64_t **value, int32_t &length) const =0 |
Reads the named field and set its value in int64_t array type out param. More... | |
virtual void | getField (const char *fieldname, float **value, int32_t &length) const =0 |
Reads the named field and set its value in float array type out param. More... | |
virtual void | getField (const char *fieldname, double **value, int32_t &length) const =0 |
Reads the named field and set its value in double array type out param. More... | |
virtual void | getField (const char *fieldName, wchar_t **value, int32_t &length) const =0 |
Reads the named field and set its value in wchar_t array type out param. More... | |
virtual void | getField (const char *fieldName, char **value, int32_t &length) const =0 |
Reads the named field and set its value in char array type out param. More... | |
virtual void | getField (const char *fieldname, wchar_t **value) const =0 |
Reads the named field and set its value in wchar_t* type out param. More... | |
virtual void | getField (const char *fieldname, char **value) const =0 |
Reads the named field and set its value in char* type out param. More... | |
virtual void | getField (const char *fieldname, wchar_t ***value, int32_t &length) const =0 |
Reads the named field and set its value in wchar_t* array type out param. More... | |
virtual void | getField (const char *fieldname, char ***value, int32_t &length) const =0 |
Reads the named field and set its value in char* array type out param. More... | |
virtual void | getField (const char *fieldname, CacheableDatePtr &value) const =0 |
Reads the named field and set its value in CacheableDatePtr type out param. More... | |
virtual void | getField (const char *fieldName, int8_t ***value, int32_t &arrayLength, int32_t *&elementLength) const =0 |
Reads the named field and set its value in array of byte arrays type out param. More... | |
virtual void | getField (const char *fieldname, CacheableObjectArrayPtr &value) const =0 |
Reads the named field and set its value in CacheableObjectArrayPtr type out param. More... | |
virtual CacheableStringArrayPtr | getFieldNames ()=0 |
Return an unmodifiable list of the field names on this PdxInstance. More... | |
virtual PdxFieldTypes::PdxFieldType | getFieldType (const char *fieldname) const =0 |
Return the type. More... | |
virtual PdxSerializablePtr | getObject ()=0 |
Deserializes and returns the domain object that this instance represents. More... | |
virtual bool | hasField (const char *fieldname)=0 |
Checks if the named field exists and returns the result. More... | |
virtual int32_t | hashcode () const =0 |
Generates a hashcode based on the identity fields of this PdxInstance. More... | |
virtual bool | isIdentityField (const char *fieldname)=0 |
Checks if the named field was PdxWriter#markIdentityFieldmarked as an identity field. More... | |
virtual int32_t | logString (char *buffer, int32_t maxLength) const |
Copy the string form of a key into a char* buffer for logging purposes. More... | |
virtual uint32_t | objectSize () const =0 |
virtual bool | operator== (const CacheableKey &other) const =0 |
Returns true if the given CacheableKey derived object is equals to this instance. More... | |
void | preserveSB () const |
Atomically increment reference count. More... | |
int32_t | refCount () |
void | releaseSB () const |
Atomically decrement reference count, the SharedBase object is automatically deleted when its reference count goes to zero. More... | |
virtual void | setField (const char *fieldName, CacheablePtr value)=0 |
Set the existing named field to the given value. More... | |
virtual void | setField (const char *fieldName, bool value)=0 |
Set the existing named field to the given value. More... | |
virtual void | setField (const char *fieldName, signed char value)=0 |
Set the existing named field to the given value. More... | |
virtual void | setField (const char *fieldName, unsigned char value)=0 |
Set the existing named field to the given value. More... | |
virtual void | setField (const char *fieldName, int16_t value)=0 |
Set the existing named field to the given value. More... | |
virtual void | setField (const char *fieldName, int32_t value)=0 |
Set the existing named field to the given value. More... | |
virtual void | setField (const char *fieldName, int64_t value)=0 |
Set the existing named field to the given value. More... | |
virtual void | setField (const char *fieldName, float value)=0 |
Set the existing named field to the given value. More... | |
virtual void | setField (const char *fieldName, double value)=0 |
Set the existing named field to the given value. More... | |
virtual void | setField (const char *fieldName, wchar_t value)=0 |
Set the existing named field to the given value. More... | |
virtual void | setField (const char *fieldName, char value)=0 |
Set the existing named field to the given value. More... | |
virtual void | setField (const char *fieldName, CacheableDatePtr value)=0 |
Set the existing named field to the given value. More... | |
virtual void | setField (const char *fieldName, bool *value, int32_t length)=0 |
Set the existing named field to the given value. More... | |
virtual void | setField (const char *fieldName, signed char *value, int32_t length)=0 |
Set the existing named field to the given value. More... | |
virtual void | setField (const char *fieldName, unsigned char *value, int32_t length)=0 |
Set the existing named field to the given value. More... | |
virtual void | setField (const char *fieldName, int16_t *value, int32_t length)=0 |
Set the existing named field to the given value. More... | |
virtual void | setField (const char *fieldName, int32_t *value, int32_t length)=0 |
Set the existing named field to the given value. More... | |
virtual void | setField (const char *fieldName, int64_t *value, int32_t length)=0 |
Set the existing named field to the given value. More... | |
virtual void | setField (const char *fieldName, float *value, int32_t length)=0 |
Set the existing named field to the given value. More... | |
virtual void | setField (const char *fieldName, double *value, int32_t length)=0 |
Set the existing named field to the given value. More... | |
virtual void | setField (const char *fieldName, const wchar_t *value)=0 |
Set the existing named field to the given value. More... | |
virtual void | setField (const char *fieldName, const char *value)=0 |
Set the existing named field to the given value. More... | |
virtual void | setField (const char *fieldName, wchar_t *value, int32_t length)=0 |
Set the existing named field to the given value. More... | |
virtual void | setField (const char *fieldName, char *value, int32_t length)=0 |
Set the existing named field to the given value. More... | |
virtual void | setField (const char *fieldName, wchar_t **value, int32_t length)=0 |
Set the existing named field to the given value. More... | |
virtual void | setField (const char *fieldName, char **value, int32_t length)=0 |
Set the existing named field to the given value. More... | |
virtual void | setField (const char *fieldName, int8_t **value, int32_t arrayLength, int32_t *elementLength)=0 |
Set the existing named field to the given value. More... | |
virtual void | setField (const char *fieldName, CacheableObjectArrayPtr value)=0 |
Set the existing named field to the given value. More... | |
virtual void | toData (DataOutput &output) const |
serialize this object. More... | |
virtual void | toData (PdxWriterPtr output)=0 |
serialize this object in geode PDX format. More... | |
virtual CacheableStringPtr | toString () const =0 |
Prints out all of the identity fields of this PdxInstance. More... | |
virtual int8_t | typeId () const |
return the typeId byte of the instance being serialized. More... | |
virtual | ~WritablePdxInstance () |
public methods More... | |
Static Public Member Functions | |
template<class PRIM > | |
static CacheableKeyPtr | create (const PRIM value) |
Factory method that creates the key type that matches the type of value. More... | |
static void | registerPdxSerializer (PdxSerializerPtr pdxSerializer) |
Register the PDX serializer which can handle serialization for instances of user domain classes. More... | |
static void | registerPdxType (TypeFactoryMethodPdx creationFunction) |
register an Pdx instance factory method for a given type. More... | |
static void | registerType (TypeFactoryMethod creationFunction) |
register an instance factory method for a given type. More... | |
Protected Member Functions | |
WritablePdxInstance () | |
constructors More... | |
WritablePdxInstance is a PdxInstance that also supports field modification using the setField method.
To get a WritablePdxInstance call PdxInstance#createWriter.
|
inlinevirtual |
public methods
destructor
|
inlineprotected |
constructors
|
inlinevirtualinherited |
return the classId of the instance being serialized.
This is used by deserialization to determine what instance type to create and derserialize into.
|
inlinestaticinherited |
Factory method that creates the key type that matches the type of value.
For customer defined derivations of CacheableKey, the method apache::geode::client::createKey may be overloaded. For pointer types (e.g. char*) the method apache::geode::client::createKeyArr may be overloaded.
|
pure virtualinherited |
Creates and returns a WritablePdxInstance whose initial values are those of this PdxInstance.
This call returns a copy of the current field values so modifications made to the returned value will not modify this PdxInstance.
|
virtualinherited |
return the Data Serialization Fixed ID type.
This is used to determine what instance type to create and deserialize into.
Note that this should not be overridden by custom implementations and is reserved only for builtin types.
Reimplemented in apache::geode::client::Struct, and apache::geode::client::CacheableUndefined.
|
inlinevirtualinherited |
deserialize this object, typical implementation should return the 'this' pointer.
This is an internal method.
Implements apache::geode::client::Serializable.
|
pure virtualinherited |
Deserialize this object.
This is an internal method.
PdxReader | to Deserialize the PDX object |
|
pure virtualinherited |
Return the full name of the class that this pdx instance represents.
IllegalStateException | if the PdxInstance typeid is not defined yet, to get classname or if PdxType is not defined for PdxInstance. |
|
pure virtualinherited |
Reads the named field and set its value in CacheablePtr type out param.
CacheablePtr type is corresponding to java object type.
fieldname | name of the field to read |
value | value of the field to be set with CacheablePtr type. |
IllegalStateException | if PdxInstance doesn't has the named field. For deserialization C++ Native Client requires the domain class to be registered. |
|
pure virtualinherited |
Reads the named field and set its value in bool type out param.
bool type is corresponding to java boolean type.
fieldname | name of the field to read |
value | value of the field to be set with bool type. |
IllegalStateException | if PdxInstance doesn't has the named field. |
|
pure virtualinherited |
Reads the named field and set its value in signed char type out param.
signed char type is corresponding to java byte type. For C++ on Windows and Linux, signed char type is corresponding to int8_t type. However C++ users on Solaris should always use this api after casting int8_t to signed char.
fieldname | name of the field to read |
value | value of the field to be set with signed char type. |
IllegalStateException | if PdxInstance doesn't has the named field. |
|
pure virtualinherited |
Reads the named field and set its value in unsigned char type out param.
unsigned char type is corresponding to java byte type. For C++ on Windows and Linux, unsigned char type is corresponding to int8_t type. However C++ users on Solaris should always use this api after casting int8_t to unsigned char.
fieldname | name of the field to read |
value | value of the field to be set with unsigned char type. |
IllegalStateException | if PdxInstance doesn't has the named field. |
|
pure virtualinherited |
Reads the named field and set its value in int16_t type out param.
int16_t type is corresponding to java short type.
fieldname | name of the field to read |
value | value of the field to be set with int16_t type. |
IllegalStateException | if PdxInstance doesn't has the named field. |
|
pure virtualinherited |
Reads the named field and set its value in int32_t type out param.
int32_t type is corresponding to java int type.
fieldname | name of the field to read |
value | value of the field to be set with int32_t type. |
IllegalStateException | if PdxInstance doesn't has the named field. |
|
pure virtualinherited |
Reads the named field and set its value in int64_t type out param.
int64_t type is corresponding to java long type.
fieldname | name of the field to read |
value | value of the field to be set with int64_t type. |
IllegalStateException | if PdxInstance doesn't has the named field. |
|
pure virtualinherited |
Reads the named field and set its value in float type out param.
float type is corresponding to java float type.
fieldname | name of the field to read |
value | value of the field to be set with float type. |
IllegalStateException | if PdxInstance doesn't has the named field. |
|
pure virtualinherited |
Reads the named field and set its value in double type out param.
double type is corresponding to java double type.
fieldname | name of the field to read |
value | value of the field to be set with double type. |
IllegalStateException | if PdxInstance doesn't has the named field. |
|
pure virtualinherited |
Reads the named field and set its value in wchar_t type out param.
wchar_t type is corresponding to java char type.
fieldname | name of the field to read |
value | value of the field to be set with wchar_t type. |
IllegalStateException | if PdxInstance doesn't has the named field. |
|
pure virtualinherited |
Reads the named field and set its value in char type out param.
char type is corresponding to java char type.
fieldname | name of the field to read |
value | value of the field to be set with char type. |
IllegalStateException | if PdxInstance doesn't has the named field. |
|
pure virtualinherited |
Reads the named field and set its value in bool array type out param.
bool* type is corresponding to java boolean[] type.
fieldname | name of the field to read |
value | value of the field to be set with bool array type. |
length | length is set with number of bool elements. |
IllegalStateException | if PdxInstance doesn't has the named field. |
|
pure virtualinherited |
Reads the named field and set its value in signed char array type out param.
signed char* type is corresponding to java byte[] type. For C++ on Windows and Linux, signed char* type is corresponding to int8_t* type. However C++ users on Solaris should always use this api after casting int8_t* to signed char*.
fieldname | name of the field to read |
value | value of the field to be set with signed char array type. |
length | length is set with number of signed char elements. |
IllegalStateException | if PdxInstance doesn't has the named field. |
|
pure virtualinherited |
Reads the named field and set its value in unsigned char array type out param.
unsigned char* type is corresponding to java byte[] type. For C++ on Windows and Linux, unsigned char* type is corresponding to int8_t* type. However C++ users on Solaris should always use this api after casting int8_t* to unsigned char*.
fieldname | name of the field to read |
value | value of the field to be set with unsigned char array type. |
length | length is set with number of unsigned char elements. |
IllegalStateException | if PdxInstance doesn't has the named field. |
|
pure virtualinherited |
Reads the named field and set its value in int16_t array type out param.
int16_t* type is corresponding to java short[] type.
fieldname | name of the field to read |
value | value of the field to be set with int16_t array type. |
length | length is set with number of int16_t elements. |
IllegalStateException | if PdxInstance doesn't has the named field. |
|
pure virtualinherited |
Reads the named field and set its value in int32_t array type out param.
int32_t* type is corresponding to java int[] type.
fieldname | name of the field to read |
value | value of the field to be set with int32_t array type. |
length | length is set with number of int32_t elements. |
IllegalStateException | if PdxInstance doesn't has the named field. |
|
pure virtualinherited |
Reads the named field and set its value in int64_t array type out param.
int64_t* type is corresponding to java long[] type.
fieldname | name of the field to read |
value | value of the field to be set with int64_t array type. |
length | length is set with number of int64_t elements. |
IllegalStateException | if PdxInstance doesn't has the named field. |
|
pure virtualinherited |
Reads the named field and set its value in float array type out param.
float* type is corresponding to java float[] type.
fieldname | name of the field to read |
value | value of the field to be set with float array type. |
length | length is set with number of float elements. |
IllegalStateException | if PdxInstance doesn't has the named field. |
|
pure virtualinherited |
Reads the named field and set its value in double array type out param.
double* type is corresponding to java double[] type.
fieldname | name of the field to read |
value | value of the field to be set with double array type. |
length | length is set with number of double elements. |
IllegalStateException | if PdxInstance doesn't has the named field. |
|
pure virtualinherited |
Reads the named field and set its value in wchar_t array type out param.
wchar_t* type is corresponding to java String type.
fieldname | name of the field to read |
value | value of the field to be set with wchar_t array type. |
length | length is set with number of wchar_t* elements. |
IllegalStateException | if PdxInstance doesn't has the named field. |
|
pure virtualinherited |
Reads the named field and set its value in char array type out param.
char* type is corresponding to java String type.
fieldname | name of the field to read |
value | value of the field to be set with char array type. |
length | length is set with number of char* elements. |
IllegalStateException | if PdxInstance doesn't has the named field. |
|
pure virtualinherited |
Reads the named field and set its value in wchar_t* type out param.
wchar_t* type is corresponding to java String type.
fieldname | name of the field to read |
value | value of the field to be set with wchar_t type. |
IllegalStateException | if PdxInstance doesn't has the named field. |
|
pure virtualinherited |
Reads the named field and set its value in char* type out param.
char* type is corresponding to java String type.
fieldname | name of the field to read |
value | value of the field to be set with char* type. |
IllegalStateException | if PdxInstance doesn't has the named field. |
|
pure virtualinherited |
Reads the named field and set its value in wchar_t* array type out param.
wchar_t** type is corresponding to java String[] type.
fieldname | name of the field to read |
value | value of the field to be set with wchar_t* array type. |
length | length is set with number of wchar_t** elements. |
IllegalStateException | if PdxInstance doesn't has the named field. |
|
pure virtualinherited |
Reads the named field and set its value in char* array type out param.
char** type is corresponding to java String[] type.
fieldname | name of the field to read |
value | value of the field to be set with char* array type. |
length | length is set with number of char** elements. |
IllegalStateException | if PdxInstance doesn't has the named field. |
|
pure virtualinherited |
Reads the named field and set its value in CacheableDatePtr type out param.
CacheableDatePtr type is corresponding to java Java.util.date type.
fieldname | name of the field to read |
value | value of the field to be set with CacheableDatePtr type. |
IllegalStateException | if PdxInstance doesn't has the named field. |
|
pure virtualinherited |
Reads the named field and set its value in array of byte arrays type out param.
int8_t** type is corresponding to java byte[][] type.
fieldname | name of the field to read. |
value | value of the field to be set with array of byte arrays type. |
arrayLength | arrayLength is set to the number of byte arrays. |
elementLength | elementLength is set to individual byte array lengths. |
IllegalStateException | if PdxInstance doesn't has the named field. |
|
pure virtualinherited |
Reads the named field and set its value in CacheableObjectArrayPtr type out param.
For deserialization C++ Native Client requires the domain class to be registered. CacheableObjectArrayPtr type is corresponding to java Object[] type.
fieldname | name of the field to read. |
value | value of the field to be set with CacheableObjectArrayPtr type. |
IllegalStateException | if PdxInstance doesn't has the named field. |
|
pure virtualinherited |
Return an unmodifiable list of the field names on this PdxInstance.
|
pure virtualinherited |
Return the type.
IllegalStateException | if the PdxInstance typeid is not defined yet, to get classname or if PdxType is not defined for PdxInstance. |
|
pure virtualinherited |
Deserializes and returns the domain object that this instance represents.
For deserialization C++ Native Client requires the domain class to be registered.
|
pure virtualinherited |
Checks if the named field exists and returns the result.
This can be useful when writing code that handles more than one version of a PDX class.
fieldname | the name of the field to check |
true
if the named field exists; otherwise false
|
pure virtualinherited |
Generates a hashcode based on the identity fields of this PdxInstance.
If a PdxInstance has marked identity fields using PdxWriter#markIdentityField then only the marked identity fields are its identity fields. Otherwise all its fields are identity fields.
For deserialization C++ Native Client requires the domain class to be registered. If the field is an array then all array elements are used for hashcode computation. Otherwise the raw bytes of its value are used to compute the hash code.
IllegalStateException | if the field contains an element that is not of CacheableKey derived type. |
Implements apache::geode::client::CacheableKey.
|
pure virtualinherited |
Checks if the named field was PdxWriter#markIdentityFieldmarked as an identity field.
Note that if no fields have been marked then all the fields are used as identity fields even though this method will return false
since none of them have been marked.
fieldname | the name of the field to check |
true
if the named field exists and was marked as an identify field; otherwise false
|
virtualinherited |
Copy the string form of a key into a char* buffer for logging purposes.
Implementations should only generate a string as long as maxLength chars, and return the number of chars written. buffer is expected to be large enough to hold at least maxLength chars.
The default implementation renders the classname and instance address.
Reimplemented in apache::geode::client::CacheableString, apache::geode::client::CacheableDate, and apache::geode::client::CacheableKeyType< TObj, TYPEID, TYPENAME, SPRINTFSYM, STRSIZE >.
|
pure virtualinherited |
Reimplemented from apache::geode::client::Serializable.
|
pure virtualinherited |
Returns true if the given CacheableKey derived object is equals to this instance.
If other
is not a PdxInstance then it is not equal to this instance. NOTE: Even if other
is the result of calling getObject() it will not be equal to this instance
.
Otherwise equality of two PdxInstances is determined as follows:
If one of the instances does not have a field that the other one does then equals will assume it has the field with a default value. If a PdxInstance has marked identity fields using markIdentityField then only the marked identity fields are its identity fields. Otherwise all its fields are identity fields.
An identity field is equal if all the following are true:
If an identity field is of type derived from Cacheable
then it is deserialized. For deserialization C++ Native Client requires the domain class to be registered. If the deserialized object is an array then all array elements are used to determine equality. If an identity field is of type CacheableObjectArray
then it is deserialized and all array elements are used to determine equality. For all other field types the value does not need to be deserialized. Instead the serialized raw bytes are compared and used to determine equality.
other | the other instance to compare to this. |
true
if this instance is equal to other
. IllegalStateException | if the field contains an element that is not of CacheableKey derived type. |
Implements apache::geode::client::CacheableKey.
|
inherited |
Atomically increment reference count.
|
inlineinherited |
|
staticinherited |
Register the PDX serializer which can handle serialization for instances of user domain classes.
|
staticinherited |
register an Pdx instance factory method for a given type.
IllegalStateException | if the typeName has already been registered, or there is an error in registering the type; check errno for more information in the latter case. |
|
staticinherited |
register an instance factory method for a given type.
During registration the factory will be invoked to extract the typeId to associate with this function.
IllegalStateException | if the typeId has already been registered, or there is an error in registering the type; check errno for more information in the latter case. |
|
inherited |
Atomically decrement reference count, the SharedBase object is automatically deleted when its reference count goes to zero.
|
pure virtual |
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. CacheablePtr type is corresponding to java object type.
fieldName | name of the field whose value will be set |
value | value that will be set to the field of type CacheablePtr |
IllegalStateException | if the named field does not exist or if the type of the value is not compatible with the field. |
|
pure virtual |
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. bool type is corresponding to java boolean type.
fieldName | name of the field whose value will be set |
value | value that will be set to the field of type bool |
IllegalStateException | if the named field does not exist or if the type of the value is not compatible with the field. |
|
pure virtual |
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. signed char type is corresponding to java byte type. For C++ on Windows and Linux, signed char type is corresponding to int8_t type. However C++ users on Solaris should always use this api after casting int8_t to signed char.
fieldName | name of the field whose value will be set |
value | value that will be set to the field of type signed char |
IllegalStateException | if the named field does not exist or if the type of the value is not compatible with the field. |
|
pure virtual |
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. unsigned char type is corresponding to java byte type. For C++ on Windows and Linux, unsigned char type is corresponding to int8_t type. However C++ users on Solaris should always use this api after casting int8_t to unsigned char.
fieldName | name of the field whose value will be set |
value | value that will be set to the field of type unsigned char |
IllegalStateException | if the named field does not exist or if the type of the value is not compatible with the field. |
|
pure virtual |
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. int16_t type is corresponding to java short type.
fieldName | name of the field whose value will be set |
value | value that will be set to the field of type int16_t |
IllegalStateException | if the named field does not exist or if the type of the value is not compatible with the field. |
|
pure virtual |
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. int32_t type is corresponding to java int type.
fieldName | name of the field whose value will be set |
value | value that will be set to the field of type int32_t |
IllegalStateException | if the named field does not exist or if the type of the value is not compatible with the field. |
|
pure virtual |
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. int64_t type is corresponding to java long type.
fieldName | name of the field whose value will be set |
value | value that will be set to the field of type int64_t |
IllegalStateException | if the named field does not exist or if the type of the value is not compatible with the field. |
|
pure virtual |
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. float type is corresponding to java float type.
fieldName | name of the field whose value will be set |
value | value that will be set to the field of type float |
IllegalStateException | if the named field does not exist or if the type of the value is not compatible with the field. |
|
pure virtual |
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. double type is corresponding to java double type.
fieldName | name of the field whose value will be set |
value | value that will be set to the field of type double |
IllegalStateException | if the named field does not exist or if the type of the value is not compatible with the field. |
|
pure virtual |
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. wchar_t type is corresponding to java char type.
fieldName | name of the field whose value will be set |
value | value that will be set to the field of type wchar_t |
IllegalStateException | if the named field does not exist or if the type of the value is not compatible with the field. |
|
pure virtual |
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. char type is corresponding to java char type.
fieldName | name of the field whose value will be set |
value | value that will be set to the field of type char |
IllegalStateException | if the named field does not exist or if the type of the value is not compatible with the field. |
|
pure virtual |
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. CacheableDatePtr type is corresponding to java Java.util.date type.
fieldName | name of the field whose value will be set |
value | value that will be set to the field of type CacheableDatePtr |
IllegalStateException | if the named field does not exist or if the type of the value is not compatible with the field. |
|
pure virtual |
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. bool* type is corresponding to java boolean[] type.
fieldName | name of the field whose value will be set |
value | value that will be set to the field of type bool array |
length | The number of elements in bool array type. |
IllegalStateException | if the named field does not exist or if the type of the value is not compatible with the field. |
|
pure virtual |
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. signed char* type is corresponding to java byte[] type. For C++ on Windows and Linux, signed char* type is corresponding to int8_t* type. However C++ users on Solaris should always use this api after casting int8_t* to signed char*.
fieldName | name of the field whose value will be set |
value | value that will be set to the field of type signed char array |
length | The number of elements in signed char array type. |
IllegalStateException | if the named field does not exist or if the type of the value is not compatible with the field. |
|
pure virtual |
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. unsigned char* type is corresponding to java byte[] type. For C++ on Windows and Linux, unsigned char* type is corresponding to int8_t* type. However C++ users on Solaris should always use this api after casting int8_t* to unsigned char*.
fieldName | name of the field whose value will be set |
value | value that will be set to the field of type unsigned char array |
length | The number of elements in unsigned char array type. |
IllegalStateException | if the named field does not exist or if the type of the value is not compatible with the field. |
|
pure virtual |
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. int16_t* type is corresponding to java short[] type.
fieldName | name of the field whose value will be set |
value | value that will be set to the field of type int16_t array |
length | The number of elements in int16_t array type. |
IllegalStateException | if the named field does not exist or if the type of the value is not compatible with the field. |
|
pure virtual |
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. int32_t* type is corresponding to java int[] type.
fieldName | name of the field whose value will be set |
value | value that will be set to the field of type int32_t array |
length | The number of elements in int32_t array type. |
IllegalStateException | if the named field does not exist or if the type of the value is not compatible with the field. |
|
pure virtual |
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. int64_t* type is corresponding to java long[] type.
fieldName | name of the field whose value will be set |
value | value that will be set to the field of type int64_t array |
length | The number of elements in int64_t array type. |
IllegalStateException | if the named field does not exist or if the type of the value is not compatible with the field. |
|
pure virtual |
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. float* type is corresponding to java float[] type.
fieldName | name of the field whose value will be set |
value | value that will be set to the field of type float array |
length | The number of elements in float array type. |
IllegalStateException | if the named field does not exist or if the type of the value is not compatible with the field. |
|
pure virtual |
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. double* type is corresponding to java double[] type.
fieldName | name of the field whose value will be set |
value | value that will be set to the field of type double array |
length | The number of elements in double array type. |
IllegalStateException | if the named field does not exist or if the type of the value is not compatible with the field. |
|
pure virtual |
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. wchar_t* type is corresponding to java String type.
fieldName | name of the field whose value will be set |
value | value that will be set to the field of type wchar_t* |
IllegalStateException | if the named field does not exist or if the type of the value is not compatible with the field. |
|
pure virtual |
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. char* type is corresponding to java String type.
fieldName | name of the field whose value will be set |
value | value that will be set to the field of type char* |
IllegalStateException | if the named field does not exist or if the type of the value is not compatible with the field. |
|
pure virtual |
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. wchar_t* type is corresponding to java char[] type.
fieldName | name of the field whose value will be set |
value | value that will be set to the field of type wchar_t array |
length | The number of elements in wchar_t array type. |
IllegalStateException | if the named field does not exist or if the type of the value is not compatible with the field. |
|
pure virtual |
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. char* type is corresponding to java char[] type.
fieldName | name of the field whose value will be set |
value | value that will be set to the field of type char array |
length | The number of elements in char array type. |
IllegalStateException | if the named field does not exist or if the type of the value is not compatible with the field. |
|
pure virtual |
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. wchar_t** type is corresponding to java String[] type.
fieldName | name of the field whose value will be set |
value | value that will be set to the field of type wchar_t* array |
length | The number of elements in WCString array type. |
IllegalStateException | if the named field does not exist or if the type of the value is not compatible with the field. |
|
pure virtual |
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. char** type is corresponding to java String[] type.
fieldName | name of the field whose value will be set |
value | value that will be set to the field of type char* array |
length | The number of elements in CString array type. |
IllegalStateException | if the named field does not exist or if the type of the value is not compatible with the field. |
|
pure virtual |
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. int8_t** type is corresponding to java byte[][] type.
fieldName | name of the field whose value will be set |
value | value that will be set to the field of type array of byte arrays |
arrayLength | The number of byte arrays. |
elementLength | The lengths of individual byte arrays. |
IllegalStateException | if the named field does not exist or if the type of the value is not compatible with the field. |
|
pure virtual |
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. CacheableObjectArrayPtr type is corresponding to java Object[] type.
fieldName | name of the field whose value will be set |
value | value that will be set to the field of type CacheableObjectArrayPtr |
IllegalStateException | if the named field does not exist or if the type of the value is not compatible with the field. |
|
inlinevirtualinherited |
|
pure virtualinherited |
serialize this object in geode PDX format.
This is an internal method.
PdxWriter | to serialize the PDX object |
|
pure virtualinherited |
Prints out all of the identity fields of this PdxInstance.
If a PdxInstance has marked identity fields using PdxWriter#markIdentityField then only the marked identity fields are its identity fields. Otherwise all its fields are identity fields
. For deserialization C++ Native Client requires the domain class to be registered.
Reimplemented from apache::geode::client::Serializable.
|
virtualinherited |
return the typeId byte of the instance being serialized.
This is used by deserialization to determine what instance type to create and deserialize into.
Note that this should not be overridden by custom implementations and is reserved only for builtin types.