|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.ebi.intenz.mapper.EnzymeClassMapper
public class EnzymeClassMapper
Maps enzyme class information to the corresponding database tables.
Constructor Summary | |
---|---|
EnzymeClassMapper()
|
Method Summary | |
---|---|
boolean |
classExists(String ec1,
Connection con)
Checks if the given class number is valid. |
EnzymeClass |
find(String ec1,
Connection con)
Tries to find Class information about an enzyme. |
List<EnzymeClass> |
findAll(Connection con)
|
int |
findNumberOfClasses(Connection con)
Finds the number of classes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EnzymeClassMapper()
Method Detail |
---|
public EnzymeClass find(String ec1, Connection con) throws SQLException, 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.
DomainException
- if any error related to domain information occurs (e.g. ec1
is invalid).public List<EnzymeClass> findAll(Connection con) throws SQLException, DomainException
con
-
List
of all the EnzymeClass
es
(without subclass information)
SQLException
EcException
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |