NextPrevUpTopContentsIndex

update-instance-from-records

Generic Function
Summary

Updates a View Class instance.

Package

sql

Signature

update-instance-from-records instance &key database => instance

Arguments

instance

An instance of a View Class.

database

A database.

Values

instance

The updated View Class instance.

Description

The generic function update-instance-from-records updates the values in the slots of the View Class instance instance using the data in the database database .

database defaults to the database that instance is associated with, or the value of *default-database*. If instance is associated with a database, then database must be that same database.

The argument slot is the CLOS slot name; the corresponding column names are derived from the View Class definition.

The update is not recursive on joins. Join slots (that is, slots with :db-kind :join ) are updated, but the joined objects are not updated.

See also

def-view-class
update-slot-from-record


LispWorks Reference Manual - 6 Apr 2005

NextPrevUpTopContentsIndex