public class EnzymeLinkMapper extends Object
Constructor and Description |
---|
EnzymeLinkMapper() |
Modifier and Type | Method and Description |
---|---|
void |
delete(Long enzymeId,
uk.ac.ebi.intenz.domain.enzyme.EnzymeLink link,
Connection con) |
void |
deleteAll(Long enzymeId,
Connection con) |
void |
deleteAllXref(Long enzymeId,
Connection con) |
void |
deleteByCodeXref(Long enzymeId,
String xrefCode,
Connection con) |
void |
deleteByName(Long enzymeId,
String displayName,
Connection con) |
void |
deleteOtherLinks(List<uk.ac.ebi.intenz.domain.enzyme.EnzymeLink> links,
Long enzymeId,
Connection con) |
void |
deleteXref(Long enzymeId,
uk.ac.ebi.intenz.domain.enzyme.EnzymeLink xref,
Connection con) |
List<uk.ac.ebi.intenz.domain.enzyme.EnzymeLink> |
exportSibLinks(Long enzymeId,
Connection con)
Exports all links which are displayed in the ENZYME view.
|
List<uk.ac.ebi.intenz.domain.enzyme.EnzymeLink> |
find(Long enzymeId,
Connection con)
Tries to find link information about an enzyme in tables LINKS and XREFS.
|
List<uk.ac.ebi.intenz.domain.enzyme.EnzymeLink> |
findSibXrefs(Long enzymeId,
Connection con)
Finds all xrefs which are displayed in the ENZYME view.
|
List<uk.ac.ebi.intenz.domain.enzyme.EnzymeLink> |
findXrefs(Long enzymeId,
Connection con)
Tries to find SwissProt xref information about an enzyme.
|
void |
insert(List<uk.ac.ebi.intenz.domain.enzyme.EnzymeLink> links,
Long enzymeId,
uk.ac.ebi.intenz.domain.constants.Status status,
Connection con)
Stores the given list of links into the database.
|
void |
insertLink(uk.ac.ebi.intenz.domain.enzyme.EnzymeLink link,
Long enzymeId,
uk.ac.ebi.intenz.domain.constants.Status status,
Connection con) |
void |
reloadLinks(List<uk.ac.ebi.intenz.domain.enzyme.EnzymeLink> links,
Long enzymeId,
uk.ac.ebi.intenz.domain.constants.Status status,
Connection con) |
void |
updateLinkUrl(uk.ac.ebi.intenz.domain.enzyme.EnzymeLink link,
Long enzymeId,
uk.ac.ebi.intenz.domain.constants.Status status,
Connection con) |
public List<uk.ac.ebi.intenz.domain.enzyme.EnzymeLink> find(Long enzymeId, Connection con) throws SQLException, uk.ac.ebi.intenz.domain.exceptions.DomainException
enzymeId
- Enzyme ID of entry.con
- The logical connection.Vector
containing EnzymeLink
instances or null
if nothing has been found.SQLException
uk.ac.ebi.intenz.domain.exceptions.DomainException
public List<uk.ac.ebi.intenz.domain.enzyme.EnzymeLink> exportSibLinks(Long enzymeId, Connection con) throws SQLException, uk.ac.ebi.intenz.domain.exceptions.DomainException
enzymeId
- The enzyme ID used to retreive the related links.con
- The database connection.ArrayList
of links or null
if no link could be found.SQLException
- if a database error occured.NullPointerException
- if either of the parameters is null
.uk.ac.ebi.intenz.domain.exceptions.DomainException
public List<uk.ac.ebi.intenz.domain.enzyme.EnzymeLink> findXrefs(Long enzymeId, Connection con) throws SQLException, uk.ac.ebi.intenz.domain.exceptions.DomainException
enzymeId
- Enzyme ID of entry.con
- The logical connection.Vector
containing EnzymeLink
instances or null
if nothing has been found.SQLException
uk.ac.ebi.intenz.domain.exceptions.DomainException
public List<uk.ac.ebi.intenz.domain.enzyme.EnzymeLink> findSibXrefs(Long enzymeId, Connection con) throws SQLException, uk.ac.ebi.intenz.domain.exceptions.DomainException
enzymeId
- The enzyme ID used to retreive the related xrefs.con
- The database connection.ArrayList
of xrefs or null
if no xref could be found.SQLException
- if a database error occured.NullPointerException
- if either of the parameters is null
.uk.ac.ebi.intenz.domain.exceptions.DomainException
public void insert(List<uk.ac.ebi.intenz.domain.enzyme.EnzymeLink> links, Long enzymeId, uk.ac.ebi.intenz.domain.constants.Status status, Connection con) throws SQLException
links
- The vector of links.enzymeId
- The enzyme ID.status
- ...con
- ...SQLException
public void insertLink(uk.ac.ebi.intenz.domain.enzyme.EnzymeLink link, Long enzymeId, uk.ac.ebi.intenz.domain.constants.Status status, Connection con) throws SQLException
SQLException
public void updateLinkUrl(uk.ac.ebi.intenz.domain.enzyme.EnzymeLink link, Long enzymeId, uk.ac.ebi.intenz.domain.constants.Status status, Connection con) throws SQLException
SQLException
public void reloadLinks(List<uk.ac.ebi.intenz.domain.enzyme.EnzymeLink> links, Long enzymeId, uk.ac.ebi.intenz.domain.constants.Status status, Connection con) throws SQLException
SQLException
public void delete(Long enzymeId, uk.ac.ebi.intenz.domain.enzyme.EnzymeLink link, Connection con) throws SQLException
SQLException
public void deleteAll(Long enzymeId, Connection con) throws SQLException
SQLException
public void deleteXref(Long enzymeId, uk.ac.ebi.intenz.domain.enzyme.EnzymeLink xref, Connection con) throws SQLException
SQLException
public void deleteAllXref(Long enzymeId, Connection con) throws SQLException
SQLException
public void deleteByName(Long enzymeId, String displayName, Connection con) throws SQLException
SQLException
public void deleteByCodeXref(Long enzymeId, String xrefCode, Connection con) throws SQLException
SQLException
public void deleteOtherLinks(List<uk.ac.ebi.intenz.domain.enzyme.EnzymeLink> links, Long enzymeId, Connection con) throws SQLException
SQLException
Copyright © 2014 EMBL-EBI. All rights reserved.