maito.datacollecting
Class DataSourceDescription

java.lang.Object
  extended by maito.datacollecting.DataSourceDescription

public class DataSourceDescription
extends java.lang.Object

A class that holds all necessary information of a data source.

Author:
Antti Laitinen
See Also:
DataCollector, DataSource

Field Summary
static int IDLENGTH
           
 
Constructor Summary
DataSourceDescription(java.lang.String id, java.lang.String updated, java.lang.String modified, long sizeInRows, java.lang.String dataFormat, boolean integrated)
           
 
Method Summary
 boolean equals(DataSourceDescription other)
          Two DataSourceDescription objects are seen as equal if they have the same id.
 java.lang.String getDataFormat()
           
 java.lang.String getId()
           
 java.lang.String getModified()
          Returns the date when this data source was last modified.
 long getSizeInRows()
           
 java.lang.String getUpdated()
          Returns the date when this data source was last updated.
 boolean isIntegrated()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

IDLENGTH

public static final int IDLENGTH
See Also:
Constant Field Values
Constructor Detail

DataSourceDescription

public DataSourceDescription(java.lang.String id,
                             java.lang.String updated,
                             java.lang.String modified,
                             long sizeInRows,
                             java.lang.String dataFormat,
                             boolean integrated)
Method Detail

getId

public java.lang.String getId()

getUpdated

public java.lang.String getUpdated()
Returns the date when this data source was last updated.

Returns:
A date in the format yyyy-MM-dd

getModified

public java.lang.String getModified()
Returns the date when this data source was last modified.

Returns:
A date in the format yyyy-MM-dd

getSizeInRows

public long getSizeInRows()

getDataFormat

public java.lang.String getDataFormat()

isIntegrated

public boolean isIntegrated()

equals

public boolean equals(DataSourceDescription other)
Two DataSourceDescription objects are seen as equal if they have the same id.

Parameters:
other -
Returns:

toString

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