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

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.RelateFunctionModifier
All Implemented Interfaces:
FunctionModifier

public class RelateFunctionModifier
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
RelateFunctionModifier()
           
 
Method Summary
 IExpression modify(IFunction function)
          Implement this method to modify the function before it gets translated
 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

RelateFunctionModifier

public RelateFunctionModifier()
Method Detail

modify

public IExpression modify(IFunction function)
Implement this method to modify the function before it gets translated

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.