dods.servers.sql
Class sqlDDS

java.lang.Object
  extended bydods.dap.DDS
      extended bydods.dap.Server.ServerDDS
          extended bydods.servers.sql.sqlDDS
All Implemented Interfaces:
java.lang.Cloneable

public class sqlDDS
extends ServerDDS
implements java.lang.Cloneable

sqlDDS is a specialization of ServerDDS for the SQL server-side of DODS. This class includes methods used to build SQL query strings by exploring the DDS after the desired projection has been established.

The relationship that we are going to establish between the DODS data heirarchy and that found in a DBMS will be as follows: A "DataBase" with in a DBMS corresponds to a DODS DDS. Each Table in the "DataBase" corresponds to a different Sequence within The DODS DDS. Columns in the table correspond to variables in the Sequence.

Version:
$Revision: 1.6.2.1 $
Author:
jhrg
See Also:
ServerDDS, sqlCEEval

Field Summary
 
Fields inherited from class dods.dap.DDS
name, vars
 
Constructor Summary
protected sqlDDS()
           
  sqlDDS(BaseTypeFactory factory)
          Creates an empty sqlDDS with the given BaseTypeFactory.
protected sqlDDS(java.lang.String n)
          Creates an empty sqlDDS with the given dataset name.
  sqlDDS(java.lang.String n, BaseTypeFactory factory)
          Creates an empty sqlDDS with the given dataset name and BaseTypeFactory.
 
Method Summary
 java.lang.Object clone()
          Return a clone of the sqlDDS.
 java.util.Vector getRequestedTables()
          Returns a string naming of all of the projected variables at the highest levelin the DDS.
 java.util.Vector getRequestedVars()
          Returns a string naming of all of the projected variables in the DDS using their full qualified names.
 
Methods inherited from class dods.dap.Server.ServerDDS
getDatasetFilename, printConstrained, printConstrained, setDatasetFilename
 
Methods inherited from class dods.dap.DDS
addVariable, checkSemantics, checkSemantics, delVariable, getFactory, getName, getVariable, getVariables, numVariables, parse, print, print, search, setName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

sqlDDS

protected sqlDDS()

sqlDDS

protected sqlDDS(java.lang.String n)
Creates an empty sqlDDS with the given dataset name.

Parameters:
n - the dataset name

sqlDDS

public sqlDDS(BaseTypeFactory factory)
Creates an empty sqlDDS with the given BaseTypeFactory. This will be used for DODS servers which need to construct subclasses of the various BaseType objects to hold additional server-side information.

Parameters:
factory - the server BaseTypeFactory object.

sqlDDS

public sqlDDS(java.lang.String n,
              BaseTypeFactory factory)
Creates an empty sqlDDS with the given dataset name and BaseTypeFactory. This will be used for DODS servers which need to construct subclasses of the various BaseType objects to hold additional server-side information.

Parameters:
n - the dataset name
factory - the server BaseTypeFactory object.
Method Detail

clone

public java.lang.Object clone()
Return a clone of the sqlDDS. A deep copy is performed on this object and those it contains.

Overrides:
clone in class ServerDDS
Returns:
a ServerDDS object.

getRequestedVars

public java.util.Vector getRequestedVars()
Returns a string naming of all of the projected variables in the DDS using their full qualified names. This becomes the list of columns requested from the database in the SELECT statement. Used by sqlCEEval.getSQLQuery()


getRequestedTables

public java.util.Vector getRequestedTables()
Returns a string naming of all of the projected variables at the highest levelin the DDS. This becomes the list of tables requested of the database in the SELECT statement. Used by sqlCEEval.getSQLQuery()