Click or drag to resize
IPdxWriterMarkIdentityField Method
Indicate that the given field name should be included in hashCode and equals checks of this object on a server that is using {@link 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 {@link 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.

Namespace: GemStone.GemFire.Cache.Generic
Assembly: Gemstone.Gemfire.Cache (in Gemstone.Gemfire.Cache.dll) Version: 9.0.6.18
Syntax
IPdxWriter MarkIdentityField(
	string fieldName
)

Parameters

fieldName
Type: SystemString
the name of the field that should be used in the as part of the identity.

Return Value

Type: IPdxWriter
this PdxWriter
See Also