Version: 1.1.1

org.biomoby.registry.definitions.types
Class JServicesSqlImpl

java.lang.Object
  extended by org.biomoby.registry.definitions.types.JServicesSqlImpl
All Implemented Interfaces:
JServiceI

public final class JServicesSqlImpl
extends Object
implements JServiceI

Author:
Eddie Kawas mySQL implementation of JServicesI

email me at edward.kawas@gmail.com


Constructor Summary
JServicesSqlImpl()
           
 
Method Summary
 String[][] getFullServicesAsArray()
          Get all the data in the db regrading service types.
 String getServices()
          method that returns the various service types, service relationship, service type that this relationship is with, and description, all tab-delimited.
 String[][] getServicesAsArray()
          method that returns the various service types, service relationship, service type that this relationship is with, and description, all tab-delimited.
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JServicesSqlImpl

public JServicesSqlImpl()
                 throws MobyException
Throws:
MobyException - if database driver cannot be found or there is an database access error.
Method Detail

getServices

public final String getServices()
Description copied from interface: JServiceI
method that returns the various service types, service relationship, service type that this relationship is with, and description, all tab-delimited.

PRE:None.

POST:A string containing the various service types, service relationship, service type that this relationship is with, and description, all tab-delimited.

Specified by:
getServices in interface JServiceI
Returns:
- A string containing the various service types, service relationship, service type that this relationship is with, and description, all tab-delimited.

getServicesAsArray

public String[][] getServicesAsArray()
Description copied from interface: JServiceI
method that returns the various service types, service relationship, service type that this relationship is with, and description, all tab-delimited.

PRE:None.

POST:A string array containing sub string arrays containing the various service types, service relationship, service type that this relationship is with, and description, all tab-delimited.

Example of the structure that is returned: [[service type, relationship type, service type parent, description of the service type]]

Specified by:
getServicesAsArray in interface JServiceI
Returns:
A string array , with each item in the array being another string array containing a service type, service relationship, service type that this relationship is with, and description, all tab-delimited.

getFullServicesAsArray

public String[][] getFullServicesAsArray()
Get all the data in the db regrading service types.

Returns:
an array of String[] objects. The String[] consists of {service_type, relationship_type, to_service_type, description, service_lsid, authority, contact_email, to_service_type_lsid}. Note that relationship_type is the relationship that service_type has with to_service_type.

main

public static void main(String[] args)
                 throws MobyException
Throws:
MobyException

Version: 1.1.1

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