|
Class Reference
%Library.CacheSQLStorage
|
|
![]() |
|||
Private Storage |
The %CacheSQLStorage class contains a set of storage interface methods that use embedded SQL statements, as well as an advanced set of data mapping definition, to provide a way to layer objects on top of pre-existing Caché data structures.
The storage interface methods, which are implemented as method generators, work in conjunction with the persistent interface methods of the %Persistent class to provide persistent behavior for objects.
The methods of %CacheSQLStorage are not meant to be called directly. Use the methods of the %Persistent class which, in turn, call the appropriate %CacheStorage method.
|
|
|
|
%BuildIndices Build all the indices contained in idxlist. If idxlist is empty then all indices will be built. If autoPurge is true then %PurgeIndices(idxlist) will be called before starting to build.
%Exists() Check to see if an OID exists in the extent of this class...
Acquire (s)hared or (e)xclusive locks based on locktype parameter
Acquire (s)hared or (e)xclusive locks based on locktype parameter
Deletes all entries from each index specified in the idxlist argument. If idxlist is empty then all indices that originate in the class are purged. The index definition remains intact.Returns a
%Status value indicating success or failure. This method is normally generated by the storage class for persistent classes using%Library.CacheStorage or %Library.CacheSQLStorage. Persistent classes using some other storage class, such as%Library.CustomStorage must override this method.
Release (s)hared or (e)xclusive locks based on locktype parameter
Release locks held on an object (identified by the id parameter). If shared is true then the lock released is a shared lock. If immediate is true then release the lock immediately (lock not held until completion of the current transaction)