dods.servers.sql
Class SqlClauseFac

java.lang.Object
  extended bydods.dap.Server.ClauseFactory
      extended bydods.servers.sql.SqlClauseFac

public class SqlClauseFac
extends ClauseFactory

Generates Clause objects for the constraint expression parser. In order to parse constraints using your own custom Clause objects, pass a customized ClauseFactory, which generates those clause objects, into the constructor of CEEvaluator. This particular ClauseFactory is used by the DRDS so that SQL enabled Clauses are built by the expression parser.

Author:
ndp

Field Summary
 
Fields inherited from class dods.dap.Server.ClauseFactory
functionLibrary
 
Constructor Summary
SqlClauseFac()
          Creates a new clause factory.
SqlClauseFac(FunctionLibrary functionLibrary)
          Creates a new clause factory.
 
Method Summary
 TopLevelClause newRelOpClause(int operator, SubClause lhs, java.util.List rhs)
          Generates a clause which which compares subclauses, using one of the relative operators supported by the Operator class.
 
Methods inherited from class dods.dap.Server.ClauseFactory
newBoolFunctionClause, newBTFunctionClause, newDereferenceClause, newValueClause
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlClauseFac

public SqlClauseFac()
Creates a new clause factory.


SqlClauseFac

public SqlClauseFac(FunctionLibrary functionLibrary)
Creates a new clause factory.

Parameters:
functionLibrary - The function library that will be used when creating clauses that invoke server-side functions.
Method Detail

newRelOpClause

public TopLevelClause newRelOpClause(int operator,
                                     SubClause lhs,
                                     java.util.List rhs)
                              throws SDODSException
Generates a clause which which compares subclauses, using one of the relative operators supported by the Operator class.

Overrides:
newRelOpClause in class ClauseFactory
Throws:
SDODSException