uk.ac.ebi.intact.application.statisticView.business.data
Class StatisticsBean

java.lang.Object
  |
  +--uk.ac.ebi.intact.application.statisticView.business.data.StatisticsBean

public final class StatisticsBean
extends java.lang.Object

Bean which allows you to hold the data to display in the view. It includes the statistics data and the information related to the database it come from.

Version:
$Id: StatisticsBean.java,v 1.3 2004/02/24 17:38:38 skerrien Exp $
Author:
Samuel Kerrien (skerrien@ebi.ac.uk)

Field Summary
static java.text.SimpleDateFormat dateFormater
           
 
Constructor Summary
StatisticsBean(java.util.ArrayList statistics, java.lang.String databaseName, java.lang.String userName)
           
 
Method Summary
 java.lang.String getDatabaseName()
           
 IntactStatistics getFirstRow()
          Retrieve the eldest data of the Statistics table
 IntactStatistics getLastRow()
          Retrieve the latest data of the Statistics table
 java.sql.Timestamp getLastTimestamp()
          Retrieve the latest timestamp of the Statistics table
 java.lang.String getMoreRecentStatisticsDate()
           
 java.util.ArrayList getStatistics()
           
 java.lang.String getUserName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dateFormater

public static final java.text.SimpleDateFormat dateFormater
Constructor Detail

StatisticsBean

public StatisticsBean(java.util.ArrayList statistics,
                      java.lang.String databaseName,
                      java.lang.String userName)
Method Detail

getStatistics

public final java.util.ArrayList getStatistics()

getDatabaseName

public final java.lang.String getDatabaseName()

getUserName

public final java.lang.String getUserName()

getLastTimestamp

public final java.sql.Timestamp getLastTimestamp()
                                          throws NoDataException
Retrieve the latest timestamp of the Statistics table

Returns:
Timestamp the timestamp of the last line in the Statistics table or null if no data found.
NoDataException

getLastRow

public final IntactStatistics getLastRow()
                                  throws NoDataException
Retrieve the latest data of the Statistics table

Returns:
Collection which contains the latest data of the Statistics table
NoDataException

getFirstRow

public final IntactStatistics getFirstRow()
                                   throws NoDataException
Retrieve the eldest data of the Statistics table

Returns:
Collection which contains the latest data of the Statistics table
NoDataException

getMoreRecentStatisticsDate

public final java.lang.String getMoreRecentStatisticsDate()
                                                   throws IntactException,
                                                          NoDataException
IntactException
NoDataException


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