X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=doc%2Fref-oodml.xml;h=8a3423557fed74a5162c78cc8cdbccd7db1d6d41;hb=91eb9f3d1335fed9ee9e4644eacca2b97db30836;hp=a76b718b3bbf5a87ce7531d97620e063984b5ba2;hpb=14127ceb7cfff2710abd123444c7025c2e18e7fa;p=clsql.git diff --git a/doc/ref-oodml.xml b/doc/ref-oodml.xml index a76b718..8a34235 100644 --- a/doc/ref-oodml.xml +++ b/doc/ref-oodml.xml @@ -144,7 +144,7 @@ Description This variable stores the default value of the - CACHING keyword for the CACHING keyword for the select. @@ -282,7 +282,7 @@ (slot-value (car *) 'email) => "lenin@soviet.org" (select 'employee :where [= [slot-value 'employee 'emplid] 1] :flatp t :refresh t) -Details for Vladamir Lenin have been updated from the database. +Details for Vladimir Lenin have been updated from the database. => (#<EMPLOYEE {48149995}>) (slot-value (car *) 'email) => "v.lenin@soviet.org" @@ -972,9 +972,11 @@ Details for Vladamir Lenin have been updated from the database. slots - - A list of slot names in object or &t;. - + * :immediate (default) - refresh join slots with :retrieval :immediate + * :deferred - refresh join slots created with :retrieval :deferred + * :all,t - refresh all join slots regardless of :retrieval + * list of symbols - which explicit slots to refresh + * a single symobl - what slot to refresh @@ -1000,6 +1002,9 @@ Details for Vladamir Lenin have been updated from the database. A non-negative integer or &nil; defaulting to *default-update-objects-max-len*. + When non-nil this is essentially a batch size for the max number of objects + to query from the database at a time. If we need more than max-len + we loop till we have all the objects @@ -1007,25 +1012,15 @@ Details for Vladamir Lenin have been updated from the database. Description - 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. + + Updates from the records of the appropriate database tables the join slots + specified by SLOTS in the supplied list of + View Class instances OBJECTS. + + A simpler method of causing a join-slot to be requeried is to set it to + unbound, then request it again. This function has efficiency gains where + join-objects are shared among the `objects` (querying all join-objects, + then attaching them appropriately to each of the `objects`)