public class EnzymeSubclassMapper extends Object
| Constructor and Description |
|---|
EnzymeSubclassMapper() |
| Modifier and Type | Method and Description |
|---|---|
uk.ac.ebi.intenz.domain.enzyme.EnzymeSubclass |
find(String ec1,
String ec2,
Connection con)
Tries to find Subclass information about an enzyme.
|
List<uk.ac.ebi.intenz.domain.enzyme.EnzymeSubclass> |
findAll(Connection con) |
List<uk.ac.ebi.intenz.domain.enzyme.EnzymeSubclass> |
findList(String ec1,
Connection con)
Tries to find all Subclasses requested.
|
boolean |
subclassExists(String ec1,
String ec2,
Connection con)
Checks if the given subclass numbers are valid.
|
public uk.ac.ebi.intenz.domain.enzyme.EnzymeSubclass find(String ec1, String ec2, Connection con) throws SQLException, uk.ac.ebi.intenz.domain.exceptions.DomainException
ec1 - Number of class to search for.ec2 - Number of subclass to search for.con - The logical connection.EnzymeClass instance or null if nothing has been found.NullPointerException - if any of the parameters is null.SQLException - if a database error occurs.uk.ac.ebi.intenz.domain.exceptions.DomainException - if any error related to domain information occurs.public List<uk.ac.ebi.intenz.domain.enzyme.EnzymeSubclass> findList(String ec1, Connection con) throws SQLException, uk.ac.ebi.intenz.domain.exceptions.DomainException
ec1 - Number/Wildcard of class to search for.con - The logical connection.Vector of EnzymeClass instances or null if nothing has been found.SQLExceptionuk.ac.ebi.intenz.domain.exceptions.DomainExceptionpublic List<uk.ac.ebi.intenz.domain.enzyme.EnzymeSubclass> findAll(Connection con) throws SQLException, uk.ac.ebi.intenz.domain.exceptions.DomainException
con - List of EnzymeSubclasses (without
subsubclass information).SQLExceptionuk.ac.ebi.intenz.domain.exceptions.DomainExceptionpublic boolean subclassExists(String ec1, String ec2, Connection con) throws SQLException
ec1 - The class number.ec2 - The subclass number.con - The connection.true if the class exists.SQLExceptionCopyright © 2014 EMBL-EBI. All rights reserved.