public class EnzymeClassMapper extends Object
| Constructor and Description |
|---|
EnzymeClassMapper() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
classExists(String ec1,
Connection con)
Checks if the given class number is valid.
|
uk.ac.ebi.intenz.domain.enzyme.EnzymeClass |
find(String ec1,
Connection con)
Tries to find Class information about an enzyme.
|
List<uk.ac.ebi.intenz.domain.enzyme.EnzymeClass> |
findAll(Connection con) |
int |
findNumberOfClasses(Connection con)
Finds the number of classes.
|
public uk.ac.ebi.intenz.domain.enzyme.EnzymeClass find(String ec1, Connection con) throws SQLException, uk.ac.ebi.intenz.domain.exceptions.DomainException
ec1 - Number of class 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 (e.g. ec1 is invalid).public List<uk.ac.ebi.intenz.domain.enzyme.EnzymeClass> findAll(Connection con) throws SQLException, uk.ac.ebi.intenz.domain.exceptions.DomainException
con - List of all the EnzymeClasses
(without subclass information)SQLExceptionuk.ac.ebi.intenz.domain.exceptions.EcExceptionuk.ac.ebi.intenz.domain.exceptions.DomainExceptionpublic int findNumberOfClasses(Connection con) throws SQLException
con - The logical connection.SQLExceptionpublic boolean classExists(String ec1, Connection con) throws SQLException
ec1 - The class number.con - The connection.true if the class exists.SQLExceptionCopyright © 2014 EMBL-EBI. All rights reserved.