Package net.ontopia.topicmaps.impl.rdbms
Class QueryLookup<V>
- java.lang.Object
-
- net.ontopia.topicmaps.impl.rdbms.QueryLookup<V>
-
- All Implemented Interfaces:
TransactionalLookupIndexIF<ParameterArray,V>
public class QueryLookup<V> extends Object implements TransactionalLookupIndexIF<ParameterArray,V>
INTERNAL: Non-shared locator lookup index.
-
-
Constructor Summary
Constructors Constructor Description QueryLookup(String qname, TransactionIF txn, int lrusize, V nullObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabort()voidcommit()Vget(ParameterArray params)Vput(ParameterArray key, V value)Vremove(ParameterArray key)voidremoveAll(Collection<ParameterArray> keys)
-
-
-
Field Detail
-
qname
protected String qname
-
txn
protected TransactionIF txn
-
cache
protected Map<ParameterArray,V> cache
-
-
Constructor Detail
-
QueryLookup
public QueryLookup(String qname, TransactionIF txn, int lrusize, V nullObject)
-
-
Method Detail
-
get
public V get(ParameterArray params)
- Specified by:
getin interfaceTransactionalLookupIndexIF<ParameterArray,V>
-
put
public V put(ParameterArray key, V value)
- Specified by:
putin interfaceTransactionalLookupIndexIF<ParameterArray,V>
-
remove
public V remove(ParameterArray key)
- Specified by:
removein interfaceTransactionalLookupIndexIF<ParameterArray,V>
-
removeAll
public void removeAll(Collection<ParameterArray> keys)
- Specified by:
removeAllin interfaceTransactionalLookupIndexIF<ParameterArray,V>
-
commit
public void commit()
- Specified by:
commitin interfaceTransactionalLookupIndexIF<ParameterArray,V>
-
abort
public void abort()
- Specified by:
abortin interfaceTransactionalLookupIndexIF<ParameterArray,V>
-
-