org.teiid.translator.jdbc.oracle
Class MonthOrDayNameFunctionModifier
java.lang.Object
org.teiid.translator.jdbc.FunctionModifier
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')
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 |
Method Summary |
List<?> |
translate(Function function)
Return a List of translated parts (LanguageObject s and Objects), or null
if this FunctionModifier wishes to rely on the default translation of the
conversion visitor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MonthOrDayNameFunctionModifier
public MonthOrDayNameFunctionModifier(LanguageFactory langFactory,
String format)
translate
public List<?> translate(Function function)
- Description copied from class:
FunctionModifier
- Return a List of translated parts (
LanguageObject
s 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.