|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.topicmaps.entry.StoreRegistry
public class StoreRegistry
INTERNAL: Class used to manage topic map stores for multiple application users.
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.
Field Summary | |
---|---|
protected TopicMapRepositoryIF |
repository
Deprecated. |
protected java.util.Map<java.lang.Object,java.util.Map<java.lang.String,TopicMapStoreIF>> |
txnusers
Deprecated. |
Constructor Summary | |
---|---|
StoreRegistry(TopicMapRepositoryIF repository)
Deprecated. |
Method Summary | |
---|---|
void |
closeStore(java.lang.Object txnuser,
java.lang.String refkey)
Deprecated. INTERNAL: Closes and dereferences the topic map store for the given transaction user and reference key. |
java.lang.String |
getReferenceKey(java.lang.Object txnuser,
TopicMapStoreIF store)
Deprecated. INTERNAL: Returns the reference key for the given transaction user's topic map store. |
java.util.Collection<java.lang.String> |
getReferenceKeys(java.lang.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(java.lang.Object txnuser,
java.lang.String refkey)
Deprecated. INTERNAL: Looks up a topic map store for a given transaction user and topic map reference key. |
java.util.Collection<TopicMapStoreIF> |
getStores(java.lang.Object txnuser)
Deprecated. INTERNAL: Returns a collection contains all stores that is registered with the given transaction user. |
boolean |
isStoreOpen(java.lang.Object txnuser,
java.lang.String refkey)
Deprecated. INTERNAL: Returns true if the topic map store is already opend for the given transaction user and reference key. |
TopicMapStoreIF |
openStore(java.lang.Object txnuser,
java.lang.String refkey,
boolean readonly)
Deprecated. INTERNAL: Open a new topic store for the given transaction user and reference key. |
protected void |
putStore(java.lang.Object txnuser,
java.lang.String refkey,
TopicMapStoreIF store)
Deprecated. |
protected void |
removeStore(java.lang.Object txnuser,
java.lang.String refkey)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected TopicMapRepositoryIF repository
protected java.util.Map<java.lang.Object,java.util.Map<java.lang.String,TopicMapStoreIF>> txnusers
Constructor Detail |
---|
public StoreRegistry(TopicMapRepositoryIF repository)
Method Detail |
---|
public TopicMapRepositoryIF getRepository()
public TopicMapStoreIF getStore(java.lang.Object txnuser, java.lang.String refkey)
public java.lang.String getReferenceKey(java.lang.Object txnuser, TopicMapStoreIF store)
public java.util.Collection<java.lang.String> getReferenceKeys(java.lang.Object txnuser)
public java.util.Collection<TopicMapStoreIF> getStores(java.lang.Object txnuser)
public boolean isStoreOpen(java.lang.Object txnuser, java.lang.String refkey)
public TopicMapStoreIF openStore(java.lang.Object txnuser, java.lang.String refkey, boolean readonly) throws java.io.IOException
java.io.IOException
protected void putStore(java.lang.Object txnuser, java.lang.String refkey, TopicMapStoreIF store)
public void closeStore(java.lang.Object txnuser, java.lang.String refkey)
protected void removeStore(java.lang.Object txnuser, java.lang.String refkey)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |