org.teiid.connector.jdbc.translator
Class DropFunctionModifier

java.lang.Object
  extended by org.teiid.connector.jdbc.translator.BasicFunctionModifier
      extended by org.teiid.connector.jdbc.translator.DropFunctionModifier
All Implemented Interfaces:
FunctionModifier

public class DropFunctionModifier
extends BasicFunctionModifier
implements FunctionModifier

This FunctionModifier will cause this function to be dropped by replacing the function with (by default) the first argument of the function. Optionally, the replacement index can be overridden. This modifier should only be used with functions having the minimum or more number of arguments.


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
DropFunctionModifier()
           
 
Method Summary
 IExpression modify(IFunction function)
          Subclass should override this method as needed.
 void setReplaceIndex(int index)
           
 
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
 
Methods inherited from interface org.teiid.connector.jdbc.translator.FunctionModifier
translate
 

Constructor Detail

DropFunctionModifier

public DropFunctionModifier()
Method Detail

setReplaceIndex

public void setReplaceIndex(int index)

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.