com.ibm.dse.tools.workbench.base
Class RepositoryRegistry
java.lang.Object
|
+--com.ibm.dse.tools.workbench.base.RepositoryRegistry
- public class RepositoryRegistry
- extends java.lang.Object
The class RepositoryRegistry
stores in a hashtable the available database connections
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
registry
protected static RepositoryRegistry registry
repositories
protected static java.util.Hashtable repositories
RepositoryRegistry
public RepositoryRegistry()
- Constructs the RepositoryRegistry.
addRepository
public static java.lang.String addRepository(Repository repository)
- Adds a new Repository to the list.
- Parameters:
repository
- com.ibm.dse.workbench.base.Repository- Returns:
- String. Key to register the Repository into the Registry.
getRegistry
public static RepositoryRegistry getRegistry()
- Returns the instance of RepositoryRegistry
- Returns:
- com.ibm.dse.tools.workbench.base.RepositoryRegistry
getRepositories
public static java.util.Hashtable getRepositories()
- Returns the list of repositories.
- Returns:
- java.util.Hashtable.
getRepository
public static Repository getRepository(java.lang.String repository)
- Returns the Repository registered using the key passed.
- Parameters:
repository
- java.lang.String.- Returns:
- com.ibm.dse.tools.workbench.base.Repository
getRepositoryKey
public static java.lang.String getRepositoryKey(Repository repository)
- Constructs the key to register this Repository..
- Parameters:
repository
- com.ibm.dse.tools.workbench.base.Repository.- Returns:
- java.lang.String.
removeRepository
public static void removeRepository(Repository repository)
throws RepositoryException
- Removes the Repository from the list
- Parameters:
repository
- com.ibm.dse.tools.workbench.base.Repository
removeRepository
public static void removeRepository(java.lang.String repositoryKey)
throws RepositoryException
- Removes the Repository from the list
- Parameters:
repositoryKey
- String.