uk.ac.ebi.intact.util
Class IntactStatistics

java.lang.Object
  |
  +--uk.ac.ebi.intact.util.IntactStatistics
All Implemented Interfaces:
java.lang.Comparable

public class IntactStatistics
extends java.lang.Object
implements java.lang.Comparable

This class represents the Statistics table in the database. The Script sql/[oracle|postgres]/insert_count_statistics.sql should be run before to use of this class. The corresponding mapping between the both JAVA object and the SQL table is described in the repository_user.xml

Version:
: $Id: IntactStatistics.java,v 1.3 2003/10/03 10:59:54 skerrien Exp $
Author:
shuet (shuet@ebi.ac.uk), Samuel Kerrien (skerrien:ebi.ac.uk)

Field Summary
protected  int ac
          Specify the ac of the field retrieved.
protected  int binaryInteractions
           
protected  int complexInteractions
           
protected  int experimentNumber
           
protected  int interactionNumber
           
protected  int proteinNumber
           
protected  int termNumber
           
protected  java.sql.Timestamp timestamp
          Specify the date of the object storing.
 
Constructor Summary
IntactStatistics()
           
 
Method Summary
 int compareTo(java.lang.Object o)
          Compares this object with the specified object for order.
 int getAc()
          returns the timestamp
 int getNumberOfBinaryInteractions()
          returns the number of interactions with two interactors, now available in the IntAct Database
 int getNumberOfComplexInteractions()
          returns the number of interactions with more than two interactors, now available in the IntAct Database
 int getNumberOfExperiments()
          returns the number of experiments now available in the IntAct Database
 int getNumberOfGoTerms()
          returns the number of terms in the Controlled Vocabulary table now available in the IntAct Database
 int getNumberOfInteractions()
          returns the number of interactions now available in the IntAct Database
 int getNumberOfProteins()
          returns the number of proteins now available in the IntAct Database
 java.sql.Timestamp getTimestamp()
          returns the timestamp
 void setAc(int ac)
           
 void setNumberOfBinaryInteractions(int binaryInteraction)
           
 void setNumberOfComplexInteractions(int complexInteraction)
           
 void setNumberOfExperiments(int experimentNumb)
           
 void setNumberOfGoTerms(int termNumb)
           
 void setNumberOfInteractions(int interactionNumb)
           
 void setNumberOfProteins(int proteinNumb)
           
 void setTimestamp(java.sql.Timestamp timeStamp)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ac

protected int ac
Specify the ac of the field retrieved. Need to be declared there because it is a field in the repository_user.xml file


timestamp

protected java.sql.Timestamp timestamp
Specify the date of the object storing. The type is java.sql.Date, not java.util.Data, for database compatibility.


proteinNumber

protected int proteinNumber

interactionNumber

protected int interactionNumber

binaryInteractions

protected int binaryInteractions

complexInteractions

protected int complexInteractions

experimentNumber

protected int experimentNumber

termNumber

protected int termNumber
Constructor Detail

IntactStatistics

public IntactStatistics()
Method Detail

getAc

public final int getAc()
returns the timestamp

Returns:
Timestamp

setAc

public final void setAc(int ac)

getTimestamp

public final java.sql.Timestamp getTimestamp()
returns the timestamp

Returns:
Timestamp

setTimestamp

public final void setTimestamp(java.sql.Timestamp timeStamp)

getNumberOfProteins

public final int getNumberOfProteins()
returns the number of proteins now available in the IntAct Database

Returns:
int

setNumberOfProteins

public final void setNumberOfProteins(int proteinNumb)

getNumberOfInteractions

public final int getNumberOfInteractions()
returns the number of interactions now available in the IntAct Database

Returns:
int

setNumberOfInteractions

public final void setNumberOfInteractions(int interactionNumb)

getNumberOfBinaryInteractions

public final int getNumberOfBinaryInteractions()
returns the number of interactions with two interactors, now available in the IntAct Database

Returns:
int

setNumberOfBinaryInteractions

public final void setNumberOfBinaryInteractions(int binaryInteraction)

getNumberOfComplexInteractions

public final int getNumberOfComplexInteractions()
returns the number of interactions with more than two interactors, now available in the IntAct Database

Returns:
int

setNumberOfComplexInteractions

public final void setNumberOfComplexInteractions(int complexInteraction)

getNumberOfExperiments

public final int getNumberOfExperiments()
returns the number of experiments now available in the IntAct Database

Returns:
int

setNumberOfExperiments

public final void setNumberOfExperiments(int experimentNumb)

getNumberOfGoTerms

public final int getNumberOfGoTerms()
returns the number of terms in the Controlled Vocabulary table now available in the IntAct Database

Returns:
int

setNumberOfGoTerms

public final void setNumberOfGoTerms(int termNumb)

toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object

compareTo

public final int compareTo(java.lang.Object o)
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
o - the Object to be compared.
Returns:
a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
Throws:
java.lang.ClassCastException - if the specified object's type prevents it from being compared to this Object.


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