|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BioEntryDBLite
A database of BioEntrys. 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 BioEntry database contains a finite number of BioEntrys stored under unique keys.
Field Summary | |
---|---|
static ChangeType |
BIOENTRYS
Signals that sequences are being added to or remove from the database. |
Method Summary | |
---|---|
void |
addBioEntry(BioEntry seq)
Adds a sequence to the database. |
BioEntry |
getBioEntry(String id)
Retrieve a single BioEntry by its id. |
BioEntryDB |
getBioEntrys(Set ids)
Retrieve multiple BioEntry by their ids. |
BioEntryDB |
getBioEntrys(Set ids,
BioEntryDB db)
Retrieve multiple BioEntry into a specific sequence database. |
String |
getName()
Get the name of this sequence database. |
void |
removeBioEntry(String id)
Remove the BioEntry associated with an ID from the database. |
Field Detail |
---|
static final ChangeType BIOENTRYS
Method Detail |
---|
String getName()
BioEntry getBioEntry(String id) throws IllegalIDException, BioException
id
- the id to retrieve by
IllegalIDException
- if the database doesn't know about the id
BioException
- if there was a failure in retrieving the BioEntryBioEntryDB getBioEntrys(Set ids) throws BioException, IllegalIDException
ids
- a set of ids to retrieve by
IllegalIDException
- if the database doesn't know about the id
BioException
BioEntryDB getBioEntrys(Set ids, BioEntryDB 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 addBioEntry(BioEntry seq) throws IllegalIDException, BioException, ChangeVetoException
seq
- the BioEntry to add
IllegalIDException
- if a uniqe ID could not be generated for BioEntry
BioException
- if something goes wrong with adding the BioEntry
ChangeVetoException
- if either the database does not allow
BioEntrys to be added or the modification was vetoedvoid removeBioEntry(String id) throws IllegalIDException, BioException, ChangeVetoException
id
- the ID of the BioEntry to remove
IllegalIDException
- if there is no BioEntry for the ID
BioException
- if something failed while removing the BioEntry for
that ID
ChangeVetoException
- if either the database does not allow
BioEntrys to be removed or the modification was vetoed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |