public class DBCollection extends Object implements CollectionOfSpecies
Constructor and Description |
---|
DBCollection() |
DBCollection(DBCollectionCoreDatabase database) |
Modifier and Type | Method and Description |
---|---|
void |
addDatabases(TreeSet<? extends CollectionDatabase> databases) |
void |
addSpecies(Collection<? extends CollectionSpecies> spp) |
void |
addSpecies(CollectionSpecies sp) |
String |
getCollectionName() |
DBCollectionCoreDatabase |
getCoreDatabase() |
TreeSet<DBCollectionDatabase> |
getDatabases() |
TreeSet<DBCollectionDatabase> |
getDatabasesByType(DatabaseType type) |
String |
getDBVersion() |
String |
getSchemaVersion() |
TreeSet<DBCollectionSpecies> |
getSpecies() |
void |
resortSpecies()
Finalization method to be called after all species have been added to all collections.
|
void |
setPrimaryCoreDatabase(DBCollectionCoreDatabase database) |
void |
setProperty(String id,
HashMap row) |
String |
toString() |
public DBCollection()
public DBCollection(DBCollectionCoreDatabase database)
public void setPrimaryCoreDatabase(DBCollectionCoreDatabase database)
public void setProperty(String id, HashMap row)
setProperty
in interface CollectionOfSpecies
public String getDBVersion()
getDBVersion
in interface CollectionOfSpecies
public String getCollectionName()
getCollectionName
in interface CollectionOfSpecies
public TreeSet<DBCollectionDatabase> getDatabases()
getDatabases
in interface CollectionOfSpecies
public void addDatabases(TreeSet<? extends CollectionDatabase> databases)
addDatabases
in interface CollectionOfSpecies
public TreeSet<DBCollectionSpecies> getSpecies()
getSpecies
in interface CollectionOfSpecies
public void addSpecies(Collection<? extends CollectionSpecies> spp)
addSpecies
in interface CollectionOfSpecies
public void addSpecies(CollectionSpecies sp)
addSpecies
in interface CollectionOfSpecies
public DBCollectionCoreDatabase getCoreDatabase()
getCoreDatabase
in interface CollectionOfSpecies
public String getSchemaVersion()
getSchemaVersion
in interface CollectionOfSpecies
public TreeSet<DBCollectionDatabase> getDatabasesByType(DatabaseType type)
getDatabasesByType
in interface CollectionOfSpecies
public void resortSpecies()
JEnsembl: A Java API for Ensembl Data Access v1.78
© Roslin Institute 2010-14. GNU General Public License, version3