gov.usda.gdpc
Class DefaultDBGateway

java.lang.Object
  extended bygov.usda.gdpc.AbstractDBGateway
      extended bygov.usda.gdpc.DefaultDBGateway
All Implemented Interfaces:
DBGateway

public final class DefaultDBGateway
extends AbstractDBGateway

This is the default implementation of the database gateway. Most of the function comes from the abstract class that is extends, but it does provide the getInstance() method which returns the singleton instance of this class. In most cases, this gateway should be used. Only if you need more specialized function would you need to extend the abstract class and create a gateway of your own.

Author:
terryc

Constructor Summary
DefaultDBGateway()
          DefaultDBGateway constructor.
 
Method Summary
static DBGateway getInstance()
          This creates an instance of this class, and subsequent calls returns that same instance.
 
Methods inherited from class gov.usda.gdpc.AbstractDBGateway
addDBConnection, getDBConnections, getDistinctProperties, getEnvironmentExperimentGroup, getGenotypeExperimentGroup, getGenotypeGroup, getLocalityGroup, getLocusGroup, getNumConnections, getPhenotypeGroup, getPhenotypeOntologyGroup, getTaxonGroup, removeDBConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDBGateway

public DefaultDBGateway()
DefaultDBGateway constructor.

Method Detail

getInstance

public static DBGateway getInstance()
This creates an instance of this class, and subsequent calls returns that same instance.

Returns:
the single instance