Package org.biojava.bio.program.unigene
Class SQLUnigeneFactory
java.lang.Object
org.biojava.bio.program.unigene.SQLUnigeneFactory
- All Implemented Interfaces:
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.
- Author:
- Matthew Pocock
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Accepts all URLs that are of the jdbc protocol.createUnigene
(URL dbURL) loadUnigene
(URL dbURL)
-
Constructor Details
-
SQLUnigeneFactory
public SQLUnigeneFactory()
-
-
Method Details
-
canAccept
Accepts all URLs that are of the jdbc protocol.- Specified by:
canAccept
in interfaceUnigeneFactory
-
loadUnigene
- Specified by:
loadUnigene
in interfaceUnigeneFactory
- Throws:
BioException
-
createUnigene
- Specified by:
createUnigene
in interfaceUnigeneFactory
- Throws:
BioException
-