| java.lang.Object com.jofti.cache.adapter.ChangeRecorder
ChangeRecorder | public class ChangeRecorder (Code) | | Used by the JBossCacheAdapter to provide Transaction isolation for the
changes to the index. In effect each transaction acquires its own mini-index which stores the
changes to the larger main index. These changes are then applied on a commit (after the cache changes have committed).
author: Steve Woodcock (steve@jofti.com) |
Method Summary | |
public synchronized void | add(Object key, Object value, ClassIntrospector parser) | public boolean | contains(Object key, ClassIntrospector parser) | public Collection | getAllTreeValues() | public Set | getRemovedKeys() | Map | getRemovedMap() | Map | getUpdatedMap() | public void | init(Properties props, String indexType) Initialises a new NameSpacedtreeIndex so local changes can be stored. | public Map | query(IndexQuery query) Executes a query against the local index. | public synchronized void | remove(Object key, Object value, ClassIntrospector parser) Removes an object from the local index. | public synchronized void | remove(Object key, ClassIntrospector parser) Removes an object mapping from the change recorder. | public synchronized void | update(Object key, Object oldValue, Object value, ClassIntrospector parser) |
getRemovedKeys | public Set getRemovedKeys()(Code) | | Returns the removedKeys. |
remove | public synchronized void remove(Object key, Object value, ClassIntrospector parser) throws JoftiException(Code) | | Removes an object from the local index. This method also adds the removed key and
values to the removedValues map so when committed a full list of removed objects can be
identified.
Parameters: key - Parameters: value - Parameters: parser - throws: JoftiException - |
|
|