public class BioFetchSequenceDB extends Unchangeable implements SequenceDBLite
SEQUENCES| Constructor and Description | 
|---|
BioFetchSequenceDB(String location,
                  String dbName)
Construct a BioFetchSequenceDB which connects to the specified
 BioFetch server. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
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. 
 | 
addChangeListener, addChangeListener, addForwarder, getForwarders, getListeners, isUnchanging, removeChangeListener, removeChangeListener, removeForwarderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerpublic BioFetchSequenceDB(String location, String dbName)
location - The base URL of the server.dbName - The database name to use.public String getName()
SequenceDBLitegetName in interface SequenceDBLitepublic void addSequence(Sequence seq) throws ChangeVetoException
SequenceDBLiteaddSequence in interface SequenceDBLiteseq - the Sequence to addChangeVetoException - if either the database does not allow
         sequences to be added or the modification was vetoedpublic void removeSequence(String id) throws ChangeVetoException
SequenceDBLiteremoveSequence in interface SequenceDBLiteid - the ID of the sequence to removeChangeVetoException - if either the database does not allow
          sequences to be removed or the modification was vetoedpublic Sequence getSequence(String id) throws BioException, IllegalIDException
SequenceDBLitegetSequence in interface SequenceDBLiteid - the id to retrieve byIllegalIDException - if the database doesn't know about the idBioException - if there was a failure in retrieving the sequenceCopyright © 2020 BioJava. All rights reserved.