public interface WritablePdxInstance extends PdxInstance
PdxInstance
that also supports field modification using the
setField
method. To get a WritablePdxInstance call
createWriter
.FIELD_NOT_FOUND
Modifier and Type | Method and Description |
---|---|
void |
setField(String fieldName,
Object value)
Set the existing named field to the given value.
|
createWriter, equals, getClassName, getField, getObject, hashCode, isDeserializable, isEnum, isIdentityField, toString
foreach, getAndCheckField, getFieldNames, hasField
void setField(String fieldName, Object value)
fieldName
- name of the field whose value will be setvalue
- value that will be assigned to the fieldPdxFieldDoesNotExistException
- if the named field does not existPdxFieldTypeMismatchException
- if the type of the value is not compatible with the field