@Deprecated public class StoreRegistry extends Object
The class uses transaction user objects and topic map reference keys to group topic map stores. Topic map stores are created using the containing topic map repository instance.
Note that only a single topic map store can be managed per transaction user and reference key combination.
Modifier and Type | Field and Description |
---|---|
protected TopicMapRepositoryIF |
repository
Deprecated.
|
protected Map<Object,Map<String,TopicMapStoreIF>> |
txnusers
Deprecated.
|
Constructor and Description |
---|
StoreRegistry(TopicMapRepositoryIF repository)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
closeStore(Object txnuser,
String refkey)
Deprecated.
INTERNAL: Closes and dereferences the topic map store for the
given transaction user and reference key.
|
String |
getReferenceKey(Object txnuser,
TopicMapStoreIF store)
Deprecated.
INTERNAL: Returns the reference key for the given transaction
user's topic map store.
|
Collection<String> |
getReferenceKeys(Object txnuser)
Deprecated.
INTERNAL: Returns a collection contains all reference keys for
the given transaction user.
|
TopicMapRepositoryIF |
getRepository()
Deprecated.
INTERNAL: Returns the topic map repository used.
|
TopicMapStoreIF |
getStore(Object txnuser,
String refkey)
Deprecated.
INTERNAL: Looks up a topic map store for a given transaction user
and topic map reference key.
|
Collection<TopicMapStoreIF> |
getStores(Object txnuser)
Deprecated.
INTERNAL: Returns a collection contains all stores that is
registered with the given transaction user.
|
boolean |
isStoreOpen(Object txnuser,
String refkey)
Deprecated.
INTERNAL: Returns true if the topic map store is already opend for
the given transaction user and reference key.
|
TopicMapStoreIF |
openStore(Object txnuser,
String refkey,
boolean readonly)
Deprecated.
INTERNAL: Open a new topic store for the given transaction user
and reference key.
|
protected void |
putStore(Object txnuser,
String refkey,
TopicMapStoreIF store)
Deprecated.
|
protected void |
removeStore(Object txnuser,
String refkey)
Deprecated.
|
protected TopicMapRepositoryIF repository
protected Map<Object,Map<String,TopicMapStoreIF>> txnusers
public StoreRegistry(TopicMapRepositoryIF repository)
public TopicMapRepositoryIF getRepository()
public TopicMapStoreIF getStore(Object txnuser, String refkey)
public String getReferenceKey(Object txnuser, TopicMapStoreIF store)
public Collection<String> getReferenceKeys(Object txnuser)
public Collection<TopicMapStoreIF> getStores(Object txnuser)
public boolean isStoreOpen(Object txnuser, String refkey)
public TopicMapStoreIF openStore(Object txnuser, String refkey, boolean readonly) throws IOException
IOException
protected void putStore(Object txnuser, String refkey, TopicMapStoreIF store)
public void closeStore(Object txnuser, String refkey)