dods.servers.sql
Interface SqlBTFunction

All Superinterfaces:
BTFunction, ServerSideFunction

public interface SqlBTFunction
extends BTFunction

Represents a server side function that is SQL enabled. It differs from its parent interface in that it has a method for expressing itself as a fragment of SQL code that can be included in an SQL database query. Functions implementing interface are not required to have an SQl representation. If no such representation for the function exisits then the getSQLCommand() should simply return a null and the function will be evaluated in the regular manner by the DODS server after the data is recieved from the DBMS.

Author:
Nathan David Potter

Method Summary
 java.lang.String getSQLCommand(java.util.List args)
          This methods returns the SQL representation of this function.
 
Methods inherited from interface dods.dap.Server.BTFunction
evaluate, getReturnType
 
Methods inherited from interface dods.dap.Server.ServerSideFunction
checkArgs, getName
 

Method Detail

getSQLCommand

public java.lang.String getSQLCommand(java.util.List args)
This methods returns the SQL representation of this function. If this function cannot produce ansensible SQL representation then this method should return null.

Parameters:
args - A list of Clauses containing the arguments specified for this method in the DODS URL.
Returns:
A String containing the SQL respresentation for this Server Side Function. If no such representation exisit, then it shall return null.