net.ontopia.topicmaps.entry
Class StoreRegistry

java.lang.Object
  extended by net.ontopia.topicmaps.entry.StoreRegistry

Deprecated.

public class StoreRegistry
extends java.lang.Object

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.

Since:
1.3.2

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

repository

protected TopicMapRepositoryIF repository
Deprecated. 

txnusers

protected java.util.Map<java.lang.Object,java.util.Map<java.lang.String,TopicMapStoreIF>> txnusers
Deprecated. 
Constructor Detail

StoreRegistry

public StoreRegistry(TopicMapRepositoryIF repository)
Deprecated. 
Method Detail

getRepository

public TopicMapRepositoryIF getRepository()
Deprecated. 
INTERNAL: Returns the topic map repository used.


getStore

public 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. A transaction user is the object that is used to make sure that you get the right transaction among many. The transaction user object can be any object. It is just used to look up the right store.


getReferenceKey

public 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. An exception is thrown if the store is not registered with the registry.


getReferenceKeys

public 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.


getStores

public 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.


isStoreOpen

public 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.

Returns:
true if the store is open, false otherwise
Since:
1.3.4

openStore

public TopicMapStoreIF openStore(java.lang.Object txnuser,
                                 java.lang.String refkey,
                                 boolean readonly)
                          throws java.io.IOException
Deprecated. 
INTERNAL: Open a new topic store for the given transaction user and reference key. The store is created from a topic map reference that is looked up in the topic map repository using the reference key.

Throws:
java.io.IOException

putStore

protected void putStore(java.lang.Object txnuser,
                        java.lang.String refkey,
                        TopicMapStoreIF store)
Deprecated. 

closeStore

public 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.


removeStore

protected void removeStore(java.lang.Object txnuser,
                           java.lang.String refkey)
Deprecated. 


Copyright © 2000-2012 Ontopia.