public class SQLUnigeneFactory extends Object implements UnigeneFactory
An implementatoin of UnigeneFactory that manages it's data in an SQL database.
This class is for developers and power-users. Usually you will not use this class directly, but rather use UnigeneTools.loadDatabase() with a jdbc URL.
This class will store unigene data in a relational database with a schema defined by the resource src/org/biojava/bio/program/unigene/createUnigene.sql and currently only realy supports mysql. To import data to a newly created database, repeatedly call addCluster() on the UnigeneDB you get back.
| Constructor and Description |
|---|
SQLUnigeneFactory() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAccept(URL dbURL)
Accepts all URLs that are of the jdbc protocol.
|
UnigeneDB |
createUnigene(URL dbURL) |
UnigeneDB |
loadUnigene(URL dbURL) |
public SQLUnigeneFactory()
public boolean canAccept(URL dbURL)
canAccept in interface UnigeneFactorypublic UnigeneDB loadUnigene(URL dbURL) throws BioException
loadUnigene in interface UnigeneFactoryBioExceptionpublic UnigeneDB createUnigene(URL dbURL) throws BioException
createUnigene in interface UnigeneFactoryBioExceptionCopyright © 2020 BioJava. All rights reserved.