public class EnzymeReactionMapper extends Object
close() method, otherwise the underlying Rhea mapper objects will
keep their statements open.| Modifier and Type | Field and Description |
|---|---|
protected uk.ac.ebi.rhea.mapper.db.RheaDbReader |
rheaReader |
| Constructor and Description |
|---|
EnzymeReactionMapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
uk.ac.ebi.intenz.domain.enzyme.EnzymaticReactions |
exportSibReactions(Long enzymeId,
Connection con)
Exports all reactions which are displayed in the ENZYME view.
|
protected void |
finalize() |
uk.ac.ebi.intenz.domain.enzyme.EnzymaticReactions |
find(Long enzymeId,
Connection con)
Tries to find reaction information about an enzyme.
|
void |
insert(uk.ac.ebi.intenz.domain.enzyme.EnzymaticReactions reactions,
Long enzymeId,
Connection con)
Stores the given list of reactions into the database.
|
void |
insertMapping(Long enzymeId,
Long reactionId,
uk.ac.ebi.intenz.domain.constants.EnzymeViewConstant view,
boolean iubmb,
int orderIn,
Connection con)
Inserts a mapping reaction-enzyme into the database.
|
void |
update(Long enzymeId,
uk.ac.ebi.intenz.domain.enzyme.EnzymaticReactions reactions,
Connection con)
Replace the reactions in the database related to one enzyme
with those passed as parameter.
|
public uk.ac.ebi.intenz.domain.enzyme.EnzymaticReactions find(Long enzymeId, Connection con) throws SQLException, uk.ac.ebi.rhea.mapper.MapperException
enzymeId - Enzyme ID of entry.con - The logical connection.EnzymaticReactions object containing
Reactioninstances 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 Rhea reactions.public uk.ac.ebi.intenz.domain.enzyme.EnzymaticReactions exportSibReactions(Long enzymeId, Connection con) throws SQLException, uk.ac.ebi.rhea.mapper.MapperException
enzymeId - The enzyme ID used to retreive the related reactions.con - The database connection.EnzymaticReactions containing reactions
or null if no reaction could be found.SQLException - if a generic database error occured.uk.ac.ebi.rhea.mapper.MapperException - in case of problem retrieving Rhea reactions.NullPointerException - if either of the parameters is null.public void insert(uk.ac.ebi.intenz.domain.enzyme.EnzymaticReactions reactions,
Long enzymeId,
Connection con)
throws SQLException
reactions - The vector of reactions.enzymeId - The enzyme ID.con - ...SQLExceptionpublic void insertMapping(Long enzymeId, Long reactionId, uk.ac.ebi.intenz.domain.constants.EnzymeViewConstant view, boolean iubmb, int orderIn, Connection con) throws SQLException
enzymeId - reactionId - view - iubmb - orderIn - con - SQLExceptionpublic void update(Long enzymeId, uk.ac.ebi.intenz.domain.enzyme.EnzymaticReactions reactions, Connection con) throws SQLException
enzymeId - The enzyme ID.reactions - The vector of reactions.con - SQLExceptionpublic void close()
throws uk.ac.ebi.rhea.mapper.MapperException
uk.ac.ebi.rhea.mapper.MapperExceptionCopyright © 2014 EMBL-EBI. All rights reserved.