Class Persistent-Slot-Definition

Base class for both persistent direct and effective slot definitions.

Part of:

package cl-perec, class persistent-effective-slot-definition, class persistent-direct-slot-definition, class persistent-association-end-slot-definition

Direct Subclass

persistent-association-end-slot-definition
persistent-direct-slot-definitionClass for persistent direct slot definitions.
persistent-effective-slot-definitionClass for persistent effective slot definitions.

Slot

always-checked-type
When type-check is :always then this type will be checked whenever a new value is set during the transaction.
Initform:(compute-as* nil (compute-always-checked-type -self-)), Initargs::always-checked-type; Accessors:always-checked-type-of; Type:list.
cache
All prefetched slots are cached slots but the opposite may not be true. When a cached slot is loaded it's value will be stored in the CLOS instance for fast subsequent read operations. Also whenever a cached slot is set the value will be remembered. The default cached slot semantics can be overriden on a per direct slot basis.
Initargs::cache; Accessors:cache-p; Type:boolean.
index
True means the slot value will be indexed in the underlying RDBMS.
Initargs::index; Accessors:index-p; Type:boolean.
initargs
Initargs::initargs; Accessors:slot-definition-initargs.
initfunction
Initargs::initfunction; Accessors:slot-definition-initfunction.
name
Initargs::name; Accessors:slot-definition-name.
prefetch
Prefetched slots are loaded from and stored into the database at once. A prefetched slot must be in a table which can be accessed using a where clause matching to the id of the instance thus it must be in a data table. The default prefetched slot semantics can be overriden on a per direct slot basis.
Initargs::prefetch; Accessors:prefetch-p; Type:boolean.
type-check
On commit type check means that during the transaction the slot may have null and/or unbound value and the type check will be done when the transaction commits.
Initargs::type-check; Accessors:type-check-of; Type:(member always on-commit).
unique
True means the slot value will be enforced to be unique among instances in the underlying RDBMS.
Initargs::unique; Accessors:unique-p; Type:boolean.

Direct Method

compute-always-checked-type
sql-column-reference-for
sql-column-references-for