Version: 1.1.1

org.biomoby.registry.properties
Class MobyCentralConfig

java.lang.Object
  extended by org.biomoby.registry.properties.MobyCentralConfig

public class MobyCentralConfig
extends Object

Author:
Eddie Kawas

This class was created to provide a way of querying a users local registry and obtaining information of objects in the BioMoby Ontologies.. If you do not have a local registry, this class will not function correctly.

For questions, comments, or bugs

email me at edward.kawas@gmail.com


Constructor Summary
MobyCentralConfig()
           
 
Method Summary
static Map getMobyCentral()
          A method that retrieves the mySQL connection details for the database mobycentral.
static Map getMobyNamespace()
          A method that retrieves the mySQL connection details for the database mobynamespace.
static Map getMobyObject()
          A method that retrieves the mySQL connection details for the database mobyobject.
static Map getMobyRelationship()
          A method that retrieves the mySQL connection details for the database mobyrelationship.
static Map getMobyService()
          A method that retrieves the mySQL connection details for the database mobyservice.
static void main(String[] args)
          a brief test application that outputs the information obtained by calling each of the methods in this class.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MobyCentralConfig

public MobyCentralConfig()
Method Detail

getMobyCentral

public static final Map getMobyCentral()
                                throws MobyException
A method that retrieves the mySQL connection details for the database mobycentral.

PRE: The property config is specified and configured correctly in the file biomoby.properties.

POST: Map consists of the mySQL connection information for the database mobycentral or MobyException is thrown.

Returns:
- A Map of the mySQL connection information is returned. The Keys for the map are typically username, password, url, port, and dbname.
Throws:
MobyException - - if biomoby.properties file cannot be found or is incorrectly configured.

getMobyNamespace

public static final Map getMobyNamespace()
                                  throws MobyException
A method that retrieves the mySQL connection details for the database mobynamespace.

PRE: The property config is specified and configured correctly in the file biomoby.properties.

POST: Map consists of the mySQL connection information for the database mobynamespace or MobyException is thrown.

Returns:
- A Map of the mySQL connection information is returned. The Keys for the map are typically username, password, url, port, and dbname.
Throws:
MobyException - - if biomoby.properties file cannot be found or is incorrectly configured.

getMobyObject

public static final Map getMobyObject()
                               throws MobyException
A method that retrieves the mySQL connection details for the database mobyobject.

PRE: The property config is specified and configured correctly in the file biomoby.properties.

POST: Map consists of the mySQL connection information for the database mobyobject or MobyException is thrown.

Returns:
- A Map of the mySQL connection information is returned. The Keys for the map are typically username, password, url, port, and dbname.
Throws:
MobyException - - if biomoby.properties file cannot be found or is incorrectly configured.

getMobyService

public static final Map getMobyService()
                                throws MobyException
A method that retrieves the mySQL connection details for the database mobyservice.

PRE: The property config is specified and configured correctly in the file biomoby.properties.

POST: Map consists of the mySQL connection information for the database mobyservice or MobyException is thrown.

Returns:
- A Map of the mySQL connection information is returned. The Keys for the map are typically username, password, url, port, and dbname.
Throws:
MobyException - - if biomoby.properties file cannot be found or is incorrectly configured.

getMobyRelationship

public static final Map getMobyRelationship()
                                     throws MobyException
A method that retrieves the mySQL connection details for the database mobyrelationship.

PRE: The property config is specified and configured correctly in the file biomoby.properties.

POST: Map consists of the mySQL connection information for the database mobyrelationship or MobyException is thrown.

Returns:
- A Map of the mySQL connection information is returned. The Keys for the map are typically username, password, url, port, and dbname.
Throws:
MobyException - - if biomoby.properties file cannot be found or is incorrectly configured.

main

public static void main(String[] args)
                 throws MobyException
a brief test application that outputs the information obtained by calling each of the methods in this class. If biomoby.properties is incorrectly configured then MobyException is thrown.

Throws:
MobyException

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010