public class BioSQLRichSequenceDB extends AbstractRichSequenceDB
BIOENTRYS
SEQUENCES
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, sequenceIterator
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
public BioSQLRichSequenceDB(Object session)
public BioSQLRichSequenceDB(String name, Object session)
public String getName()
BioEntryDBLite
public Object getHibernateSession()
public FeatureHolder processFeatureFilter(FeatureFilter ff)
public FeatureHolder filter(FeatureFilter ff)
SequenceDB
filter
to all
sequences then merging the results.filter
in interface SequenceDB
filter
in class AbstractRichSequenceDB
ff
- a FeatureFilter
.public Set ids()
BioEntryDB
public RichSequence fullyLoadRichSequence(RichSequence id) throws IllegalIDException, BioException
IllegalIDException
BioException
public RichSequence getRichSequence(String id) throws IllegalIDException, BioException
RichSequenceDBLite
id
- the id to retrieve byIllegalIDException
- if the database doesn't know about the idBioException
public RichSequenceDB getRichSequences(Set ids) throws BioException, IllegalIDException
RichSequenceDBLite
ids
- a set of ids to retrieve byIllegalIDException
- if the database doesn't know about the idBioException
public RichSequenceDB getRichSequences(Set ids, RichSequenceDB db) throws BioException, IllegalIDException
RichSequenceDBLite
ids
- a set of ids to retrieve bydb
- a database to load the seqs intoIllegalIDException
- if the database doesn't know about the idBioException
public void removeRichSequence(String id) throws IllegalIDException, BioException, ChangeVetoException
RichSequenceDBLite
removeRichSequence
in interface RichSequenceDBLite
removeRichSequence
in class AbstractRichSequenceDB
id
- 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
RichSequenceDBLite
addRichSequence
in interface RichSequenceDBLite
addRichSequence
in class AbstractRichSequenceDB
seq
- 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 © 2014 BioJava. All rights reserved.