public class BioSQLRichSequenceDB extends AbstractRichSequenceDB
BIOENTRYSSEQUENCES| Constructor and Description |
|---|
BioSQLRichSequenceDB(Object session)
Creates a new instance of BioSQLRichSequenceDB
|
BioSQLRichSequenceDB(String name,
Object session)
Creates a new instance of BioSQLRichSequenceDB
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRichSequence(RichSequence seq)
Adds a sequence to the database.
|
FeatureHolder |
filter(FeatureFilter ff)
Query features attached to all sequences in this database.
|
RichSequence |
fullyLoadRichSequence(RichSequence id) |
Object |
getHibernateSession() |
String |
getName()
Get the name of this sequence 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.
|
Set |
ids()
Get an immutable set of all of the IDs in the database.
|
FeatureHolder |
processFeatureFilter(FeatureFilter ff) |
void |
removeRichSequence(String id)
Remove the RichSequence associated with an ID from the database.
|
addBioEntry, addSequence, getBioEntry, getBioEntryIterator, getBioEntrys, getBioEntrys, getRichSequenceIterator, getSequence, removeBioEntry, removeSequence, sequenceIteratoraddChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerpublic BioSQLRichSequenceDB(Object session)
public BioSQLRichSequenceDB(String name, Object session)
public String getName()
BioEntryDBLitepublic Object getHibernateSession()
public FeatureHolder processFeatureFilter(FeatureFilter ff)
public FeatureHolder filter(FeatureFilter ff)
SequenceDBfilter to all
sequences then merging the results.filter in interface SequenceDBfilter in class AbstractRichSequenceDBff - a FeatureFilter.public Set ids()
BioEntryDBpublic RichSequence fullyLoadRichSequence(RichSequence id) throws IllegalIDException, BioException
IllegalIDExceptionBioExceptionpublic RichSequence getRichSequence(String id) throws IllegalIDException, BioException
RichSequenceDBLiteid - the id to retrieve byIllegalIDException - if the database doesn't know about the idBioExceptionpublic RichSequenceDB getRichSequences(Set ids) throws BioException, IllegalIDException
RichSequenceDBLiteids - a set of ids to retrieve byIllegalIDException - if the database doesn't know about the idBioExceptionpublic RichSequenceDB getRichSequences(Set ids, RichSequenceDB db) throws BioException, IllegalIDException
RichSequenceDBLiteids - a set of ids to retrieve bydb - a database to load the seqs intoIllegalIDException - if the database doesn't know about the idBioExceptionpublic void removeRichSequence(String id) throws IllegalIDException, BioException, ChangeVetoException
RichSequenceDBLiteremoveRichSequence in interface RichSequenceDBLiteremoveRichSequence in class AbstractRichSequenceDBid - 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 vetoedpublic void addRichSequence(RichSequence seq) throws IllegalIDException, BioException, ChangeVetoException
RichSequenceDBLiteaddRichSequence in interface RichSequenceDBLiteaddRichSequence in class AbstractRichSequenceDBseq - 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 vetoedCopyright © 2020 BioJava. All rights reserved.