org.teiid.translator.jdbc.oracle
Class LeftOrRightFunctionModifier

java.lang.Object
  extended by org.teiid.translator.jdbc.FunctionModifier
      extended by org.teiid.translator.jdbc.oracle.LeftOrRightFunctionModifier

public class LeftOrRightFunctionModifier
extends 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.translator.jdbc.FunctionModifier
BIGDECIMAL, BIGINTEGER, BLOB, BOOLEAN, BYTE, CHAR, CLOB, DATE, DOUBLE, FLOAT, INTEGER, LONG, NULL, OBJECT, SHORT, STRING, TIME, TIMESTAMP, XML
 
Constructor Summary
LeftOrRightFunctionModifier(LanguageFactory langFactory)
           
 
Method Summary
 java.util.List<?> translate(Function function)
          Return a List of translated parts (LanguageObjects and Objects), or null if this FunctionModifier wishes to rely on the default translation of the conversion visitor.
 
Methods inherited from class org.teiid.translator.jdbc.FunctionModifier
getCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LeftOrRightFunctionModifier

public LeftOrRightFunctionModifier(LanguageFactory langFactory)
Method Detail

translate

public java.util.List<?> translate(Function function)
Description copied from class: FunctionModifier
Return a List of translated parts (LanguageObjects and Objects), or null if this FunctionModifier wishes to rely on the default translation of the conversion visitor.

Specified by:
translate in class FunctionModifier
Parameters:
function - IFunction to be translated
Returns:
List of translated parts, or null


Copyright © 2011. All Rights Reserved.