org.teiid.connector.jdbc.translator
Class AliasModifier

java.lang.Object
  extended by org.teiid.connector.jdbc.translator.FunctionModifier
      extended by org.teiid.connector.jdbc.translator.AliasModifier
Direct Known Subclasses:
BitFunctionModifier, ConvertModifier.FormatModifier, LocateFunctionModifier, ModFunctionModifier

public class AliasModifier
extends FunctionModifier


Field Summary
protected  java.lang.String alias
           
 
Fields inherited from class org.teiid.connector.jdbc.translator.FunctionModifier
BIGDECIMAL, BIGINTEGER, BLOB, BOOLEAN, BYTE, CHAR, CLOB, DATE, DOUBLE, FLOAT, INTEGER, LONG, OBJECT, SHORT, STRING, TIME, TIMESTAMP, XML
 
Constructor Summary
AliasModifier(java.lang.String alias)
          Constructor that takes the alias to use for functions.
 
Method Summary
protected  void modify(IFunction function)
           
 java.util.List<?> translate(IFunction function)
          Return a List of translated parts (ILanguageObjects and Objects), or null if this FunctionModifier wishes to rely on the default translation of the conversion visitor.
 
Methods inherited from class org.teiid.connector.jdbc.translator.FunctionModifier
getCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

alias

protected java.lang.String alias
Constructor Detail

AliasModifier

public AliasModifier(java.lang.String alias)
Constructor that takes the alias to use for functions.

Parameters:
alias - The alias to replace the incoming function name with
Method Detail

translate

public java.util.List<?> translate(IFunction function)
Description copied from class: FunctionModifier
Return a List of translated parts (ILanguageObjects 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

modify

protected void modify(IFunction function)


Copyright © 2009. All Rights Reserved.