public class EnzymeCommentMapper extends Object
Constructor and Description |
---|
EnzymeCommentMapper() |
Modifier and Type | Method and Description |
---|---|
void |
deleteAll(Long enzymeId,
Connection con)
Deletes all comments related to an enzyme instance.
|
List<uk.ac.ebi.intenz.domain.enzyme.EnzymeComment> |
exportSibComments(Long enzymeId,
Connection con)
Exports all comments which are displayed in the ENZYME view.
|
List<uk.ac.ebi.intenz.domain.enzyme.EnzymeComment> |
find(Long enzymeId,
Connection con)
Tries to find comment information about an enzyme.
|
void |
insert(List<uk.ac.ebi.intenz.domain.enzyme.EnzymeComment> comments,
Long enzymeId,
uk.ac.ebi.intenz.domain.constants.Status status,
Connection con)
Stores the given comment into the database.
|
void |
reload(List<uk.ac.ebi.intenz.domain.enzyme.EnzymeComment> comments,
Long enzymeId,
uk.ac.ebi.intenz.domain.constants.Status status,
Connection con) |
void |
update(uk.ac.ebi.intenz.domain.enzyme.EnzymeComment comment,
Long enzymeId,
uk.ac.ebi.intenz.domain.constants.Status status,
int orderIn,
Connection con) |
public List<uk.ac.ebi.intenz.domain.enzyme.EnzymeComment> find(Long enzymeId, Connection con) throws SQLException
enzymeId
- Enzyme ID of entry.con
- The logical connection.String
representing the comment.SQLException
public List<uk.ac.ebi.intenz.domain.enzyme.EnzymeComment> exportSibComments(Long enzymeId, Connection con) throws SQLException
enzymeId
- The enzyme ID used to retreive the related comments.con
- The database connection.ArrayList
of comments or null
if no comment could be found.SQLException
- if a database error occured.NullPointerException
- if either of the parameters is null
.public void reload(List<uk.ac.ebi.intenz.domain.enzyme.EnzymeComment> comments, Long enzymeId, uk.ac.ebi.intenz.domain.constants.Status status, Connection con) throws SQLException
SQLException
public void deleteAll(Long enzymeId, Connection con) throws SQLException
enzymeId
- Enzyme ID of the enzyme instance.con
- A database connection.SQLException
- if a database error occurs.NullPointerException
- if any of the parameter is null
.public void insert(List<uk.ac.ebi.intenz.domain.enzyme.EnzymeComment> comments, Long enzymeId, uk.ac.ebi.intenz.domain.constants.Status status, Connection con) throws SQLException
comments
- The enzyme's comment.enzymeId
- The enzyme ID.status
- ...con
- ...SQLException
public void update(uk.ac.ebi.intenz.domain.enzyme.EnzymeComment comment, Long enzymeId, uk.ac.ebi.intenz.domain.constants.Status status, int orderIn, Connection con) throws SQLException
SQLException
Copyright © 2014 EMBL-EBI. All rights reserved.