Class Class-Primary-Table

This is a special table related to a persistent class.

Part of:

package cl-perec, class table

Direct Superclass

tableAn RDBMS table with some related RDBMS definitions. The actual table will be created in the datab...

Slot

class-id-column
The RDBMS column of the corresponding oid slot.
Initform:(compute-as* nil (find +oid-class-id-column-name+ (columns-of -self-) key 'name-of)), Initargs::class-id-column; Accessors:class-id-column-of; Type:sql-column.
class-name-column
The RDBMS column of the corresponding oid slot.
Initform:(compute-as* nil (find +oid-class-name-column-name+ (columns-of -self-) key 'name-of)), Initargs::class-name-column; Accessors:class-name-column-of; Type:sql-column.
columns
The list of RDBMS columns which will be queried or updated to get and set the data of this slot.
Initform:(compute-as* nil (compute-columns -self-)), Initargs::columns; Accessors:columns-of; Type:list.
ensure-exported
A persistent class, a persistent association and the related tables must be exported before use. This will automatically happen not later than making, reviving, querying or using by any means the first instance of it.
Initform:(compute-as* nil (export-to-rdbms -self-) -self-), Initargs::ensure-exported; Reader:ensure-exported.
id-column
This is the id column of the oid reference when appropriarte for the slot type.
Initform:(compute-as* nil (bind ((type (normalized-type-of -self-))) (if (or (persistent-class-type-p type) (set-type-p type)) (first (columns-of -self-))))), Initargs::id-column; Accessors:id-column-of; Type:sql-column.
name
The name of the RDBMS table.
Initargs::name; Accessors:name-of; Type:symbol.
oid-columns
The list of RDBMS columns corresponding to the oid of this table.
Initform:(compute-as* nil (oid-mode-ecase (class-name (list (id-column-of -self-) (class-name-column-of -self-))) (class-id (list (id-column-of -self-) (class-id-column-of -self-))) (merge (list (id-column-of -self-))))), Initargs::oid-columns; Accessors:oid-columns-of; Type:list.

Other Method

export-to-rdbmsExports classes, associations, tables to the database, may create new tables or alter existing on...
sql-alias-forGenerates a table alias for the given ELEMENT. Alias names may be supressed
by setting *SUPRESS-A...