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 EnzymeClass
es
(without subclass information)SQLException
uk.ac.ebi.intenz.domain.exceptions.EcException
uk.ac.ebi.intenz.domain.exceptions.DomainException
public int findNumberOfClasses(Connection con) throws SQLException
con
- The logical connection.SQLException
public boolean classExists(String ec1, Connection con) throws SQLException
ec1
- The class number.con
- The connection.true
if the class exists.SQLException
Copyright © 2014 EMBL-EBI. All rights reserved.