com.metamatrix.connector.jdbc.oracle.spatial
Class WithinDistanceFunctionModifier

java.lang.Object
  extended by org.teiid.connector.jdbc.translator.BasicFunctionModifier
      extended by com.metamatrix.connector.jdbc.oracle.spatial.OracleSpatialFunctionModifier
          extended by com.metamatrix.connector.jdbc.oracle.spatial.WithinDistanceFunctionModifier
All Implemented Interfaces:
FunctionModifier

public class WithinDistanceFunctionModifier
extends OracleSpatialFunctionModifier


Field Summary
 
Fields inherited from class org.teiid.connector.jdbc.translator.BasicFunctionModifier
BIGDECIMAL, BIGINTEGER, BLOB, BOOLEAN, BYTE, CHAR, CLOB, DATE, DOUBLE, FLOAT, INTEGER, LONG, OBJECT, SHORT, STRING, TIME, TIMESTAMP, typeMap, XML
 
Constructor Summary
WithinDistanceFunctionModifier()
           
 
Method Summary
 IExpression modify(IFunction function)
          Subclass should override this method as needed.
 java.util.List translate(IFunction function)
          Implement this method to change how the function is translated into the SQL string In this case, if either of the first two parameters are a Literal String, then we need to put the literal itself in the SQL to be passed to Oracle, without the tick marks
 
Methods inherited from class com.metamatrix.connector.jdbc.oracle.spatial.OracleSpatialFunctionModifier
addParamWithConversion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WithinDistanceFunctionModifier

public WithinDistanceFunctionModifier()
Method Detail

modify

public IExpression modify(IFunction function)
Description copied from class: BasicFunctionModifier
Subclass should override this method as needed.

Specified by:
modify in interface FunctionModifier
Overrides:
modify in class BasicFunctionModifier
Returns:
IExpression or unmodified function
See Also:
FunctionModifier.modify(org.teiid.connector.language.IFunction)

translate

public java.util.List translate(IFunction function)
Implement this method to change how the function is translated into the SQL string In this case, if either of the first two parameters are a Literal String, then we need to put the literal itself in the SQL to be passed to Oracle, without the tick marks

Specified by:
translate in interface FunctionModifier
Overrides:
translate in class BasicFunctionModifier
Parameters:
function - IFunction to be translated
Returns:
List of translated parts, or null
See Also:
FunctionModifier.translate(org.teiid.connector.language.IFunction)


Copyright © 2009. All Rights Reserved.