|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.ebi.intenz.mapper.EnzymeSubclassMapper
public class EnzymeSubclassMapper
Maps enzyme subclass information to the corresponding database tables.
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 |
---|
public EnzymeSubclassMapper()
Method Detail |
---|
public EnzymeSubclass find(String ec1, String ec2, Connection con) throws SQLException, 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.
DomainException
- if any error related to domain information occurs.public List<EnzymeSubclass> findList(String ec1, Connection con) throws SQLException, DomainException
ec1
- Number/Wildcard of class to search for.con
- The logical connection.
Vector
of EnzymeClass
instances or null
if nothing has been found.
SQLException
DomainException
public List<EnzymeSubclass> findAll(Connection con) throws SQLException, DomainException
con
-
List
of EnzymeSubclass
es (without
subsubclass information).
SQLException
DomainException
public 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.
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |