Package org.teiid.translator.jdbc
Class AliasModifier
- java.lang.Object
-
- org.teiid.translator.jdbc.FunctionModifier
-
- org.teiid.translator.jdbc.AliasModifier
-
- Direct Known Subclasses:
BitFunctionModifier
,ConvertModifier.FormatModifier
,LocateFunctionModifier
,ModFunctionModifier
,SubstringFunctionModifier
,SubstringFunctionModifier
public class AliasModifier extends FunctionModifier
-
-
Constructor Summary
Constructors Constructor Description AliasModifier(String alias)
Constructor that takes the alias to use for functions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
modify(Function function)
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 org.teiid.translator.jdbc.FunctionModifier
getCode
-
-
-
-
Field Detail
-
alias
protected String alias
-
-
Constructor Detail
-
AliasModifier
public AliasModifier(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 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 classFunctionModifier
- Parameters:
function
- IFunction to be translated- Returns:
- List of translated parts, or null
-
modify
protected void modify(Function function)
-
-