public class EnzymeSubSubclassMapper extends Object
Constructor and Description |
---|
EnzymeSubSubclassMapper() |
Modifier and Type | Method and Description |
---|---|
uk.ac.ebi.intenz.domain.enzyme.EnzymeSubSubclass |
find(int ec1,
int ec2,
int ec3,
Connection con)
Tries to find Sub-subclass information about an enzyme.
|
List<uk.ac.ebi.intenz.domain.enzyme.EnzymeSubSubclass> |
findAll(Connection con) |
List<uk.ac.ebi.intenz.domain.enzyme.EnzymeSubSubclass> |
findList(String ec1,
String ec2,
Connection con)
Tries to find all Sub-subclasses requested.
|
void |
insertSubSubclass(uk.ac.ebi.intenz.domain.enzyme.EnzymeCommissionNumber ec,
String name,
String description,
Connection con)
Creates a new row in the
SUBSUBCLASSES table. |
boolean |
subSubclassExists(String ec1,
String ec2,
String ec3,
Connection con)
Checks if the given sub-subclass numbers are valid.
|
public uk.ac.ebi.intenz.domain.enzyme.EnzymeSubSubclass find(int ec1, int ec2, int ec3, 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.ec3
- Number of sub-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.EnzymeSubSubclass> findList(String ec1, String ec2, Connection con) throws SQLException, uk.ac.ebi.intenz.domain.exceptions.DomainException
ec1
- Number/Wildcard of class to search for.ec2
- Number/Wildcard of subclass to search for.con
- The logical connection.Vector
of SubSubClass
instances or null
if nothing has been found.SQLException
uk.ac.ebi.intenz.domain.exceptions.DomainException
public List<uk.ac.ebi.intenz.domain.enzyme.EnzymeSubSubclass> findAll(Connection con) throws SQLException, uk.ac.ebi.intenz.domain.exceptions.DomainException
SQLException
uk.ac.ebi.intenz.domain.exceptions.DomainException
public void insertSubSubclass(uk.ac.ebi.intenz.domain.enzyme.EnzymeCommissionNumber ec, String name, String description, Connection con) throws SQLException
SUBSUBCLASSES
table.ec
- EC number of this sub-subclass.name
- The name of the sub-subclass.description
- The description of the sub-subclass.con
- The database connection.SQLException
- if a database error occurs.NullPointerException
- if any of the parameters is null
.public boolean subSubclassExists(String ec1, String ec2, String ec3, Connection con) throws SQLException
ec1
- The class number.ec2
- The subclass number.ec3
- The sub-subclass number.con
- The connection.true
if the class exists.SQLException
Copyright © 2014 EMBL-EBI. All rights reserved.