public interface BioEntryDBLite
Modifier and Type | Field and Description |
---|---|
static ChangeType |
BIOENTRYS
Signals that sequences are being added to or remove from the database.
|
Modifier and Type | Method and Description |
---|---|
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.
|
static final ChangeType BIOENTRYS
String getName()
BioEntry getBioEntry(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 BioEntryBioEntryDB getBioEntrys(Set ids) throws BioException, IllegalIDException
ids
- a set of ids to retrieve byIllegalIDException
- if the database doesn't know about the idBioException
BioEntryDB getBioEntrys(Set ids, BioEntryDB 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 addBioEntry(BioEntry seq) throws IllegalIDException, BioException, ChangeVetoException
seq
- the BioEntry to addIllegalIDException
- if a uniqe ID could not be generated for BioEntryBioException
- if something goes wrong with adding the BioEntryChangeVetoException
- 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 removeIllegalIDException
- if there is no BioEntry for the IDBioException
- if something failed while removing the BioEntry for
that IDChangeVetoException
- if either the database does not allow
BioEntrys to be removed or the modification was vetoedCopyright © 2014 BioJava. All rights reserved.