org.teiid.connector.jdbc.oracle
Class LeftOrRightFunctionModifier

java.lang.Object
  extended by org.teiid.connector.jdbc.translator.BasicFunctionModifier
      extended by org.teiid.connector.jdbc.oracle.LeftOrRightFunctionModifier
All Implemented Interfaces:
FunctionModifier

public class LeftOrRightFunctionModifier
extends BasicFunctionModifier
implements FunctionModifier

Convert left(string, count) --> substr(string, 1, count) or right(string, count) --> substr(string, -1 * count) - we lack a way to express a unary negation


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
LeftOrRightFunctionModifier(ILanguageFactory langFactory)
           
 
Method Summary
 IExpression modify(IFunction function)
          Subclass should override this method as needed.
 
Methods inherited from class org.teiid.connector.jdbc.translator.BasicFunctionModifier
translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.teiid.connector.jdbc.translator.FunctionModifier
translate
 

Constructor Detail

LeftOrRightFunctionModifier

public LeftOrRightFunctionModifier(ILanguageFactory langFactory)
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)


Copyright © 2009. All Rights Reserved.