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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dateFormater
public static final java.text.SimpleDateFormat dateFormater
StatisticsBean
public StatisticsBean(java.util.ArrayList statistics,
java.lang.String databaseName,
java.lang.String userName)
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