public interface SequenceDBLite extends Changeable
| Modifier and Type | Field and Description | 
|---|---|
static ChangeType | 
SEQUENCES
Signals that sequences are being added to or remove from the database. 
 | 
| 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, isUnchanging, removeChangeListener, removeChangeListenerstatic final ChangeType SEQUENCES
String getName()
Sequence getSequence(String id) throws IllegalIDException, BioException
id - the id to retrieve byIllegalIDException - if the database doesn't know about the idBioException - if there was a failure in retrieving the sequencevoid addSequence(Sequence seq) throws IllegalIDException, BioException, ChangeVetoException
seq - the Sequence to addIllegalIDException - if a uniqe ID could not be generated for seqBioException - if something goes wrong with adding the sequenceChangeVetoException - if either the database does not allow
         sequences to be added or the modification was vetoedvoid removeSequence(String id) throws IllegalIDException, BioException, ChangeVetoException
id - the ID of the sequence to removeIllegalIDException - if there is no sequence for the IDBioException - if something failed while removing the sequence for
          that IDChangeVetoException - if either the database does not allow
          sequences to be removed or the modification was vetoedCopyright © 2020 BioJava. All rights reserved.