public interface RichSequenceDBLite extends BioEntryDBLite, SequenceDBLite
BIOENTRYS
SEQUENCES
Modifier and Type | Method and Description |
---|---|
void |
addRichSequence(RichSequence seq)
Adds a sequence to the database.
|
RichSequence |
getRichSequence(String id)
Retrieve a single RichSequence by its id.
|
RichSequenceDB |
getRichSequences(Set ids)
Retrieve multiple RichSequence by its id.
|
RichSequenceDB |
getRichSequences(Set ids,
RichSequenceDB db)
Retrieve multiple RichSequence into a specific sequence database.
|
void |
removeRichSequence(String id)
Remove the RichSequence associated with an ID from the database.
|
addBioEntry, getBioEntry, getBioEntrys, getBioEntrys, getName, removeBioEntry
addSequence, getName, getSequence, removeSequence
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
RichSequence getRichSequence(String id) throws BioException, IllegalIDException
id
- the id to retrieve byIllegalIDException
- if the database doesn't know about the idBioException
RichSequenceDB getRichSequences(Set ids) throws BioException, IllegalIDException
ids
- a set of ids to retrieve byIllegalIDException
- if the database doesn't know about the idBioException
RichSequenceDB getRichSequences(Set ids, RichSequenceDB db) throws BioException, IllegalIDException
ids
- a set of ids to retrieve bydb
- a database to load the seqs intoIllegalIDException
- if the database doesn't know about the idBioException
void addRichSequence(RichSequence seq) throws IllegalIDException, BioException, ChangeVetoException
seq
- the RichSequence to addIllegalIDException
- if a uniqe ID could not be generated for RichSequenceBioException
- if something goes wrong with adding the RichSequenceChangeVetoException
- if either the database does not allow
RichSequences to be added or the modification was vetoedvoid removeRichSequence(String id) throws IllegalIDException, BioException, ChangeVetoException
id
- the ID of the RichSequence to removeIllegalIDException
- if there is no RichSequence for the IDBioException
- if something failed while removing the RichSequence for
that IDChangeVetoException
- if either the database does not allow
RichSequences to be removed or the modification was vetoedCopyright © 2014 BioJava. All rights reserved.