org.teiid.translator.jdbc.oracle
Class MonthOrDayNameFunctionModifier

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

public class MonthOrDayNameFunctionModifier
extends FunctionModifier

Convert the MONTHNAME etc. function into an equivalent Oracle function. Format: to_char(timestampvalue/dayvalue, 'Month'/'Day')


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
MonthOrDayNameFunctionModifier(LanguageFactory langFactory, String format)
           
 
Method Summary
 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

MonthOrDayNameFunctionModifier

public MonthOrDayNameFunctionModifier(LanguageFactory langFactory,
                                      String format)
Method Detail

translate

public 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.