VMware Tanzu GemFire Native .NET Reference
10.1.5
|
PdxInstanceFactory gives you a way to create PdxInstances. More...
Public Member Functions | |
IPdxInstance ^ | Create () |
Create a IPdxInstance . More... | |
IPdxInstanceFactory ^ | MarkIdentityField (String^ fieldName) |
Indicate that the named field should be included in hashCode and equals checks of this object on a server that is accessing IPdxInstance or when a client executes a query on a server. More... | |
IPdxInstanceFactory ^ | WriteArrayOfByteArrays (String^ fieldName, array< array< Byte >^>^ value) |
Writes the named field with the given value to the serialized form. More... | |
IPdxInstanceFactory ^ | WriteBoolean (String^ fieldName, Boolean value) |
Writes the named field with the given value to the serialized form. More... | |
IPdxInstanceFactory ^ | WriteBooleanArray (String^ fieldName, array< Boolean >^ value) |
Writes the named field with the given value to the serialized form. More... | |
IPdxInstanceFactory ^ | WriteByte (String^ fieldName, SByte value) |
Writes the named field with the given value to the serialized form. More... | |
IPdxInstanceFactory ^ | WriteByteArray (String^ fieldName, array< Byte >^ value) |
Writes the named field with the given value to the serialized form. More... | |
IPdxInstanceFactory ^ | WriteChar (String^ fieldName, Char value) |
Writes the named field with the given value to the serialized form. More... | |
IPdxInstanceFactory ^ | WriteCharArray (String^ fieldName, array< Char >^ value) |
Writes the named field with the given value to the serialized form. More... | |
IPdxInstanceFactory ^ | WriteDate (String^ fieldName, System::DateTime value) |
Writes the named field with the given value to the serialized form. More... | |
IPdxInstanceFactory ^ | WriteDouble (String^ fieldName, double value) |
Writes the named field with the given value to the serialized form. More... | |
IPdxInstanceFactory ^ | WriteDoubleArray (String^ fieldName, array< double >^ value) |
Writes the named field with the given value to the serialized form. More... | |
IPdxInstanceFactory ^ | WriteField (String^ fieldName, Object^ fieldValue, Type^ fieldType) |
Writes the named field with the given value and type to the serialized form. More... | |
IPdxInstanceFactory ^ | WriteFloat (String^ fieldName, float value) |
Writes the named field with the given value to the serialized form. More... | |
IPdxInstanceFactory ^ | WriteFloatArray (String^ fieldName, array< float >^ value) |
Writes the named field with the given value to the serialized form. More... | |
IPdxInstanceFactory ^ | WriteInt (String^ fieldName, Int32 value) |
Writes the named field with the given value to the serialized form. More... | |
IPdxInstanceFactory ^ | WriteIntArray (String^ fieldName, array< Int32 >^ value) |
Writes the named field with the given value to the serialized form. More... | |
IPdxInstanceFactory ^ | WriteLong (String^ fieldName, Int64 value) |
Writes the named field with the given value to the serialized form. More... | |
IPdxInstanceFactory ^ | WriteLongArray (String^ fieldName, array< Int64 >^ value) |
Writes the named field with the given value to the serialized form. More... | |
IPdxInstanceFactory ^ | WriteObject (String^ fieldName, Object^ value) |
Writes the named field with the given value to the serialized form. More... | |
IPdxInstanceFactory ^ | WriteObjectArray (String^ fieldName, System::Collections::Generic::List< Object^>^ value) |
Writes the named field with the given value to the serialized form. More... | |
IPdxInstanceFactory ^ | WriteShort (String^ fieldName, Int16 value) |
Writes the named field with the given value to the serialized form. More... | |
IPdxInstanceFactory ^ | WriteShortArray (String^ fieldName, array< Int16 >^ value) |
Writes the named field with the given value to the serialized form. More... | |
IPdxInstanceFactory ^ | WriteString (String^ fieldName, String^ value) |
Writes the named field with the given value to the serialized form. More... | |
IPdxInstanceFactory ^ | WriteStringArray (String^ fieldName, array< String^>^ value) |
Writes the named field with the given value to the serialized form. More... | |
PdxInstanceFactory gives you a way to create PdxInstances.
Call the write methods to populate the field data and then call Create to produce an actual instance that contains the data. To create a factory call IRegionService.CreatePdxInstanceFactory. A factory can only create a single instance. To create multiple instances create multiple factories or use IPdxInstance.CreateWriter to create subsequent instances.
IPdxInstance ^ Apache::Geode::Client::IPdxInstanceFactory::Create | ( | ) |
Create a IPdxInstance .
The instance will contain any data written to this factory using the write methods.
IllegalStateException | if called more than once |
IPdxInstanceFactory ^ Apache::Geode::Client::IPdxInstanceFactory::MarkIdentityField | ( | String^ | fieldName | ) |
Indicate that the named field should be included in hashCode and equals checks of this object on a server that is accessing IPdxInstance 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 primitives, 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.
fieldName | the name of the field to mark as an identity field. |
IllegalStateException | if the named field has not already been written. |
IPdxInstanceFactory ^ Apache::Geode::Client::IPdxInstanceFactory::WriteArrayOfByteArrays | ( | String^ | fieldName, |
array< array< Byte >^>^ | value | ||
) |
Writes the named field with the given value to the serialized form.
The fields type is byte[][]
.
Java byte[][] is mapped to .NET System.Byte[][].
fieldName | the name of the field to write |
value | the value of the field to write |
IllegalStateException | if the named field has already been written |
IPdxInstanceFactory ^ Apache::Geode::Client::IPdxInstanceFactory::WriteBoolean | ( | String^ | fieldName, |
Boolean | value | ||
) |
Writes the named field with the given value to the serialized form.
The fields type is boolean
.
Java boolean is mapped to .NET System.Boolean.
fieldName | the name of the field to write |
value | the value of the field to write |
IllegalStateException | if the named field has already been written |
IPdxInstanceFactory ^ Apache::Geode::Client::IPdxInstanceFactory::WriteBooleanArray | ( | String^ | fieldName, |
array< Boolean >^ | value | ||
) |
Writes the named field with the given value to the serialized form.
The fields type is boolean[]
.
Java boolean[] is mapped to .NET System.Boolean[].
fieldName | the name of the field to write |
value | the value of the field to write |
IllegalStateException | if the named field has already been written |
IPdxInstanceFactory ^ Apache::Geode::Client::IPdxInstanceFactory::WriteByte | ( | String^ | fieldName, |
SByte | value | ||
) |
Writes the named field with the given value to the serialized form.
The fields type is sbyte
.
Java byte is mapped to .NET System.SByte.
fieldName | the name of the field to write |
value | the value of the field to write |
IllegalStateException | if the named field has already been written |
IPdxInstanceFactory ^ Apache::Geode::Client::IPdxInstanceFactory::WriteByteArray | ( | String^ | fieldName, |
array< Byte >^ | value | ||
) |
Writes the named field with the given value to the serialized form.
The fields type is byte[]
.
Java byte[] is mapped to .NET System.Byte[].
fieldName | the name of the field to write |
value | the value of the field to write |
IllegalStateException | if the named field has already been written |
IPdxInstanceFactory ^ Apache::Geode::Client::IPdxInstanceFactory::WriteChar | ( | String^ | fieldName, |
Char | value | ||
) |
Writes the named field with the given value to the serialized form.
The fields type is char
.
Java char is mapped to .NET System.Char.
fieldName | the name of the field to write |
value | the value of the field to write |
IllegalStateException | if the named field has already been written |
IPdxInstanceFactory ^ Apache::Geode::Client::IPdxInstanceFactory::WriteCharArray | ( | String^ | fieldName, |
array< Char >^ | value | ||
) |
Writes the named field with the given value to the serialized form.
The fields type is char[]
.
Java char[] is mapped to .NET System.Char[].
fieldName | the name of the field to write |
value | the value of the field to write |
IllegalStateException | if the named field has already been written |
IPdxInstanceFactory ^ Apache::Geode::Client::IPdxInstanceFactory::WriteDate | ( | String^ | fieldName, |
System::DateTime | value | ||
) |
Writes the named field with the given value to the serialized form.
The fields type is Date
.
Java Date is mapped to .NET System.DateTime.
fieldName | the name of the field to write |
value | the value of the field to write |
IllegalStateException | if the named field has already been written |
IPdxInstanceFactory ^ Apache::Geode::Client::IPdxInstanceFactory::WriteDouble | ( | String^ | fieldName, |
double | value | ||
) |
Writes the named field with the given value to the serialized form.
The fields type is double
.
Java double is mapped to .NET System.Double.
fieldName | the name of the field to write |
value | the value of the field to write |
IllegalStateException | if the named field has already been written |
IPdxInstanceFactory ^ Apache::Geode::Client::IPdxInstanceFactory::WriteDoubleArray | ( | String^ | fieldName, |
array< double >^ | value | ||
) |
Writes the named field with the given value to the serialized form.
The fields type is double[]
.
Java double[] is mapped to .NET System.Double[].
fieldName | the name of the field to write |
value | the value of the field to write |
IllegalStateException | if the named field has already been written |
IPdxInstanceFactory ^ Apache::Geode::Client::IPdxInstanceFactory::WriteField | ( | String^ | fieldName, |
Object^ | fieldValue, | ||
Type^ | fieldType | ||
) |
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 WriteObject. This method may serialize objects that are not portable to non-java languages.
The fieldTypes maps to a specific method.
fieldName | the name of the field to write |
fieldValue | the value of the field to write; this parameter's class must extend the fieldType
| ||
fieldType | the type of the field to write
|
IPdxInstanceFactory ^ Apache::Geode::Client::IPdxInstanceFactory::WriteFloat | ( | String^ | fieldName, |
float | value | ||
) |
Writes the named field with the given value to the serialized form.
The fields type is float
.
Java float is mapped to .NET System.Single(float).
fieldName | the name of the field to write |
value | the value of the field to write |
IllegalStateException | if the named field has already been written |
IPdxInstanceFactory ^ Apache::Geode::Client::IPdxInstanceFactory::WriteFloatArray | ( | String^ | fieldName, |
array< float >^ | value | ||
) |
Writes the named field with the given value to the serialized form.
The fields type is float[]
.
Java float[] is mapped to .NET System.Single[] or float[].
fieldName | the name of the field to write |
value | the value of the field to write |
IllegalStateException | if the named field has already been written |
IPdxInstanceFactory ^ Apache::Geode::Client::IPdxInstanceFactory::WriteInt | ( | String^ | fieldName, |
Int32 | value | ||
) |
Writes the named field with the given value to the serialized form.
The fields type is int
.
Java int is mapped to .NET System.Int32.
fieldName | the name of the field to write |
value | the value of the field to write |
IllegalStateException | if the named field has already been written |
IPdxInstanceFactory ^ Apache::Geode::Client::IPdxInstanceFactory::WriteIntArray | ( | String^ | fieldName, |
array< Int32 >^ | value | ||
) |
Writes the named field with the given value to the serialized form.
The fields type is int[]
.
Java int[] is mapped to .NET System.Int32[].
fieldName | the name of the field to write |
value | the value of the field to write |
IllegalStateException | if the named field has already been written |
IPdxInstanceFactory ^ Apache::Geode::Client::IPdxInstanceFactory::WriteLong | ( | String^ | fieldName, |
Int64 | value | ||
) |
Writes the named field with the given value to the serialized form.
The fields type is long
.
Java long is mapped to .NET System.Int64.
fieldName | the name of the field to write |
value | the value of the field to write |
IllegalStateException | if the named field has already been written |
IPdxInstanceFactory ^ Apache::Geode::Client::IPdxInstanceFactory::WriteLongArray | ( | String^ | fieldName, |
array< Int64 >^ | value | ||
) |
Writes the named field with the given value to the serialized form.
The fields type is long[]
.
Java long[] is mapped to .NET System.Int64[].
fieldName | the name of the field to write |
value | the value of the field to write |
IllegalStateException | if the named field has already been written |
IPdxInstanceFactory ^ Apache::Geode::Client::IPdxInstanceFactory::WriteObject | ( | String^ | fieldName, |
Object^ | value | ||
) |
Writes the named field with the given value to the serialized form.
The fields type is Object
.
It is best to use one of the other writeXXX methods if your field type will always be XXX. This method allows the field value to be anything that is an instance of Object. This gives you more flexibility but more space is used to store the serialized field.
fieldName | the name of the field to write |
value | the value of the field to write |
IllegalStateException | if the named field has already been written |
IPdxInstanceFactory ^ Apache::Geode::Client::IPdxInstanceFactory::WriteObjectArray | ( | String^ | fieldName, |
System::Collections::Generic::List< Object^>^ | value | ||
) |
Writes the named field with the given value to the serialized form.
The fields type is Object[]
. Java Object[] is mapped to .NET System.Collections.Generic.List<Object>.
fieldName | the name of the field to write |
value | the value of the field to write |
IllegalStateException | if the named field has already been written |
IPdxInstanceFactory ^ Apache::Geode::Client::IPdxInstanceFactory::WriteShort | ( | String^ | fieldName, |
Int16 | value | ||
) |
Writes the named field with the given value to the serialized form.
The fields type is short
.
Java short is mapped to .NET System.Int16.
fieldName | the name of the field to write |
value | the value of the field to write |
IllegalStateException | if the named field has already been written |
IPdxInstanceFactory ^ Apache::Geode::Client::IPdxInstanceFactory::WriteShortArray | ( | String^ | fieldName, |
array< Int16 >^ | value | ||
) |
Writes the named field with the given value to the serialized form.
The fields type is short[]
.
Java short[] is mapped to .NET System.Int16[].
fieldName | the name of the field to write |
value | the value of the field to write |
IllegalStateException | if the named field has already been written |
IPdxInstanceFactory ^ Apache::Geode::Client::IPdxInstanceFactory::WriteString | ( | String^ | fieldName, |
String^ | value | ||
) |
Writes the named field with the given value to the serialized form.
The fields type is String
.
Java String is mapped to .NET System.String.
fieldName | the name of the field to write |
value | the value of the field to write |
IllegalStateException | if the named field has already been written |
IPdxInstanceFactory ^ Apache::Geode::Client::IPdxInstanceFactory::WriteStringArray | ( | String^ | fieldName, |
array< String^>^ | value | ||
) |
Writes the named field with the given value to the serialized form.
The fields type is String[]
.
Java String[] is mapped to .NET System.String[].
fieldName | the name of the field to write |
value | the value of the field to write |
IllegalStateException | if the named field has already been written |