uk.ac.ebi.intact.util
Class SanityChecker

java.lang.Object
  |
  +--uk.ac.ebi.intact.util.SanityChecker

public class SanityChecker
extends java.lang.Object

Utility class to perform some sanity checks on the DB. Mainly for use by curators. A report of anomolies detected (as per the list of checks) is sent via email to the appropriate people.

Version:
$Id: SanityChecker.java,v 1.9 2004/03/26 14:33:22 skerrien Exp $
Author:
Chris Lewington

Constructor Summary
SanityChecker(IntactHelper helper, java.io.PrintWriter writer)
           
 
Method Summary
 void checkExperiments()
          Performs checks on Experiments.
 void checkExperimentsPubmedIds()
          Performs checks on Experiments.
 void checkInteractions()
          Performs Interaction checks.
 void checkInteractionsBaitAndPrey()
          Performs Interaction checks.
 void checkProteins()
          Performs checks against Proteins.
 void cleanUp()
          tidies up the DB statements.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SanityChecker

public SanityChecker(IntactHelper helper,
                     java.io.PrintWriter writer)
              throws IntactException,
                     java.sql.SQLException
Method Detail

checkExperiments

public void checkExperiments()
                      throws IntactException,
                             java.sql.SQLException
Performs checks on Experiments.

Throws:
IntactException - Thrown if there was a Helper problem
java.sql.SQLException - Thrown if there was a DB access problem

checkExperimentsPubmedIds

public void checkExperimentsPubmedIds()
                               throws IntactException,
                                      java.sql.SQLException
Performs checks on Experiments.

Throws:
IntactException - Thrown if there was a Helper problem
java.sql.SQLException - Thrown if there was a DB access problem

checkInteractions

public void checkInteractions()
                       throws IntactException,
                              java.sql.SQLException
Performs Interaction checks.

Throws:
IntactException - thrown if there was a search problem
java.sql.SQLException

checkInteractionsBaitAndPrey

public void checkInteractionsBaitAndPrey()
                                  throws IntactException,
                                         java.sql.SQLException
Performs Interaction checks.

Throws:
IntactException - thrown if there was a search problem
java.sql.SQLException

checkProteins

public void checkProteins()
                   throws IntactException,
                          java.sql.SQLException
Performs checks against Proteins.

Throws:
IntactException - Thrown if there were Helper problems
java.sql.SQLException - thrown if there were DB access problems

cleanUp

public void cleanUp()
tidies up the DB statements.


main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
java.lang.Exception


IntAct Project - EMBL-EBI 2004 - intact-help@ebi.ac.uk