// If the value is stored in the cache or object, there still may
// be read-only mappings for it, so the object must always be updated for
// any writable or read-only mappings for the version value.
// Reuse the method used for returning as has the same requirements.
ObjectBuilder objectBuilder = this.descriptor.getObjectBuilder();
AbstractRecord record = objectBuilder.createRecord(1, session);
record.put(this.writeLockField, lockValue);
objectBuilder.assignReturnRow(object, session, record);
if (objectChangeSet != null) {
objectChangeSet.setWriteLockValue(lockValue);
query.getQueryMechanism().updateChangeSet(this.descriptor, objectChangeSet, record, object);