|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.ebi.intenz.mapper.EnzymeSubSubclassMapper
public class EnzymeSubSubclassMapper
Maps enzyme Sub-subclass information to the corresponding database tables.
| Constructor Summary | |
|---|---|
EnzymeSubSubclassMapper()
|
|
| Method Summary | |
|---|---|
EnzymeSubSubclass |
find(int ec1,
int ec2,
int ec3,
Connection con)
Tries to find Sub-subclass information about an enzyme. |
List<EnzymeSubSubclass> |
findAll(Connection con)
|
List<EnzymeSubSubclass> |
findList(String ec1,
String ec2,
Connection con)
Tries to find all Sub-subclasses requested. |
void |
insertSubSubclass(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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnzymeSubSubclassMapper()
| Method Detail |
|---|
public EnzymeSubSubclass find(int ec1,
int ec2,
int ec3,
Connection con)
throws SQLException,
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.
DomainException - if any error related to domain information occurs.
public List<EnzymeSubSubclass> findList(String ec1,
String ec2,
Connection con)
throws SQLException,
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
DomainException
public List<EnzymeSubSubclass> findAll(Connection con)
throws SQLException,
DomainException
SQLException
DomainException
public void insertSubSubclass(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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||