public class BioSQLBioEntryDB extends AbstractBioEntryDB
BIOENTRYS| Constructor and Description |
|---|
BioSQLBioEntryDB(Object session)
Creates a new instance of BioSQLBioEntryDB
|
BioSQLBioEntryDB(String name,
Object session)
Creates a new instance of BioSQLBioEntryDB
|
| Modifier and Type | Method and Description |
|---|---|
void |
_addBioEntry(BioEntry seq) |
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.
|
Object |
getHibernateSession() |
String |
getName()
Get the name of this sequence database.
|
Set |
ids()
Get an immutable set of all of the IDs in the database.
|
void |
removeBioEntry(String id)
Remove the BioEntry associated with an ID from the database.
|
getBioEntryIteratoraddChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListenerpublic BioSQLBioEntryDB(Object session)
public BioSQLBioEntryDB(String name, Object session)
public String getName()
BioEntryDBLitepublic Object getHibernateSession()
public Set ids()
BioEntryDBpublic BioEntry getBioEntry(String id) throws IllegalIDException, BioException
BioEntryDBLiteid - the id to retrieve byIllegalIDException - if the database doesn't know about the idBioException - if there was a failure in retrieving the BioEntrypublic BioEntryDB getBioEntrys(Set ids) throws BioException, IllegalIDException
BioEntryDBLiteids - a set of ids to retrieve byIllegalIDException - if the database doesn't know about the idBioExceptionpublic BioEntryDB getBioEntrys(Set ids, BioEntryDB db) throws BioException, IllegalIDException
BioEntryDBLiteids - a set of ids to retrieve bydb - a database to load the seqs intoIllegalIDException - if the database doesn't know about the idBioExceptionpublic void removeBioEntry(String id) throws IllegalIDException, BioException, ChangeVetoException
BioEntryDBLiteremoveBioEntry in interface BioEntryDBLiteremoveBioEntry in class AbstractBioEntryDBid - 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 void addBioEntry(BioEntry seq) throws IllegalIDException, BioException, ChangeVetoException
BioEntryDBLiteaddBioEntry in interface BioEntryDBLiteaddBioEntry in class AbstractBioEntryDBseq - 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 _addBioEntry(BioEntry seq) throws IllegalIDException, BioException, ChangeVetoException
Copyright © 2014 BioJava. All rights reserved.