dods.servers.sql
Class SqlRelOpClause
java.lang.Object
dods.dap.Server.AbstractClause
dods.dap.Server.RelOpClause
dods.servers.sql.SqlRelOpClause
- All Implemented Interfaces:
- Clause, TopLevelClause
public class SqlRelOpClause
- extends RelOpClause
- implements TopLevelClause
A specialized case of a RelOpClause
that can
return an SQL representation of its self.
- Author:
- ndp
- See Also:
Operator
,
RelOpClause
Method Summary |
String |
getSqlRepresentation(boolean useDatasetName,
sqlDDS dds)
Supplies the (best effort) representation of this
SqlRelOpClause as an SQL syntax for inclusion
in the WHERE clause in an SQL SELECT query. |
SqlRelOpClause
protected SqlRelOpClause(int op,
SubClause lhs,
List rhs)
throws SDODSException
- Creates a new SqlRelOpClause. If the lhs and all the elements of the rhs
are constant, the SqlRelOpClause will be flagged as constant, and
evaluated immediately.
- Parameters:
operator
- The operator invoked by the clauselhs
- The left-hand side of the comparison.rhs
- A list of SubClauses representing the right-hand side of the
comparison.
- Throws:
SDODSException
- Thrown if the clause is constant, but
the attempt to evaluate it fails.
getSqlRepresentation
public String getSqlRepresentation(boolean useDatasetName,
sqlDDS dds)
throws InvalidOperatorException
- Supplies the (best effort) representation of this
SqlRelOpClause
as an SQL syntax for inclusion
in the WHERE clause in an SQL SELECT query.
- Returns:
- String representation of this Clause as a snipet of SQL.
- Throws:
InvalidOperatorException