|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RichSequenceDBLite
A database of RichSequences. This may have several implementations with rich behaviour, but basically most of the time you will just use the interface methods to do stuff. A RichSequence database contains a finite number of RichSequences stored under unique keys.
Field Summary |
---|
Fields inherited from interface org.biojavax.bio.db.BioEntryDBLite |
---|
BIOENTRYS |
Fields inherited from interface org.biojava.bio.seq.db.SequenceDBLite |
---|
SEQUENCES |
Method Summary | |
---|---|
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. |
Methods inherited from interface org.biojavax.bio.db.BioEntryDBLite |
---|
addBioEntry, getBioEntry, getBioEntrys, getBioEntrys, getName, removeBioEntry |
Methods inherited from interface org.biojava.bio.seq.db.SequenceDBLite |
---|
addSequence, getName, getSequence, removeSequence |
Methods inherited from interface org.biojava.utils.Changeable |
---|
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener |
Method Detail |
---|
RichSequence getRichSequence(String id) throws BioException, IllegalIDException
id
- the id to retrieve by
IllegalIDException
- if the database doesn't know about the id
BioException
RichSequenceDB getRichSequences(Set ids) throws BioException, IllegalIDException
ids
- a set of ids to retrieve by
IllegalIDException
- if the database doesn't know about the id
BioException
RichSequenceDB getRichSequences(Set ids, RichSequenceDB db) throws BioException, IllegalIDException
ids
- a set of ids to retrieve bydb
- a database to load the seqs into
IllegalIDException
- if the database doesn't know about the id
BioException
void addRichSequence(RichSequence seq) throws IllegalIDException, BioException, ChangeVetoException
seq
- the RichSequence to add
IllegalIDException
- if a uniqe ID could not be generated for RichSequence
BioException
- if something goes wrong with adding the RichSequence
ChangeVetoException
- 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 remove
IllegalIDException
- if there is no RichSequence for the ID
BioException
- if something failed while removing the RichSequence for
that ID
ChangeVetoException
- if either the database does not allow
RichSequences to be removed or the modification was vetoed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |