public class EnzymeReferenceMapper extends Object
| Constructor and Description |
|---|
EnzymeReferenceMapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteAll(Long enzymeId,
Connection con) |
void |
deleteCitations(List<Long> pubIds,
Long enzymeId,
Connection con)
Deletes enzyme relations to publications (internally called citations).
|
void |
deleteCitations(Long enzymeId,
Connection con) |
void |
deletePublication(Long pubId,
Connection con) |
List<uk.ac.ebi.intenz.domain.reference.Reference> |
find(Long enzymeId,
Connection con)
Tries to find comment information about an enzyme.
|
List<Long> |
findPubIds(Long enzymeId,
Connection con) |
void |
insert(List<uk.ac.ebi.intenz.domain.reference.Reference> references,
Long enzymeId,
uk.ac.ebi.intenz.domain.constants.Status status,
Connection con)
Stores the given list of references into the database.
|
void |
insert(uk.ac.ebi.intenz.domain.reference.Reference reference,
Long enzymeId,
uk.ac.ebi.intenz.domain.constants.Status status,
Connection con) |
void |
reload(List<uk.ac.ebi.intenz.domain.reference.Reference> references,
Long enzymeId,
uk.ac.ebi.intenz.domain.constants.Status status,
Connection con) |
void |
update(List<uk.ac.ebi.intenz.domain.reference.Reference> references,
Long enzymeId,
uk.ac.ebi.intenz.domain.constants.Status status,
Connection con) |
void |
update(uk.ac.ebi.intenz.domain.reference.Reference reference,
Long enzymeId,
uk.ac.ebi.intenz.domain.constants.Status status,
Connection con) |
public List<uk.ac.ebi.intenz.domain.reference.Reference> find(Long enzymeId, Connection con) throws SQLException
enzymeId - Enzyme ID of entry.con - The logical connection.Vector containing Referenceinstances or null if nothing has been found.SQLExceptionpublic List<Long> findPubIds(Long enzymeId, Connection con) throws SQLException
SQLExceptionpublic void insert(uk.ac.ebi.intenz.domain.reference.Reference reference,
Long enzymeId,
uk.ac.ebi.intenz.domain.constants.Status status,
Connection con)
throws SQLException
SQLExceptionpublic void insert(List<uk.ac.ebi.intenz.domain.reference.Reference> references, Long enzymeId, uk.ac.ebi.intenz.domain.constants.Status status, Connection con) throws SQLException
references - The enzyme's references.enzymeId - The enzyme ID.status - ...con - ...SQLExceptionpublic void reload(List<uk.ac.ebi.intenz.domain.reference.Reference> references, Long enzymeId, uk.ac.ebi.intenz.domain.constants.Status status, Connection con) throws SQLException
SQLExceptionpublic void update(uk.ac.ebi.intenz.domain.reference.Reference reference,
Long enzymeId,
uk.ac.ebi.intenz.domain.constants.Status status,
Connection con)
throws SQLException
SQLExceptionpublic void update(List<uk.ac.ebi.intenz.domain.reference.Reference> references, Long enzymeId, uk.ac.ebi.intenz.domain.constants.Status status, Connection con) throws SQLException
SQLExceptionpublic void deleteAll(Long enzymeId, Connection con) throws SQLException
SQLExceptionpublic void deleteCitations(Long enzymeId, Connection con) throws SQLException
SQLExceptionpublic void deleteCitations(List<Long> pubIds, Long enzymeId, Connection con) throws SQLException
pubIds - The pub ID of the relation to be deleted.enzymeId - The enzyme ID.con - Database connection.SQLException - if any database error occurred.NullPointerException - if any of the parameters is null.IllegalArgumentException - if enzymeId < 1.public void deletePublication(Long pubId, Connection con) throws SQLException
SQLExceptionCopyright © 2014 EMBL-EBI. All rights reserved.