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.GenericAssembly: Gemstone.Gemfire.Cache (in Gemstone.Gemfire.Cache.dll) Version: 9.0.6.18
SyntaxIPdxWriter MarkIdentityField(
string fieldName
)
Function MarkIdentityField (
fieldName As String
) As IPdxWriter
IPdxWriter^ MarkIdentityField(
String^ fieldName
)
abstract MarkIdentityField :
fieldName : string -> IPdxWriter
Parameters
- fieldName
- Type: SystemString
the name of the field that should be used in the as part of the identity.
Return Value
Type:
IPdxWriterthis PdxWriter
See Also