|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.ebi.intenz.mapper.EnzymeCofactorMapper
public class EnzymeCofactorMapper
Maps reaction information to the corresponding database tables.
IMPORTANT: after using instances of this class, call the
close() method, otherwise the underlying Rhea mapper objects will
keep their statements open.
| Field Summary | |
|---|---|
protected uk.ac.ebi.rhea.mapper.db.RheaCompoundDbReader |
rheaCompoundReader
|
| Constructor Summary | |
|---|---|
EnzymeCofactorMapper()
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the underlying RheaCompoundDbReader. |
void |
deleteAll(Long enzymeId,
Connection con)
Deletes all cofactors related to one enzyme instance. |
Set<Object> |
exportSibCofactors(Long enzymeId,
Connection con)
Exports all cofactors which are displayed in the ENZYME view. |
protected void |
finalize()
|
Set<Object> |
find(Long enzymeId,
Connection con)
Tries to find cofactor information about an enzyme. |
Map<uk.ac.ebi.rhea.domain.Compound,Map<Long,String>> |
findAll(Connection con)
Retrieves a list of compounds acting as cofactors in the database, along with the identifiers for the enzymes they appear in. |
void |
insert(Collection<Object> cofactors,
Long enzymeId,
Status status,
Connection con)
Stores the given list of cofactors into the database. |
void |
reload(Collection<Object> cofactors,
Long enzymeId,
Status status,
Connection con)
Reloads the given list of cofactors into the database. |
void |
update(uk.ac.ebi.rhea.domain.Compound oldCf,
uk.ac.ebi.rhea.domain.Compound newCf,
Connection con)
Updates the ChEBI mapping of a cofactor, and the name if needed too. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected uk.ac.ebi.rhea.mapper.db.RheaCompoundDbReader rheaCompoundReader
| Constructor Detail |
|---|
public EnzymeCofactorMapper()
| Method Detail |
|---|
public void close()
RheaCompoundDbReader.
protected void finalize()
throws Throwable
finalize in class ObjectThrowable
public Set<Object> find(Long enzymeId,
Connection con)
throws SQLException,
uk.ac.ebi.rhea.mapper.MapperException
enzymeId - Enzyme ID of entry.con - The logical connection.
Set containing Cofactor instances,
or OperatorSet instances filled with Cofactor objects,
or null if nothing has been found.
SQLException - in case of a generic database problem.
uk.ac.ebi.rhea.mapper.MapperException - in case of problem retrieving the cofactors.
public Set<Object> exportSibCofactors(Long enzymeId,
Connection con)
throws SQLException,
uk.ac.ebi.rhea.mapper.MapperException
enzymeId - The enzyme ID used to retreive the related cofactors.con - The database connection.
ArrayList of cofactors or null if no cofactor could be found.
SQLException - in case of a generic database problem.
uk.ac.ebi.rhea.mapper.MapperException - in case of problem retrieving the cofactors.
NullPointerException - if either of the parameters is null.
public Map<uk.ac.ebi.rhea.domain.Compound,Map<Long,String>> findAll(Connection con)
throws SQLException,
uk.ac.ebi.rhea.mapper.MapperException
con - a database connection
SQLException - in case of a generic database problem.
uk.ac.ebi.rhea.mapper.MapperException - in case of problem retrieving compounds.
uk.ac.ebi.rhea.mapper.MapperException
public void insert(Collection<Object> cofactors,
Long enzymeId,
Status status,
Connection con)
throws SQLException
cofactors - The vector of cofactors.enzymeId - The enzyme ID.status - con - ...
SQLException
public void reload(Collection<Object> cofactors,
Long enzymeId,
Status status,
Connection con)
throws SQLException
cofactors - The vector of cofactors.enzymeId - The enzyme ID.status - con - ...
SQLException
public void update(uk.ac.ebi.rhea.domain.Compound oldCf,
uk.ac.ebi.rhea.domain.Compound newCf,
Connection con)
throws SQLException
oldCf - the old cofactornewCf - the new cofactorcon -
SQLException
public void deleteAll(Long enzymeId,
Connection con)
throws SQLException
enzymeId - Enzyme ID of the enzyme instance.con - ...
SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||