gov.usda.gdpc
Interface DBElementGroup

All Superinterfaces:
java.util.Collection, Group, java.util.List
All Known Subinterfaces:
EnvironmentExperimentGroup, GenotypeExperimentGroup, GenotypeGroup, LocalityGroup, LocusGroup, PhenotypeGroup, PhenotypeOntologyGroup, TaxonGroup
All Known Implementing Classes:
AbstractDBElementGroup, AbstractEnvironmentExperimentGroup, AbstractGenotypeExperimentGroup, AbstractGenotypeGroup, AbstractLocalityGroup, AbstractLocusGroup, AbstractPhenotypeGroup, AbstractPhenotypeOntologyGroup, AbstractTaxonGroup

public interface DBElementGroup
extends Group

List of database elements.

Author:
terryc

Method Summary
 java.util.List getDBElements(java.lang.String dataSource)
          Returns the list of elements contained in this group which originated from the given data source.
 DistinctPropertyValues getDistinctProperties(Property[] properties)
          Returns list(s) of distinct property values for the given properties.
 java.lang.String getType()
          Get type of this group.
 void index()
          Indexes this group based on the unique key (getKey()).
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Method Detail

getDBElements

public java.util.List getDBElements(java.lang.String dataSource)
Returns the list of elements contained in this group which originated from the given data source.

Parameters:
dataSource - data source
Returns:
list of elements

getDistinctProperties

public DistinctPropertyValues getDistinctProperties(Property[] 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.

Parameters:
properties - list of properties
Returns:
list(s) of distinct property values

index

public void index()
Indexes this group based on the unique key (getKey()). The performance of the getTaxon method improves after executing this method. Additional memory used.


getType

public java.lang.String getType()
Get type of this group.

Returns:
type