gov.usda.gdpc.axis
Class DBConnectionProxy

java.lang.Object
  extended bygov.usda.gdpc.axis.DBConnectionProxy
All Implemented Interfaces:
DBConnection

public final class DBConnectionProxy
extends java.lang.Object
implements DBConnection

Author:
terryc

Constructor Summary
DBConnectionProxy(java.lang.String serviceName, java.lang.String endpoint)
          DBConnectionProxy Constructor.
 
Method Summary
 void close()
          This method is used to tell the connection to close or generally release any resources and shutdown.
 java.lang.String getDataSource()
          Returns the data source of this connection.
 java.lang.String getDescription()
          Returns a description of this connection.
 DistinctPropertyValues getDistinctProperties(java.util.List properties)
          Returns list(s) of distinct property values for the given properties.
 java.lang.String getEndpoint()
           
 EnvironmentExperimentGroup getEnvironmentExperimentGroup(EnvironmentExperimentFilter filter)
          Gets an environment experiment group based on the given environment experiment filter.
 GenotypeExperimentGroup getGenotypeExperimentGroup(GenotypeExperimentFilter filter)
          Gets a genotype experiment group based on the given genotype experiment filter.
 GenericTable getGenotypeGenericTable(GenotypeExperimentGroup experimentGroup, TaxonGroup taxonGroup)
          Gets the genotypes for all combinations of genotype experiments and taxa defined by the respective groups.
 GenotypeGroup getGenotypeGroup(GenotypeExperimentGroup experimentGroup, TaxonGroup taxonGroup)
          Gets the genotypes for all combinations of genotype experiments and taxa defined by the respective groups.
 LocalityGroup getLocalityGroup(LocalityFilter filter)
          Gets a locality group based on the given locality filter.
 LocusGroup getLocusGroup(LocusFilter filter)
          Gets a locus group based on the given locus filter.
 java.lang.String getNamespace()
           
 PhenotypeGroup getPhenotypeGroup(EnvironmentExperimentGroup experimentGroup, TaxonGroup taxonGroup, PhenotypeOntologyGroup ontologyGroup)
          Gets the phenotypes for all combinations of environment experiments, taxa, and phenotype ontologys defined by the respective groups.
 PhenotypeOntologyGroup getPhenotypeOntologyGroup(PhenotypeOntologyFilter filter)
          Get a phenotype ontology group based on the given pheotype ontology filter.
 java.lang.String getServiceName()
           
 java.lang.String getStyle()
           
 TaxonGroup getTaxonGroup(TaxonFilter filter)
          Gets a taxon group based on the given taxon filter.
 java.lang.String getUse()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DBConnectionProxy

public DBConnectionProxy(java.lang.String serviceName,
                         java.lang.String endpoint)
DBConnectionProxy Constructor.

Method Detail

close

public void close()
This method is used to tell the connection to close or generally release any resources and shutdown. The connection may choose to not support this method if end users are not allowed to close the connection.

Specified by:
close in interface DBConnection

getDataSource

public java.lang.String getDataSource()
Returns the data source of this connection. Typically, a URI.

Specified by:
getDataSource in interface DBConnection
Returns:
data source

getDescription

public java.lang.String getDescription()
Returns a description of this connection.

Specified by:
getDescription in interface DBConnection
Returns:
description

getDistinctProperties

public DistinctPropertyValues getDistinctProperties(java.util.List properties)
Returns list(s) of distinct property values for the given properties. The list(s) are values retrieved from this database connection. If null returned, this connection does not support the properties or the values could not be retrieved.

Specified by:
getDistinctProperties in interface DBConnection
Parameters:
properties - list of properties
Returns:
list(s) of distinct property values

getEnvironmentExperimentGroup

public EnvironmentExperimentGroup getEnvironmentExperimentGroup(EnvironmentExperimentFilter filter)
Gets an environment experiment group based on the given environment experiment filter.

Specified by:
getEnvironmentExperimentGroup in interface DBConnection
Parameters:
filter - filter containing criteria.
Returns:
the environment experiment group

getGenotypeExperimentGroup

public GenotypeExperimentGroup getGenotypeExperimentGroup(GenotypeExperimentFilter filter)
Gets a genotype experiment group based on the given genotype experiment filter.

Specified by:
getGenotypeExperimentGroup in interface DBConnection
Parameters:
filter - filter containing criteria.
Returns:
the genotype experiment group

getGenotypeGenericTable

public GenericTable getGenotypeGenericTable(GenotypeExperimentGroup experimentGroup,
                                            TaxonGroup taxonGroup)
Gets the genotypes for all combinations of genotype experiments and taxa defined by the respective groups.

Specified by:
getGenotypeGenericTable in interface DBConnection
Parameters:
experimentGroup - genotype experiment group
taxonGroup - taxon group
Returns:
generic table

getGenotypeGroup

public GenotypeGroup getGenotypeGroup(GenotypeExperimentGroup experimentGroup,
                                      TaxonGroup taxonGroup)
Gets the genotypes for all combinations of genotype experiments and taxa defined by the respective groups.

Specified by:
getGenotypeGroup in interface DBConnection
Parameters:
experimentGroup - genotype experiment group
taxonGroup - taxon group
Returns:
genotype group

getLocalityGroup

public LocalityGroup getLocalityGroup(LocalityFilter filter)
Gets a locality group based on the given locality filter.

Specified by:
getLocalityGroup in interface DBConnection
Parameters:
filter - filter containing criteria.
Returns:
the locality group

getLocusGroup

public LocusGroup getLocusGroup(LocusFilter filter)
Gets a locus group based on the given locus filter.

Specified by:
getLocusGroup in interface DBConnection
Parameters:
filter - filter containing criteria to build locus group.
Returns:
the locus group

getPhenotypeGroup

public PhenotypeGroup getPhenotypeGroup(EnvironmentExperimentGroup experimentGroup,
                                        TaxonGroup taxonGroup,
                                        PhenotypeOntologyGroup ontologyGroup)
Gets the phenotypes for all combinations of environment experiments, taxa, and phenotype ontologys defined by the respective groups.

Specified by:
getPhenotypeGroup in interface DBConnection
Parameters:
experimentGroup - environment experiment group
taxonGroup - taxon group
ontologyGroup - phenotype ontology group
Returns:
phenotype group

getPhenotypeOntologyGroup

public PhenotypeOntologyGroup getPhenotypeOntologyGroup(PhenotypeOntologyFilter filter)
Get a phenotype ontology group based on the given pheotype ontology filter.

Specified by:
getPhenotypeOntologyGroup in interface DBConnection
Parameters:
filter - phenotype ontology filter
Returns:
phenotype ontology group

getTaxonGroup

public TaxonGroup getTaxonGroup(TaxonFilter filter)
Gets a taxon group based on the given taxon filter.

Specified by:
getTaxonGroup in interface DBConnection
Parameters:
filter - filter containing criteria.
Returns:
the taxon group

getNamespace

public java.lang.String getNamespace()

getStyle

public java.lang.String getStyle()

getUse

public java.lang.String getUse()

getServiceName

public java.lang.String getServiceName()

getEndpoint

public java.lang.String getEndpoint()

toString

public java.lang.String toString()