// Save the info that update lock is required in the queryplan. // This info would be used by SQLStoreManger::retrieve() // to process distinct manually if required. plan.options = plan.options | RetrieveDescImpl.OPT_FOR_UPDATE;