|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biojava.utils.Unchangeable
org.biojava.bio.seq.db.biofetch.BioFetchSequenceDB
public class BioFetchSequenceDB
Simple SequenceDB implementation backed by a BioFetch (HTTP) server.
| Field Summary |
|---|
| Fields inherited from interface org.biojava.bio.seq.db.SequenceDBLite |
|---|
SEQUENCES |
| Constructor Summary | |
|---|---|
BioFetchSequenceDB(String location,
String dbName)
Construct a BioFetchSequenceDB which connects to the specified BioFetch server. |
|
| Method Summary | |
|---|---|
void |
addSequence(Sequence seq)
Adds a sequence to the database. |
String |
getName()
Get the name of this sequence database. |
Sequence |
getSequence(String id)
Retrieve a single sequence by its id. |
void |
removeSequence(String id)
Remove the sequence associated with an ID from the database. |
| Methods inherited from class org.biojava.utils.Unchangeable |
|---|
addChangeListener, addChangeListener, addForwarder, getForwarders, getListeners, isUnchanging, removeChangeListener, removeChangeListener, removeForwarder |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.biojava.utils.Changeable |
|---|
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener |
| Constructor Detail |
|---|
public BioFetchSequenceDB(String location,
String dbName)
location - The base URL of the server.dbName - The database name to use.| Method Detail |
|---|
public String getName()
SequenceDBLite
getName in interface SequenceDBLite
public void addSequence(Sequence seq)
throws ChangeVetoException
SequenceDBLite
addSequence in interface SequenceDBLiteseq - the Sequence to add
ChangeVetoException - if either the database does not allow
sequences to be added or the modification was vetoed
public void removeSequence(String id)
throws ChangeVetoException
SequenceDBLite
removeSequence in interface SequenceDBLiteid - the ID of the sequence to remove
ChangeVetoException - if either the database does not allow
sequences to be removed or the modification was vetoed
public Sequence getSequence(String id)
throws BioException,
IllegalIDException
SequenceDBLite
getSequence in interface SequenceDBLiteid - the id to retrieve by
IllegalIDException - if the database doesn't know about the id
BioException - if there was a failure in retrieving the sequence
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||