public abstract class AbstractBioEntryDB extends AbstractChangeable implements BioEntryDB
BIOENTRYS
Constructor and Description |
---|
AbstractBioEntryDB() |
Modifier and Type | Method and Description |
---|---|
void |
addBioEntry(BioEntry seq)
Adds a sequence to the database.
|
BioEntryIterator |
getBioEntryIterator()
Returns a BioEntryIterator over all BioEntrys in the database.
|
void |
removeBioEntry(String id)
Remove the BioEntry associated with an ID from the database.
|
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
ids
getBioEntry, getBioEntrys, getBioEntrys, getName
public AbstractBioEntryDB()
public void addBioEntry(BioEntry seq) throws IllegalIDException, BioException, ChangeVetoException
BioEntryDBLite
addBioEntry
in interface BioEntryDBLite
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 vetoedpublic void removeBioEntry(String id) throws IllegalIDException, BioException, ChangeVetoException
BioEntryDBLite
removeBioEntry
in interface BioEntryDBLite
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 vetoedpublic BioEntryIterator getBioEntryIterator()
BioEntryDB
getBioEntryIterator
in interface BioEntryDB
Copyright © 2014 BioJava. All rights reserved.