uk.ac.ebi.intenz.mapper
Class EnzymeSubclassMapper

java.lang.Object
  extended by uk.ac.ebi.intenz.mapper.EnzymeSubclassMapper

public class EnzymeSubclassMapper
extends Object

Maps enzyme subclass information to the corresponding database tables.

Version:
$Revision: 1.3 $ $Date: 2009/05/26 14:59:09 $
Author:
Michael Darsow

Constructor Summary
EnzymeSubclassMapper()
           
 
Method Summary
 EnzymeSubclass find(String ec1, String ec2, Connection con)
          Tries to find Subclass information about an enzyme.
 List<EnzymeSubclass> findAll(Connection con)
           
 List<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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnzymeSubclassMapper

public EnzymeSubclassMapper()
Method Detail

find

public EnzymeSubclass find(String ec1,
                           String ec2,
                           Connection con)
                    throws SQLException,
                           DomainException
Tries to find Subclass information about an enzyme.

Parameters:
ec1 - Number of class to search for.
ec2 - Number of subclass to search for.
con - The logical connection.
Returns:
an EnzymeClass instance or null if nothing has been found.
Throws:
NullPointerException - if any of the parameters is null.
SQLException - if a database error occurs.
DomainException - if any error related to domain information occurs.

findList

public List<EnzymeSubclass> findList(String ec1,
                                     Connection con)
                              throws SQLException,
                                     DomainException
Tries to find all Subclasses requested.

Parameters:
ec1 - Number/Wildcard of class to search for.
con - The logical connection.
Returns:
a Vector of EnzymeClass instances or null if nothing has been found.
Throws:
SQLException
DomainException

findAll

public List<EnzymeSubclass> findAll(Connection con)
                             throws SQLException,
                                    DomainException
Parameters:
con -
Returns:
A List of EnzymeSubclasses (without subsubclass information).
Throws:
SQLException
DomainException

subclassExists

public boolean subclassExists(String ec1,
                              String ec2,
                              Connection con)
                       throws SQLException
Checks if the given subclass numbers are valid.

Parameters:
ec1 - The class number.
ec2 - The subclass number.
con - The connection.
Returns:
true if the class exists.
Throws:
SQLException


Copyright © 2013 EMBL-EBI. All Rights Reserved.