org.teiid.connector.jdbc.translator
Class AliasModifier

java.lang.Object
  extended by org.teiid.connector.jdbc.translator.BasicFunctionModifier
      extended by org.teiid.connector.jdbc.translator.AliasModifier
All Implemented Interfaces:
FunctionModifier
Direct Known Subclasses:
BitFunctionModifier, ModFunctionModifier

public class AliasModifier
extends BasicFunctionModifier


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
AliasModifier(java.lang.String alias)
          Constructor that takes the alias to use for functions.
 
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
 

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

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.