|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.ebi.intenz.webapp.controller.Command
uk.ac.ebi.intenz.webapp.controller.DatabaseCommand
uk.ac.ebi.intenz.webapp.controller.SearchECCommand
public class SearchECCommand
This command processes all inquiries about EC numbers.
| Nested Class Summary | |
|---|---|
protected static class |
SearchECCommand.EnzymeEntryCacheKey
|
| Field Summary | |
|---|---|
static org.apache.log4j.Logger |
LOGGER
|
| Fields inherited from class uk.ac.ebi.intenz.webapp.controller.DatabaseCommand |
|---|
con, context, databaseErrorMessage, enzymeEntryMapper, request, response |
| Constructor Summary | |
|---|---|
SearchECCommand()
|
|
| Method Summary | |
|---|---|
protected int |
analyseECType(String ec)
Gets the type of the EC number. |
protected EnzymeClass |
findEnzymeClass(EnzymeCommissionNumber ec)
Calls the according find() method and handles empty results
and SQL exceptions. |
protected EnzymeEntry |
findEnzymeEntry(EnzymeCommissionNumber ec,
Status status)
Calls the according find() method and handles empty results
and SQL exceptions. |
protected EnzymeSubclass |
findEnzymeSubclass(EnzymeCommissionNumber ec)
Calls the according find() method and handles empty results
and SQL exceptions. |
protected EnzymeSubSubclass |
findEnzymeSubSubclass(EnzymeCommissionNumber ec)
Calls the according find() method and handles empty results
and SQL exceptions. |
void |
process()
This is unique to each command and has to be implemented by the inherting subclass. |
| Methods inherited from class uk.ac.ebi.intenz.webapp.controller.DatabaseCommand |
|---|
close, closeConnection, finalize, forward, init |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.log4j.Logger LOGGER
| Constructor Detail |
|---|
public SearchECCommand()
| Method Detail |
|---|
public void process()
throws javax.servlet.ServletException,
IOException
Command
process in class Commandjavax.servlet.ServletException
IOException
uk.ac.ebi.rhea.mapper.MapperExceptionprotected EnzymeClass findEnzymeClass(EnzymeCommissionNumber ec)
find() method and handles empty results
and SQL exceptions.
ec - Number of enzyme class to search for.
EnzymeClass instance or null.protected EnzymeSubclass findEnzymeSubclass(EnzymeCommissionNumber ec)
find() method and handles empty results
and SQL exceptions.
ec - Number of enzyme class to search for.
EnzymeClass instance or null.
NullPointerException - if any of the parameters is null.protected EnzymeSubSubclass findEnzymeSubSubclass(EnzymeCommissionNumber ec)
find() method and handles empty results
and SQL exceptions.
ec - Number of enzyme class to search for.
EnzymeClass instance or null.
NullPointerException - if any of the parameters is null.protected int analyseECType(String ec)
ec - The EC string.
protected EnzymeEntry findEnzymeEntry(EnzymeCommissionNumber ec,
Status status)
find() method and handles empty results
and SQL exceptions.
ec - EC number of enzyme to search for.status - the enzyme status.
EnzymeEntry instance or null.
NullPointerException - if any of the parameters is null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||