|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.ebi.intenz.mapper.EnzymeReactionMapper
public class EnzymeReactionMapper
Maps reaction information to the corresponding database table.
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.RheaDbReader |
rheaReader
|
Constructor Summary | |
---|---|
EnzymeReactionMapper()
|
Method Summary | |
---|---|
void |
close()
|
EnzymaticReactions |
exportSibReactions(Long enzymeId,
Connection con)
Exports all reactions which are displayed in the ENZYME view. |
protected void |
finalize()
|
EnzymaticReactions |
find(Long enzymeId,
Connection con)
Tries to find reaction information about an enzyme. |
void |
insert(EnzymaticReactions reactions,
Long enzymeId,
Connection con)
Stores the given list of reactions into the database. |
void |
insertMapping(Long enzymeId,
Long reactionId,
EnzymeViewConstant view,
boolean iubmb,
int orderIn,
Connection con)
Inserts a mapping reaction-enzyme into the database. |
void |
update(Long enzymeId,
EnzymaticReactions reactions,
Connection con)
Replace the reactions in the database related to one enzyme with those passed as parameter. |
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.RheaDbReader rheaReader
Constructor Detail |
---|
public EnzymeReactionMapper()
Method Detail |
---|
public 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
Reaction
instances 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 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(EnzymaticReactions reactions, Long enzymeId, Connection con) throws SQLException
reactions
- The vector of reactions.enzymeId
- The enzyme ID.con
- ...
SQLException
public void insertMapping(Long enzymeId, Long reactionId, EnzymeViewConstant view, boolean iubmb, int orderIn, Connection con) throws SQLException
enzymeId
- reactionId
- view
- iubmb
- orderIn
- con
-
SQLException
public void update(Long enzymeId, EnzymaticReactions reactions, Connection con) throws SQLException
enzymeId
- The enzyme ID.reactions
- The vector of reactions.con
-
SQLException
public void close() throws uk.ac.ebi.rhea.mapper.MapperException
uk.ac.ebi.rhea.mapper.MapperException
protected void finalize() throws Throwable
finalize
in class Object
Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |