|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.ebi.intenz.mapper.EnzymeCommentMapper
public class EnzymeCommentMapper
Maps link information to the corresponding database tables.
| Constructor Summary | |
|---|---|
EnzymeCommentMapper()
|
|
| Method Summary | |
|---|---|
void |
deleteAll(Long enzymeId,
Connection con)
Deletes all comments related to an enzyme instance. |
List<EnzymeComment> |
exportSibComments(Long enzymeId,
Connection con)
Exports all comments which are displayed in the ENZYME view. |
List<EnzymeComment> |
find(Long enzymeId,
Connection con)
Tries to find comment information about an enzyme. |
void |
insert(List<EnzymeComment> comments,
Long enzymeId,
Status status,
Connection con)
Stores the given comment into the database. |
void |
reload(List<EnzymeComment> comments,
Long enzymeId,
Status status,
Connection con)
|
void |
update(EnzymeComment comment,
Long enzymeId,
Status status,
int orderIn,
Connection con)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnzymeCommentMapper()
| Method Detail |
|---|
public List<EnzymeComment> find(Long enzymeId,
Connection con)
throws SQLException
enzymeId - Enzyme ID of entry.con - The logical connection.
String representing the comment.
SQLException
public List<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<EnzymeComment> comments,
Long enzymeId,
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<EnzymeComment> comments,
Long enzymeId,
Status status,
Connection con)
throws SQLException
comments - The enzyme's comment.enzymeId - The enzyme ID.status - ...con - ...
SQLException
public void update(EnzymeComment comment,
Long enzymeId,
Status status,
int orderIn,
Connection con)
throws SQLException
SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||