The OODDL lets you define a mapping between the relational and object-oriented worlds to be defined. Through the mapping a CLOS object can effectively denote a collection of records in a database view, and can contain pointers to other view-based CLOS objects. The CLOS object makes explicit an object implicitly described by the flat relational values.
def-view-classMacro
def-view-class name superclasses slots &rest class-options
defclass to allow special base slots to be mapped onto the attributes of database views (presently single tables). When a select query that names aview-class is submitted, then the corresponding database view is queried, and the slots in the resulting instances are filled with attribute values from the database. def-view-class in the LispWorks Reference Manual. Function
create-view-from-class class &key database
Function
drop-view-from-class class &key database
Generated with Harlequin WebMaker