Common Lisp Package: WEBLOCKS-PREVALENCE

A driver for weblocks backend store API that connects to CL-Prevalence.

README:

FUNCTION

Public

Undocumented

MAKE-PERSISTENT-INSTANCE (STORE CLASS &REST INITARGS)

Private

TX-DELETE-OBJECT-BY-ID-PREVALENCE (STORE CLASS-NAME OBJECT-ID)

Delets a persistent object from the store.

TX-FIND-PERSISTENT-OBJECTS-PREVALENCE (STORE CLASS-NAME)

Finds persistent objects of a given class.

TX-PERSIST-OBJECT-PREVALENCE (STORE OBJECT)

Persists the object in the store.

SLOT-ACCESSOR

Private

PERSISTENT-OBJECTS-OF-CLASS-BY-ID (OBJECT)

A hashmap with keys being object IDs, and values being object instances.

SETFPERSISTENT-OBJECTS-OF-CLASS-BY-ID (NEW-VALUE OBJECT)

A hashmap with keys being object IDs, and values being object instances.

PERSISTENT-OBJECTS-OF-CLASS-NEXT-ID (OBJECT)

The ID of the last created object. When objects are created, this slot is incremented and its value is used to automatically generate object IDs.

SETFPERSISTENT-OBJECTS-OF-CLASS-NEXT-ID (NEW-VALUE OBJECT)

The ID of the last created object. When objects are created, this slot is incremented and its value is used to automatically generate object IDs.

SIZE (ABSTRACT-CONTAINER)

The Returns the number of items currently in the container.

SETFSIZE (NEW-VALUE OBJECT)

Set the Returns the number of items currently in the container.

VARIABLE

Private

*LOCKS*

Locks for Prevalence operation guards; one lock per store.

CLASS

Private

PERSISTENT-OBJECTS-OF-CLASS

This class represents an alternative to RDBMS table, holding object instances of a given class.