RecordsetIndexer Class
Plugin that provides the ability to store multiple custom hash tables referencing records in the recordset. This utility does not support any collision handling. New hash table entries with a used key overwrite older ones.
Item Index
Attributes
Methods
_defAddHash
()
private
Updates all hash tables when a record is added to the recordset
_defRemoveHash
()
private
Updates all hash tables when a record is removed from the recordset
_defUpdateHash
()
private
Updates all hash tables when the recordset is updated (a combination of add and remove)
_setHashTable
-
key
Setup the hash table for a given key with all existing records in the recordset
Parameters:
-
key
StringA key to hash by.
Returns:
Attributes
hashTables
Object
public
Collection of all the hashTables created by the plugin. The individual tables can be accessed by the key they are hashing against.
Fires event hashTablesChange
Fires when the value for the configuration attribute hashTables
is
changed. You can listen for the event using the on
method if you
wish to be notified before the attribute's value has changed, or
using the after
method if you wish to be notified after the
attribute's value has changed.
Parameters:
-
e
EventFacadeAn Event Facade object with the following attribute-specific properties added: