jpl.eda.archive.server
Class Dataset

java.lang.Object
  extended byjpl.eda.archive.server.Dataset

public class Dataset
extends java.lang.Object

This class validates the given dataset name and gathers dataset related information required for an archive service related event.

Version:
$Revision: 1.4 $
Author:
D. Crichton

Constructor Summary
Dataset(jpl.eda.util.JDBC_DB db, int datasetId)
          Constructor given a database connection and a dataset identifier.
Dataset(jpl.eda.util.JDBC_DB db, java.lang.String datasetName)
          Constructor given a database connection and a dataset name.
 
Method Summary
 int getDatasetId()
          Get the identifier for the dataset.
 java.lang.String getDatasetName()
          Get the mame of the dataset.
 java.lang.String getDescription()
          Get the description of the dataset.
 ElementList getElementList()
          Get the data element list associated with the dataset.
 java.lang.String getMetadataTable()
          Get the product metadata table name associated with the dataset.
 java.lang.String getReferenceTable()
          Get the product reference table name associated with the dataset.
 java.lang.String getRepository()
          Get the repository path of the dataset.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dataset

public Dataset(jpl.eda.util.JDBC_DB db,
               java.lang.String datasetName)
        throws DatasetException
Constructor given a database connection and a dataset name. This constructor retrieves dataset information from the database which includes the associated element list.

Parameters:
db - The database connection.
datasetName - The name of the dataset.
Throws:
DatasetException - If dataset information cannot be retrieved.

Dataset

public Dataset(jpl.eda.util.JDBC_DB db,
               int datasetId)
        throws DatasetException
Constructor given a database connection and a dataset identifier. This constructor retrieves dataset information from the database which includes the associated element list.

Parameters:
db - The database connection.
datasetId - The dataset identifier.
Throws:
DatasetException - If dataset information cannot be retrieved.
Method Detail

getDatasetId

public int getDatasetId()
Get the identifier for the dataset.

Returns:
The identifier.

getDatasetName

public java.lang.String getDatasetName()
Get the mame of the dataset.

Returns:
The name.

getMetadataTable

public java.lang.String getMetadataTable()
Get the product metadata table name associated with the dataset.

Returns:
The product metadata table name.

getReferenceTable

public java.lang.String getReferenceTable()
Get the product reference table name associated with the dataset.

Returns:
The product reference table name.

getRepository

public java.lang.String getRepository()
Get the repository path of the dataset.

Returns:
The repository.

getDescription

public java.lang.String getDescription()
Get the description of the dataset.

Returns:
The description.

getElementList

public ElementList getElementList()
Get the data element list associated with the dataset.

Returns:
The data element list.


Copyright © 1999-2005 NASA Jet Propulsion Laboratory, California Institute of Technology. All Rights Reserved.