UPDATE-OBJECTS-JOINS — Updates joined slots of objects.
Function
A list of instances of a View Class.
A list of slot names in object or T.
A Boolean, defaulting to T.
A list of instances of a View Class.
A non-negative integer or NIL defaulting to *default-update-objects-max-len*.
Updates from the records of the appropriate database tables the join slots specified by slots in the supplied list of View Class instances objects. slots when T means that all join slots with :retrieval :immediate are updated. class-name is used to specify the View Class of all instance in objects, when NIL then the class of the first instance in objects is used. force-p when T means that all join slots are updated whereas a value of NIL means that only unbound join slots are updated. max-len when non-nil specifies that update-object-joins may issue multiple database queries with a maximum of max-len instances updated in each query.
(defvar *addresses* (select 'deferred-employee-address :order-by [ea_join aaddressid] :flatp t)) => *ADDRESSES* (slot-boundp (car *addresses*) 'address) => NIL (update-objects-joins *addresses*) => (slot-boundp (car *addresses*) 'address) => T (slot-value (car *addresses*) 'address) => #<ADDRESS {480B0F1D}>