Package net.ontopia.topicmaps.impl.rdbms
Class SharedLocatorLookup<E>
- java.lang.Object
-
- net.ontopia.topicmaps.impl.rdbms.SharedLocatorLookup<E>
-
- All Implemented Interfaces:
TransactionalLookupIndexIF<LocatorIF,E>
public class SharedLocatorLookup<E> extends Object implements TransactionalLookupIndexIF<LocatorIF,E>
INTERNAL: Non-shared locator lookup index.
-
-
Field Summary
Fields Modifier and Type Field Description protected StorageAccessIF
access
protected QueryCache<LocatorIF,E>
qcache
protected IdentityIF
tmid
protected Map<LocatorIF,E>
txnadd
protected Set<LocatorIF>
txnrem
-
Constructor Summary
Constructors Constructor Description SharedLocatorLookup(StorageAccessIF access, QueryCache<LocatorIF,E> qcache, IdentityIF tmid)
-
-
-
Field Detail
-
access
protected StorageAccessIF access
-
qcache
protected QueryCache<LocatorIF,E> qcache
-
tmid
protected IdentityIF tmid
-
-
Constructor Detail
-
SharedLocatorLookup
public SharedLocatorLookup(StorageAccessIF access, QueryCache<LocatorIF,E> qcache, IdentityIF tmid)
-
-
Method Detail
-
get
public E get(LocatorIF key)
- Specified by:
get
in interfaceTransactionalLookupIndexIF<LocatorIF,E>
-
put
public E put(LocatorIF key, E value)
- Specified by:
put
in interfaceTransactionalLookupIndexIF<LocatorIF,E>
-
remove
public E remove(LocatorIF key)
- Specified by:
remove
in interfaceTransactionalLookupIndexIF<LocatorIF,E>
-
removeAll
public void removeAll(Collection<LocatorIF> keys)
- Specified by:
removeAll
in interfaceTransactionalLookupIndexIF<LocatorIF,E>
-
commit
public void commit()
- Specified by:
commit
in interfaceTransactionalLookupIndexIF<LocatorIF,E>
-
abort
public void abort()
- Specified by:
abort
in interfaceTransactionalLookupIndexIF<LocatorIF,E>
-
-